Superclass of all classes/algorithms having one or more PointSets as input and output. More...
#include <mitkPointSetToPointSetFilter.h>
Public Types | |
typedef mitk::PointSet | InputType |
typedef mitk::PointSet | OutputType |
typedef InputType::Pointer | InputTypePointer |
typedef InputType::ConstPointer | InputTypeConstPointer |
Public Member Functions | |
mitkClassMacro (PointSetToPointSetFilter, PointSetSource) | |
virtual void | SetInput (const InputType *input) |
virtual void | SetInput (const unsigned int &idx, const InputType *input) |
const InputType * | GetInput (void) |
const InputType * | GetInput (const unsigned int &idx) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
PointSetToPointSetFilter () | |
virtual | ~PointSetToPointSetFilter () |
Superclass of all classes/algorithms having one or more PointSets as input and output.
Definition at line 33 of file mitkPointSetToPointSetFilter.h.
Definition at line 38 of file mitkPointSetToPointSetFilter.h.
Definition at line 46 of file mitkPointSetToPointSetFilter.h.
Definition at line 44 of file mitkPointSetToPointSetFilter.h.
Reimplemented from mitk::PointSetSource.
Definition at line 42 of file mitkPointSetToPointSetFilter.h.
mitk::PointSetToPointSetFilter::PointSetToPointSetFilter | ( | ) | [protected] |
A default constructor
Definition at line 23 of file mitkPointSetToPointSetFilter.cpp.
{
// Modify superclass default values, may be overridden by subclasses
this->SetNumberOfRequiredInputs( 1 );
}
mitk::PointSetToPointSetFilter::~PointSetToPointSetFilter | ( | ) | [protected, virtual] |
const mitk::PointSetToPointSetFilter::InputType * mitk::PointSetToPointSetFilter::GetInput | ( | void | ) |
Definition at line 52 of file mitkPointSetToPointSetFilter.cpp.
{ if ( this->GetNumberOfInputs() < 1 ) return 0; // Process object is not const-correct so the const_cast is required here return static_cast<const mitk::PointSetToPointSetFilter::InputType * >( this->ProcessObject::GetInput( 0 ) ); }
const mitk::PointSetToPointSetFilter::InputType * mitk::PointSetToPointSetFilter::GetInput | ( | const unsigned int & | idx ) |
idx | the index of the input to return |
Definition at line 61 of file mitkPointSetToPointSetFilter.cpp.
{ if (idx > this->GetNumberOfInputs() - 1 ) return 0; // Process object is not const-correct so the const_cast is required here return static_cast< const mitk::PointSetToPointSetFilter::InputType * >(this->ProcessObject::GetInput(idx)); }
mitk::PointSetToPointSetFilter::mitkClassMacro | ( | PointSetToPointSetFilter | , |
PointSetSource | |||
) |
static Pointer mitk::PointSetToPointSetFilter::New | ( | ) | [static] |
Reimplemented from mitk::PointSetSource.
Reimplemented in mitk::PointSetIndexToWorldTransformFilter.
void mitk::PointSetToPointSetFilter::SetInput | ( | const InputType * | input ) | [virtual] |
Sets the input of this process object
input | the input |
Definition at line 34 of file mitkPointSetToPointSetFilter.cpp.
{
// Process object is not const-correct so the const_cast is required here
this->ProcessObject::SetNthInput( 0, const_cast< mitk::PointSetToPointSetFilter::InputType * >( input ) );
}
void mitk::PointSetToPointSetFilter::SetInput | ( | const unsigned int & | idx, |
const InputType * | input | ||
) | [virtual] |
Sets the input n'th of this process object
idx | the number associated with the given input |
Definition at line 41 of file mitkPointSetToPointSetFilter.cpp.
{ if ( idx + 1 > this->GetNumberOfInputs() ) { this->SetNumberOfRequiredInputs( idx + 1 ); } // Process object is not const-correct so the const_cast is required here this->ProcessObject::SetNthInput( idx, const_cast< mitk::PointSetToPointSetFilter::InputType *>( input ) ); }