
#include <Neuro/HandControllerConfigurator.H>


Public Member Functions | |
| HandControllerConfigurator (OptionManager &mgr, const std::string &descrName="Hand Controller Configurator", const std::string &tagName="HandControllerConfigurator") | |
| Constructor. | |
| virtual | ~HandControllerConfigurator () |
| destructor | |
| nub::ref< HandController > | getHand () const |
| Get the chosen HandController. | |
| virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
| Intercept people changing our itsHandctrlName ModelParam. | |
Protected Attributes | |
| OModelParam< std::string > | itsHandctrlType |
| Type of the controller. | |
>HandController configurator for hand This will export the --hand-type=XX command-line option and will instantiate a HandController of the desired type as the option gets assigned a value. As this happens, new options may become available in the command-line. To see them, use --help AFTER you have chosen the name of the controller to use. The current HandController may be retrieved using getHand().
Definition at line 55 of file HandControllerConfigurator.H.
| HandControllerConfigurator::HandControllerConfigurator | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Hand Controller Configurator", |
|||
| const std::string & | tagName = "HandControllerConfigurator" | |||
| ) |
Constructor.
Definition at line 47 of file HandControllerConfigurator.C.
References ModelComponent::addSubComponent().
| HandControllerConfigurator::~HandControllerConfigurator | ( | ) | [virtual] |
destructor
Definition at line 58 of file HandControllerConfigurator.C.
| nub::ref< HandController > HandControllerConfigurator::getHand | ( | ) | const |
Get the chosen HandController.
You should call this during start() of the ModelComponent that needs the HandController. CAUTION: this may be a rutz::shared_ptr(NULL) if no controller has been chosen.
Definition at line 62 of file HandControllerConfigurator.C.
| void HandControllerConfigurator::paramChanged | ( | ModelParamBase *const | param, | |
| const bool | valueChanged, | |||
| ParamClient::ChangeStatus * | status | |||
| ) | [virtual] |
Intercept people changing our itsHandctrlName ModelParam.
See ModelComponent.H; as parsing the command-line or reading a config file sets our name, we'll also here instantiate a controller of the proper type (and export its options)
Reimplemented from ModelComponent.
Definition at line 67 of file HandControllerConfigurator.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsHandctrlType, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
Type of the controller.
Definition at line 83 of file HandControllerConfigurator.H.
Referenced by paramChanged().
1.6.3