A composite channel containing a set of direction channels. More...
#include <Channels/IntegerMotionChannel.H>
Public Member Functions | |
IntegerMotionChannel (OptionManager &mgr, nub::ref< IntegerMathEngine > eng) | |
Construct. | |
virtual | ~IntegerMotionChannel () |
destructor | |
virtual IntegerDirectionChannel & | dirChan (const uint idx) const |
returns a specific IntegerDirectionChannel | |
virtual void | paramChanged (ModelParamBase *const param, const bool valueChanged, ParamClient::ChangeStatus *status) |
Overload so that we can reconfigure when our params get changed. | |
Protected Member Functions | |
virtual void | buildSubChans () |
(re-)build our subchannels | |
virtual void | doInputInt (const IntegerInput &inp, const SimTime &t, PyramidCache< int > *cache, const Image< byte > &clipMask) |
IntegerMotionChannel only required luminosity input. | |
Protected Attributes | |
OModelParam< uint > | itsNumDirs |
number of IntegerDirectionChannel subcomponents |
A composite channel containing a set of direction channels.
Definition at line 48 of file IntegerMotionChannel.H.
IntegerMotionChannel::IntegerMotionChannel | ( | OptionManager & | mgr, | |
nub::ref< IntegerMathEngine > | eng | |||
) |
IntegerMotionChannel::~IntegerMotionChannel | ( | ) | [virtual] |
destructor
Definition at line 72 of file IntegerMotionChannel.C.
void IntegerMotionChannel::buildSubChans | ( | ) | [protected, virtual] |
(re-)build our subchannels
Definition at line 85 of file IntegerMotionChannel.C.
References IntegerComplexChannel::addSubChan(), ModelComponent::getManager(), OModelParam< T >::getVal(), itsNumDirs, makeSharedComp(), MC_RECURSE, and IntegerComplexChannel::removeAllSubChans().
Referenced by IntegerMotionChannel(), and paramChanged().
IntegerDirectionChannel & IntegerMotionChannel::dirChan | ( | const uint | idx | ) | const [virtual] |
returns a specific IntegerDirectionChannel
Definition at line 78 of file IntegerMotionChannel.C.
References IntegerComplexChannel::subChan().
Referenced by doInputInt().
void IntegerMotionChannel::doInputInt | ( | const IntegerInput & | inp, | |
const SimTime & | t, | |||
PyramidCache< int > * | cache, | |||
const Image< byte > & | clipMask | |||
) | [protected, virtual] |
IntegerMotionChannel only required luminosity input.
Implements IntegerChannel.
Definition at line 130 of file IntegerMotionChannel.C.
References dirChan(), and IntegerComplexChannel::numChans().
void IntegerMotionChannel::paramChanged | ( | ModelParamBase *const | param, | |
const bool | valueChanged, | |||
ParamClient::ChangeStatus * | status | |||
) | [virtual] |
Overload so that we can reconfigure when our params get changed.
Reimplemented from ModelComponent.
Definition at line 115 of file IntegerMotionChannel.C.
References buildSubChans(), OModelParam< T >::getVal(), itsNumDirs, and IntegerComplexChannel::numChans().
OModelParam<uint> IntegerMotionChannel::itsNumDirs [protected] |
number of IntegerDirectionChannel subcomponents
Definition at line 68 of file IntegerMotionChannel.H.
Referenced by buildSubChans(), and paramChanged().