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

mitk::QBallImageSource Class Reference

#include <mitkQBallImageSource.h>

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

List of all members.

Public Types

typedef mitk::QBallImage OutputImageType
 Some convenient typedefs.
typedef OutputImageType::Pointer OutputImagePointer
typedef SlicedData::RegionType OutputImageRegionType
typedef itk::DataObject::Pointer DataObjectPointer
 Smart Pointer type to a DataObject.
typedef QBallImageSource Self
typedef ImageSource Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

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

 QBallImageSource ()
virtual ~QBallImageSource ()

Detailed Description

Definition at line 27 of file mitkQBallImageSource.h.


Member Typedef Documentation

typedef itk::SmartPointer<const Self> mitk::QBallImageSource::ConstPointer

Reimplemented in mitk::NrrdQBallImageReader.

Definition at line 36 of file mitkQBallImageSource.h.

typedef itk::DataObject::Pointer mitk::QBallImageSource::DataObjectPointer

Smart Pointer type to a DataObject.

Reimplemented from mitk::ImageSource.

Definition at line 34 of file mitkQBallImageSource.h.

Reimplemented from mitk::ImageSource.

Definition at line 32 of file mitkQBallImageSource.h.

Reimplemented from mitk::ImageSource.

Definition at line 33 of file mitkQBallImageSource.h.

Some convenient typedefs.

Reimplemented from mitk::ImageSource.

Definition at line 31 of file mitkQBallImageSource.h.

typedef itk::SmartPointer<Self> mitk::QBallImageSource::Pointer

Reimplemented in mitk::NrrdQBallImageReader.

Definition at line 36 of file mitkQBallImageSource.h.

Reimplemented in mitk::NrrdQBallImageReader.

Definition at line 36 of file mitkQBallImageSource.h.

Reimplemented in mitk::NrrdQBallImageReader.

Definition at line 36 of file mitkQBallImageSource.h.


Constructor & Destructor Documentation

mitk::QBallImageSource::QBallImageSource (  ) [protected]

Definition at line 22 of file mitkQBallImageSource.cpp.

References MakeOutput(), and mitk::BaseProcess::SetNthOutput().

{
  // Create the output. We use static_cast<> here because we know the default
  // output must be of type TOutputImage
  OutputImageType::Pointer output
    = static_cast<OutputImageType*>(this->MakeOutput(0).GetPointer()); 
  Superclass::SetNumberOfRequiredOutputs(1);
  Superclass::SetNthOutput(0, output.GetPointer());
}
virtual mitk::QBallImageSource::~QBallImageSource (  ) [inline, protected, virtual]

Definition at line 43 of file mitkQBallImageSource.h.

{}

Member Function Documentation

virtual const char* mitk::QBallImageSource::GetClassName (  ) const [virtual]

Reimplemented in mitk::NrrdQBallImageReader.

mitk::QBallImageSource::DataObjectPointer mitk::QBallImageSource::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 32 of file mitkQBallImageSource.cpp.

Referenced by QBallImageSource().

{
  return static_cast<itk::DataObject*>(OutputImageType::New().GetPointer());
}
static Pointer mitk::QBallImageSource::New (  ) [static]

Method for creation through the object factory.

Reimplemented from mitk::ImageSource.

Reimplemented in mitk::NrrdQBallImageReader.


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