CLAM-Development
1.1
|
Using Segment as the type for * input and output ports. More...
#include <SMSTransformationChain.hxx>
Public Member Functions | |
void | AttachIn (Segment &data) |
void | AttachOut (Segment &data) |
SMSTransformationChain () | |
virtual | ~SMSTransformationChain () |
Destructor. | |
virtual bool | DoChildren () |
bool | Do () |
Supervised mode execution method (using ports) | |
bool | ConcreteStart () |
Concrete start implementation, called when the user calls Start() on the Processing(Composite), should be used to implement any specific start implementation required by classes deriving from this class. | |
void | InitSegmentArray () |
void | InitAllFrameIndex () |
void | TurnOn (TIndex index) |
Accessor to On/off control. | |
void | TurnOff (TIndex index) |
Accessor to On/off control. | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | ConcreteConfigure (const ProcessingConfig &c) |
Configuration method interface. | |
SegmentTransformation * | GetTransformation (const std::string &name) |
Returns first transformation in chain belonging to a given class or NULL if not found. |
Using Segment as the type for * input and output ports.
It implements the supervised Do and a helper method for updating the frame counter in the Segment.
Definition at line 44 of file SMSTransformationChain.hxx.
CLAM::SMSTransformationChain::SMSTransformationChain | ( | ) | [inline] |
Definition at line 62 of file SMSTransformationChain.hxx.
References NULL.
virtual CLAM::SMSTransformationChain::~SMSTransformationChain | ( | ) | [inline, virtual] |
Destructor.
Deletes temporal ProcessingData and Configuration and any previously allocated Processing chainee.
Definition at line 72 of file SMSTransformationChain.hxx.
References CLAM::ProcessingComposite::composite_begin(), CLAM::ProcessingComposite::composite_end(), and CLAM::Array< T >::Size().
void CLAM::SMSTransformationChain::AttachIn | ( | Segment & | data | ) | [inline] |
Definition at line 59 of file SMSTransformationChain.hxx.
void CLAM::SMSTransformationChain::AttachOut | ( | Segment & | data | ) | [inline] |
Definition at line 60 of file SMSTransformationChain.hxx.
bool CLAM::SMSTransformationChain::ConcreteConfigure | ( | const ProcessingConfig & | ) | [inline, virtual] |
Configuration method interface.
The Processing base class forces all the concrete classes derived from it to implement this method, which must actually perform the specific configuration tasks.
Note that the user can not call this method directly. He will use Configure instead. The argument is expected to be an object of the necesary concrete configuration class.
Reference | to the configuration object. |
true if the processing object is left in a consistent state, and can be executed.
This | method must throw a bad_cast exception if the argument is not an object of the expected configuration class. |
First we remove existing chainee if any
Implements CLAM::ProcessingComposite.
Definition at line 195 of file SMSTransformationChain.hxx.
References CLAM_ASSERT, CLAM::ProcessingComposite::composite_begin(), CLAM::ProcessingComposite::composite_end(), CLAM::ProcessingComposite::composite_size(), CLAM::SMSTransformationChainConfig::ConfigList_begin(), CLAM::SMSTransformationChainConfig::ConfigList_end(), NULL, and CLAM::ProcessingComposite::Remove().
bool CLAM::SMSTransformationChain::ConcreteStart | ( | void | ) | [inline, virtual] |
Concrete start implementation, called when the user calls Start() on the Processing(Composite), should be used to implement any specific start implementation required by classes deriving from this class.
When overriding this function in a class derived from ProcessingComposite be sure to call the base class (so child Processings are properly started).
Reimplemented from CLAM::ProcessingComposite.
Definition at line 120 of file SMSTransformationChain.hxx.
References CLAM::Array< T >::AddElem(), CLAM::SegmentTransformation::AttachIn(), CLAM::SegmentTransformation::AttachOut(), CLAM::ProcessingComposite::composite_begin(), CLAM::ProcessingComposite::composite_end(), InitAllFrameIndex(), and InitSegmentArray().
bool CLAM::SMSTransformationChain::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports)
Implements CLAM::ProcessingComposite.
Definition at line 109 of file SMSTransformationChain.hxx.
References DoChildren().
virtual bool CLAM::SMSTransformationChain::DoChildren | ( | ) | [inline, virtual] |
Definition at line 84 of file SMSTransformationChain.hxx.
References CLAM_DEBUG_ASSERT, CLAM::ProcessingComposite::composite_begin(), CLAM::ProcessingComposite::composite_end(), CLAM::ProcessingComposite::composite_size(), CLAM::SegmentTransformation::DoWithSegments(), and CLAM::Processing::IsRunning().
Referenced by Do().
const ProcessingConfig& CLAM::SMSTransformationChain::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Implements CLAM::ProcessingComposite.
Definition at line 190 of file SMSTransformationChain.hxx.
SegmentTransformation* CLAM::SMSTransformationChain::GetTransformation | ( | const std::string & | name | ) | [inline] |
Returns first transformation in chain belonging to a given class or NULL if not found.
Definition at line 235 of file SMSTransformationChain.hxx.
References CLAM::ProcessingComposite::composite_begin(), CLAM::ProcessingComposite::composite_end(), and NULL.
void CLAM::SMSTransformationChain::InitAllFrameIndex | ( | ) | [inline] |
Definition at line 171 of file SMSTransformationChain.hxx.
References CLAM::Segment::mCurrentFrameIndex, and CLAM::Array< T >::Size().
Referenced by ConcreteStart().
void CLAM::SMSTransformationChain::InitSegmentArray | ( | ) | [inline] |
Definition at line 163 of file SMSTransformationChain.hxx.
References CLAM::Array< T >::SetSize(), and CLAM::Array< T >::Size().
Referenced by ConcreteStart().
void CLAM::SMSTransformationChain::TurnOff | ( | TIndex | index | ) | [inline] |
Accessor to On/off control.
Turns on the specified control in the array.
Definition at line 185 of file SMSTransformationChain.hxx.
void CLAM::SMSTransformationChain::TurnOn | ( | TIndex | index | ) | [inline] |
Accessor to On/off control.
Turns on the specified control in the array.
Definition at line 179 of file SMSTransformationChain.hxx.