Basic filter class. More...
#include <cmtkFilter.h>
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. |
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.
Definition at line 53 of file cmtkFilter.h.
cmtk::Filter< I, O >::Filter | ( | ) | [inline, protected] |
Default constructor.
Definition at line 75 of file cmtkFilter.h.
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.
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.
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.
Reimplemented from cmtk::PipelineObject.
Reimplemented in cmtk::Slicer.
Definition at line 67 of file cmtkFilter.h.
I* cmtk::Filter< I, O >::Input [protected] |
The actual input object.
Definition at line 87 of file cmtkFilter.h.