SaliencyMapConfigurator Class Reference

SaliencyMap configurator. More...

#include <Neuro/SaliencyMapConfigurator.H>

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

List of all members.

Public Member Functions

 SaliencyMapConfigurator (OptionManager &mgr, const std::string &descrName="Saliency Map Configurator", const std::string &tagName="SaliencyMapConfigurator")
 Constructor.
virtual ~SaliencyMapConfigurator ()
 destructor
nub::ref< SaliencyMapgetSM () const
 Get the chosen SM.

Protected Member Functions

virtual void paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status)
 Intercept people changing our ModelParam.

Protected Attributes

OModelParam< std::stringitsSMtype
 type of saliency map

Detailed Description

SaliencyMap configurator.

This will export the --sm-type=XX command-line option and will instantiate an SM 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 type to use. The current SM may be retrieved using getSM().

Definition at line 55 of file SaliencyMapConfigurator.H.


Constructor & Destructor Documentation

SaliencyMapConfigurator::SaliencyMapConfigurator ( OptionManager mgr,
const std::string descrName = "Saliency Map Configurator",
const std::string tagName = "SaliencyMapConfigurator" 
)

Constructor.

Definition at line 54 of file SaliencyMapConfigurator.C.

References ModelComponent::addSubComponent().

SaliencyMapConfigurator::~SaliencyMapConfigurator (  )  [virtual]

destructor

Definition at line 66 of file SaliencyMapConfigurator.C.


Member Function Documentation

nub::ref< SaliencyMap > SaliencyMapConfigurator::getSM (  )  const

Get the chosen SM.

You should call this during start() of the ModelComponent that needs the SM. NOTE: this will never return a null pointer (since it's a nub::ref rather than a nub::soft_ref), but it may return a "stub" object (e.g. SaliencyMapStub).

Definition at line 72 of file SaliencyMapConfigurator.C.

void SaliencyMapConfigurator::paramChanged ( ModelParamBase *const   param,
const bool  valueChanged,
ParamClient::ChangeStatus status 
) [protected, virtual]

Intercept people changing our 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 79 of file SaliencyMapConfigurator.C.

References ModelComponent::addSubComponent(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsSMtype, MC_RECURSE, ModelComponent::removeSubComponent(), and nub::ref< T >::reset().


Member Data Documentation

type of saliency map

Definition at line 76 of file SaliencyMapConfigurator.H.

Referenced by paramChanged().


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