SaccadeController configurator for eye. More...
#include <Neuro/SaccadeControllerConfigurator.H>
Public Member Functions | |
SaccadeControllerEyeConfigurator (OptionManager &mgr, const std::string &descrName="Saccade Controller Eye Configurator", const std::string &tagName="SaccadeControllerEyeConfigurator") | |
Constructor. | |
virtual | ~SaccadeControllerEyeConfigurator () |
destructor | |
nub::ref< SaccadeController > | getSC () const |
Get the chosen SaccadeController. | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Intercept people changing our itsSacCtrlName ModelParam. | |
Protected Attributes | |
OModelParam< std::string > | itsSacCtrlType |
Type of the controller. |
SaccadeController configurator for eye.
This will export the --esc-type=XX command-line option and will instantiate a SaccadeController 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 eye SaccadeController may be retrieved using getSC().
Definition at line 53 of file SaccadeControllerConfigurator.H.
SaccadeControllerEyeConfigurator::SaccadeControllerEyeConfigurator | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Saccade Controller Eye Configurator" , |
|||
const std::string & | tagName = "SaccadeControllerEyeConfigurator" | |||
) |
Constructor.
Definition at line 47 of file SaccadeControllerConfigurator.C.
References ModelComponent::addSubComponent().
SaccadeControllerEyeConfigurator::~SaccadeControllerEyeConfigurator | ( | ) | [virtual] |
destructor
Definition at line 58 of file SaccadeControllerConfigurator.C.
nub::ref< SaccadeController > SaccadeControllerEyeConfigurator::getSC | ( | ) | const |
Get the chosen SaccadeController.
You should call this during start() of the ModelComponent that needs the SaccadeController. CAUTION: this may be a rutz::shared_ptr(NULL) if no controller has been chosen.
Definition at line 62 of file SaccadeControllerConfigurator.C.
void SaccadeControllerEyeConfigurator::paramChanged | ( | ModelParamBase *const | param, | |
const bool | valueChanged, | |||
ParamClient::ChangeStatus * | status | |||
) | [virtual] |
Intercept people changing our itsSacCtrlName 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 SaccadeControllerConfigurator.C.
References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsSacCtrlType, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().
Type of the controller.
Definition at line 81 of file SaccadeControllerConfigurator.H.
Referenced by paramChanged().