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

mitk::DiffusionImageSource< TPixelType > Class Template Reference
[Process Classes]

Superclass of all classes generating diffusion volumes (instances of class DiffusionImage) as output. More...

#include <mitkDiffusionImageSource.h>

Inheritance diagram for mitk::DiffusionImageSource< TPixelType >:
Inheritance graph
[legend]
Collaboration diagram for mitk::DiffusionImageSource< TPixelType >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef DiffusionImageSource Self
typedef BaseProcess Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer
typedef DiffusionImage
< TPixelType > 
OutputType
typedef itk::DataObject::Pointer DataObjectPointer
 Smart Pointer type to a DataObject.

Public Member Functions

virtual const char * GetClassName () const
virtual DataObjectPointer MakeOutput (unsigned int idx)
 Make a DataObject of the correct type to used as the specified output.

Static Public Member Functions

static Pointer New ()
 Method for creation through the object factory.

Protected Member Functions

 DiffusionImageSource ()
virtual ~DiffusionImageSource ()

Detailed Description

template<typename TPixelType>
class mitk::DiffusionImageSource< TPixelType >

Superclass of all classes generating diffusion volumes (instances of class DiffusionImage) as output.

Definition at line 45 of file mitkDiffusionImageSource.h.


Member Typedef Documentation

template<typename TPixelType >
typedef itk::SmartPointer<const Self> mitk::DiffusionImageSource< TPixelType >::ConstPointer

Reimplemented in mitk::NrrdDiffusionImageReader< TPixelType >.

Definition at line 48 of file mitkDiffusionImageSource.h.

template<typename TPixelType >
typedef itk::DataObject::Pointer mitk::DiffusionImageSource< TPixelType >::DataObjectPointer

Smart Pointer type to a DataObject.

Reimplemented from mitk::ImageSource.

Definition at line 52 of file mitkDiffusionImageSource.h.

template<typename TPixelType >
typedef DiffusionImage<TPixelType> mitk::DiffusionImageSource< TPixelType >::OutputType

Reimplemented in mitk::NrrdDiffusionImageReader< TPixelType >.

Definition at line 49 of file mitkDiffusionImageSource.h.

template<typename TPixelType >
typedef itk::SmartPointer<Self> mitk::DiffusionImageSource< TPixelType >::Pointer

Reimplemented in mitk::NrrdDiffusionImageReader< TPixelType >.

Definition at line 48 of file mitkDiffusionImageSource.h.

template<typename TPixelType >
typedef DiffusionImageSource mitk::DiffusionImageSource< TPixelType >::Self

Reimplemented in mitk::NrrdDiffusionImageReader< TPixelType >.

Definition at line 48 of file mitkDiffusionImageSource.h.

template<typename TPixelType >
typedef BaseProcess mitk::DiffusionImageSource< TPixelType >::Superclass

Reimplemented in mitk::NrrdDiffusionImageReader< TPixelType >.

Definition at line 48 of file mitkDiffusionImageSource.h.


Constructor & Destructor Documentation

template<typename TPixelType >
mitk::DiffusionImageSource< TPixelType >::DiffusionImageSource (  ) [protected]

Definition at line 25 of file mitkDiffusionImageSource.cpp.

{
  // Create the output. We use static_cast<> here because we know the default
  // output must be of type DiffusionImage
  typename mitk::DiffusionImage<TPixelType>::Pointer output
    = static_cast<typename mitk::DiffusionImage<TPixelType>*>(this->MakeOutput(0).GetPointer());

  Superclass::SetNumberOfRequiredOutputs(1);
  Superclass::SetNthOutput(0, output.GetPointer());
}
template<typename TPixelType >
mitk::DiffusionImageSource< TPixelType >::~DiffusionImageSource (  ) [protected, virtual]

Definition at line 37 of file mitkDiffusionImageSource.cpp.

{
}

Member Function Documentation

template<typename TPixelType >
virtual const char* mitk::DiffusionImageSource< TPixelType >::GetClassName (  ) const [virtual]
template<typename TPixelType >
itk::DataObject::Pointer mitk::DiffusionImageSource< TPixelType >::MakeOutput ( unsigned int  idx ) [virtual]

Make a DataObject of the correct type to used as the specified output.

Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a SmartPointer to a DataObject. If a subclass of ImageSource has multiple outputs of different types, then that class must provide an implementation of MakeOutput().

Reimplemented from mitk::ImageSource.

Definition at line 43 of file mitkDiffusionImageSource.cpp.

References mitk::DiffusionImage< TPixelType >::New().

{
  return static_cast<itk::DataObject*>(mitk::DiffusionImage<TPixelType>::New().GetPointer());
}
template<typename TPixelType >
static Pointer mitk::DiffusionImageSource< TPixelType >::New (  ) [static]

Method for creation through the object factory.

Reimplemented from mitk::ImageSource.

Reimplemented in mitk::NrrdDiffusionImageReader< TPixelType >.


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