HandControllerConfigurator Class Reference

#include <Neuro/HandControllerConfigurator.H>

Inheritance diagram for HandControllerConfigurator:
Inheritance graph
[legend]
Collaboration diagram for HandControllerConfigurator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HandControllerConfigurator (OptionManager &mgr, const std::string &descrName="Hand Controller Configurator", const std::string &tagName="HandControllerConfigurator")
 Constructor.
virtual ~HandControllerConfigurator ()
 destructor
nub::ref< HandControllergetHand () 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::stringitsHandctrlType
 Type of the controller.

Detailed Description

>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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

Type of the controller.

Definition at line 83 of file HandControllerConfigurator.H.

Referenced by paramChanged().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:22:07 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3