Public Member Functions | Protected Member Functions | Protected Attributes

cmtk::ArrayFilter< I, O, InputDim > Class Template Reference
[cmtkPipeline Library]

Filter class for array inputs. More...

#include <cmtkArrayFilter.h>

Inheritance diagram for cmtk::ArrayFilter< I, O, InputDim >:
Inheritance graph
[legend]
Collaboration diagram for cmtk::ArrayFilter< I, O, InputDim >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetInput (const int index, I *const input)
 Replace the current Input object with a new one.
virtual long Update ()
 Update this object.
virtual void CheckAllInputsForUpdate ()
 Check all array input objects for updates.

Protected Member Functions

 ArrayFilter ()
 Default constructor.
virtual ~ArrayFilter ()
 Destructor.

Protected Attributes

I * Input [InputDim]
 The actual input object.

Detailed Description

template<class I, class O, int InputDim = 1>
class cmtk::ArrayFilter< I, O, InputDim >

Filter class for array inputs.

This class combines the data source functions inherited from Source with an array of additional identical input ports. It therefore serves as a template for all classes transforming an array of input objects into an output object. Both, input and output type are defined by template parameters "I" and "O", respectively. "O" is passed directly to the Source parent class.

See also:
Source

Definition at line 58 of file cmtkArrayFilter.h.


Constructor & Destructor Documentation

template<class I , class O , int InputDim = 1>
cmtk::ArrayFilter< I, O, InputDim >::ArrayFilter (  ) [inline, protected]

Default constructor.

Definition at line 90 of file cmtkArrayFilter.h.

template<class I , class O , int InputDim = 1>
virtual cmtk::ArrayFilter< I, O, InputDim >::~ArrayFilter (  ) [inline, protected, virtual]

Destructor.

Unregister from the Input object if one was set.

Definition at line 98 of file cmtkArrayFilter.h.

References cmtk::Object::Delete().


Member Function Documentation

template<class I , class O , int InputDim = 1>
virtual void cmtk::ArrayFilter< I, O, InputDim >::CheckAllInputsForUpdate (  ) [inline, virtual]

Check all array input objects for updates.

Definition at line 81 of file cmtkArrayFilter.h.

template<class I , class O , int InputDim = 1>
void cmtk::ArrayFilter< I, O, InputDim >::SetInput ( const int  index,
I *const   input 
) [inline]

Replace the current Input object with a new one.

Definition at line 64 of file cmtkArrayFilter.h.

template<class I , class O , int InputDim = 1>
virtual long cmtk::ArrayFilter< I, O, InputDim >::Update (  ) [inline, virtual]

Update this object.

Check for changes in the Input object first, then call inherited Update() function from Object.

See also:
Object::Update

Reimplemented from cmtk::PipelineObject.

Definition at line 74 of file cmtkArrayFilter.h.


Member Data Documentation

template<class I , class O , int InputDim = 1>
I* cmtk::ArrayFilter< I, O, InputDim >::Input[InputDim] [protected]

The actual input object.

Definition at line 105 of file cmtkArrayFilter.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines