Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions

mitk::PointSetToPointSetFilter Class Reference
[Process Classes]

Superclass of all classes/algorithms having one or more PointSets as input and output. More...

#include <mitkPointSetToPointSetFilter.h>

Inheritance diagram for mitk::PointSetToPointSetFilter:
Inheritance graph
[legend]
Collaboration diagram for mitk::PointSetToPointSetFilter:
Collaboration graph
[legend]

List of all members.

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 InputTypeGetInput (void)
const InputTypeGetInput (const unsigned int &idx)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 PointSetToPointSetFilter ()
virtual ~PointSetToPointSetFilter ()

Detailed Description

Superclass of all classes/algorithms having one or more PointSets as input and output.

Definition at line 33 of file mitkPointSetToPointSetFilter.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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]

The destructor

Definition at line 30 of file mitkPointSetToPointSetFilter.cpp.

{}

Member Function Documentation

const mitk::PointSetToPointSetFilter::InputType * mitk::PointSetToPointSetFilter::GetInput ( void   )
Returns:
the input tree of the process object

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 )
Parameters:
idxthe index of the input to return
Returns:
the input object with the given index

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

Parameters:
inputthe 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

Parameters:
idxthe 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 ) );
}

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