Public Member Functions | Protected Member Functions | Protected Attributes

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

Basic filter class. More...

#include <cmtkFilter.h>

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

List of all members.

Public Member Functions

void SetInput (I *const input)
 Replace the current Input object with a new one.
virtual long Update ()
 Update this object.

Protected Member Functions

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

Protected Attributes

I * Input
 The actual input object.

Detailed Description

template<class I, class O>
class cmtk::Filter< I, O >

Basic filter class.

This class combines the data source functions inherited from Source with an additional input port. It therefore serves as a template for all classes transforming an input 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 53 of file cmtkFilter.h.


Constructor & Destructor Documentation

template<class I, class O>
cmtk::Filter< I, O >::Filter (  ) [inline, protected]

Default constructor.

Definition at line 75 of file cmtkFilter.h.

template<class I, class O>
virtual cmtk::Filter< I, O >::~Filter (  ) [inline, protected, virtual]

Destructor.

Unregister from the Input object if one was set.

Definition at line 80 of file cmtkFilter.h.


Member Function Documentation

template<class I, class O>
void cmtk::Filter< I, O >::SetInput ( I *const   input ) [inline]

Replace the current Input object with a new one.

Definition at line 57 of file cmtkFilter.h.

template<class I, class O>
virtual long cmtk::Filter< I, O >::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.

Reimplemented in cmtk::Slicer.

Definition at line 67 of file cmtkFilter.h.


Member Data Documentation

template<class I, class O>
I* cmtk::Filter< I, O >::Input [protected]

The actual input object.

Definition at line 87 of file cmtkFilter.h.


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