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

mitk::STLVectorContainerSource< T > Class Template Reference

#include <mitkSTLVectorContainerSource.h>

Inheritance diagram for mitk::STLVectorContainerSource< T >:
Inheritance graph
[legend]
Collaboration diagram for mitk::STLVectorContainerSource< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef STLVectorContainerSource Self
typedef BaseProcess Superclass
typedef itk::SmartPointer< SelfPointer
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)
OutputTypeGetOutput ()
OutputTypeGetOutput (unsigned int idx)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 STLVectorContainerSource ()
virtual ~STLVectorContainerSource ()

Detailed Description

template<typename T>
class mitk::STLVectorContainerSource< T >

Definition at line 30 of file mitkSTLVectorContainerSource.h.


Member Typedef Documentation

template<typename T>
typedef itk::SmartPointer<const Self> mitk::STLVectorContainerSource< T >::ConstPointer

Definition at line 34 of file mitkSTLVectorContainerSource.h.

template<typename T>
typedef itk::DataObject::Pointer mitk::STLVectorContainerSource< T >::DataObjectPointer

Definition at line 42 of file mitkSTLVectorContainerSource.h.

Definition at line 36 of file mitkSTLVectorContainerSource.h.

Definition at line 40 of file mitkSTLVectorContainerSource.h.

template<typename T>
typedef itk::SmartPointer<Self> mitk::STLVectorContainerSource< T >::Pointer

Definition at line 34 of file mitkSTLVectorContainerSource.h.

template<typename T>
typedef STLVectorContainerSource mitk::STLVectorContainerSource< T >::Self

Definition at line 34 of file mitkSTLVectorContainerSource.h.

template<typename T>
typedef BaseProcess mitk::STLVectorContainerSource< T >::Superclass

Definition at line 34 of file mitkSTLVectorContainerSource.h.


Constructor & Destructor Documentation

template<typename T >
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() );
}
template<typename T >
mitk::STLVectorContainerSource< T >::~STLVectorContainerSource (  ) [protected, virtual]

Definition at line 36 of file mitkSTLVectorContainerSource.txx.

{}

Member Function Documentation

template<typename T >
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.

template<typename T>
virtual const char* mitk::STLVectorContainerSource< T >::GetClassName (  ) const [virtual]
template<typename T >
mitk::STLVectorContainerSource< T >::OutputType * mitk::STLVectorContainerSource< T >::GetOutput ( unsigned int  idx )

Returns the n'th output of the stl vector container source

Parameters:
idxthe index of the wanted output
Returns:
the output with index idx.

Definition at line 82 of file mitkSTLVectorContainerSource.txx.

{
    return static_cast<OutputType*> ( this->ProcessObject::GetOutput( idx ) );
}
template<typename T >
mitk::STLVectorContainerSource< T >::OutputType * mitk::STLVectorContainerSource< T >::GetOutput ( void   )

Returns the output with index 0 of the stl vector container source

Returns:
the output

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 ) );
}
template<typename T >
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.

Parameters:
outputthe 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 );
    }
}
template<typename T >
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.

Parameters:
idxthe index of the output for which an object should be created
Returns:
the new object

Definition at line 44 of file mitkSTLVectorContainerSource.txx.

{
    return OutputType::New().GetPointer();
}
template<typename T>
static Pointer mitk::STLVectorContainerSource< T >::New (  ) [static]
template<typename T >
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.

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

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