#include <mitkSTLVectorContainerSource.h>
Public Types | |
typedef STLVectorContainerSource | Self |
typedef BaseProcess | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef mitk::STLVectorContainer< T > | OutputType |
typedef OutputType::Pointer | OutputTypePointer |
typedef itk::DataObject::Pointer | DataObjectPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual DataObjectPointer | MakeOutput (unsigned int idx) |
void | GenerateInputRequestedRegion () |
void | SetOutput (OutputType *output) |
virtual void | GraftOutput (OutputType *output) |
OutputType * | GetOutput () |
OutputType * | GetOutput (unsigned int idx) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
STLVectorContainerSource () | |
virtual | ~STLVectorContainerSource () |
Definition at line 30 of file mitkSTLVectorContainerSource.h.
typedef itk::SmartPointer<const Self> mitk::STLVectorContainerSource< T >::ConstPointer |
Definition at line 34 of file mitkSTLVectorContainerSource.h.
typedef itk::DataObject::Pointer mitk::STLVectorContainerSource< T >::DataObjectPointer |
Definition at line 42 of file mitkSTLVectorContainerSource.h.
typedef mitk::STLVectorContainer<T> mitk::STLVectorContainerSource< T >::OutputType |
Definition at line 36 of file mitkSTLVectorContainerSource.h.
typedef OutputType::Pointer mitk::STLVectorContainerSource< T >::OutputTypePointer |
Definition at line 40 of file mitkSTLVectorContainerSource.h.
typedef itk::SmartPointer<Self> mitk::STLVectorContainerSource< T >::Pointer |
Definition at line 34 of file mitkSTLVectorContainerSource.h.
typedef STLVectorContainerSource mitk::STLVectorContainerSource< T >::Self |
Definition at line 34 of file mitkSTLVectorContainerSource.h.
typedef BaseProcess mitk::STLVectorContainerSource< T >::Superclass |
Definition at line 34 of file mitkSTLVectorContainerSource.h.
mitk::STLVectorContainerSource< T >::STLVectorContainerSource | ( | ) | [protected] |
Definition at line 24 of file mitkSTLVectorContainerSource.txx.
{ OutputTypePointer output = static_cast<OutputType*>( this->MakeOutput( 0 ).GetPointer() ); assert( output.GetPointer() != NULL ); this->ProcessObject::SetNumberOfRequiredOutputs( 1 ); this->ProcessObject::SetNthOutput( 0, output.GetPointer() ); }
mitk::STLVectorContainerSource< T >::~STLVectorContainerSource | ( | ) | [protected, virtual] |
Definition at line 36 of file mitkSTLVectorContainerSource.txx.
{}
void mitk::STLVectorContainerSource< T >::GenerateInputRequestedRegion | ( | ) |
Generates the input requested region simply by calling the equivalent method of the superclass.
Definition at line 92 of file mitkSTLVectorContainerSource.txx.
{ this->ProcessObject::GenerateInputRequestedRegion(); }
virtual const char* mitk::STLVectorContainerSource< T >::GetClassName | ( | ) | const [virtual] |
mitk::STLVectorContainerSource< T >::OutputType * mitk::STLVectorContainerSource< T >::GetOutput | ( | unsigned int | idx ) |
Returns the n'th output of the stl vector container source
idx | the index of the wanted output |
Definition at line 82 of file mitkSTLVectorContainerSource.txx.
{ return static_cast<OutputType*> ( this->ProcessObject::GetOutput( idx ) ); }
mitk::STLVectorContainerSource< T >::OutputType * mitk::STLVectorContainerSource< T >::GetOutput | ( | void | ) |
Returns the output with index 0 of the stl vector container source
Definition at line 65 of file mitkSTLVectorContainerSource.txx.
{ if ( this->GetNumberOfOutputs() < 1 ) { return 0; } if ( static_cast<OutputType*> ( this->ProcessObject::GetOutput( 0 ) ) == NULL ) itkWarningMacro(<< "Output is NULL!" ); return static_cast<OutputType*> ( this->ProcessObject::GetOutput( 0 ) ); }
void mitk::STLVectorContainerSource< T >::GraftOutput | ( | OutputType * | output ) | [virtual] |
Replacement of the SetOutput method. I think it is not yet correcly implemented, so you should better not use it.
output | the intended output of the lookup table source. |
Definition at line 102 of file mitkSTLVectorContainerSource.txx.
{ OutputType * output = this->GetOutput(); if ( output && graft ) { // copy the meta-information output->CopyInformation( graft ); } }
mitk::STLVectorContainerSource< T >::DataObjectPointer mitk::STLVectorContainerSource< T >::MakeOutput | ( | unsigned int | idx ) | [virtual] |
Allocates a new output object and returns it. Currently the index idx is not evaluated.
idx | the index of the output for which an object should be created |
Definition at line 44 of file mitkSTLVectorContainerSource.txx.
{ return OutputType::New().GetPointer(); }
static Pointer mitk::STLVectorContainerSource< T >::New | ( | ) | [static] |
void mitk::STLVectorContainerSource< T >::SetOutput | ( | OutputType * | output ) |
Allows to set the output of the stl vector container source. According to the itk documentation this method is outdated and should not be used. Instead GraftOutput(...) should be used.
output | the intended output of the lookup table source |
Definition at line 54 of file mitkSTLVectorContainerSource.txx.
{ itkWarningMacro( << "SetOutput(): This method is slated to be removed from ITK. Please use GraftOutput() in possible combination with DisconnectPipeline() instead." ); this->SetNthOutput( 0, output ); }