Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::PathSource< TOutputPath > Class Template Reference
[Data Sources]

Base class for all process objects that output path data. More...

#include <itkPathSource.h>

Inheritance diagram for itk::PathSource< TOutputPath >:

Inheritance graph
[legend]
Collaboration diagram for itk::PathSource< TOutputPath >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef PathSource Self
typedef ProcessObject Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef DataObject::Pointer DataObjectPointer
typedef TOutputPath OutputPathType
typedef OutputPathType::Pointer OutputPathPointer
typedef OutputPathType::InputType OutputPathInputType
typedef OutputPathType::OutputType OutputPathOutputType
typedef OutputPathType::IndexType OutputPathIndexType
typedef OutputPathType::OffsetType OutputPathOffsetType

Public Member Functions

virtual const char * GetClassName () const
virtual void GraftNthOutput (unsigned int idx, OutputPathType *output)
virtual DataObjectPointer MakeOutput (unsigned int idx)
OutputPathTypeGetOutput (void)
OutputPathTypeGetOutput (unsigned int idx)
virtual void GraftOutput (OutputPathType *output)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 PathSource ()
virtual ~PathSource ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

template<class TOutputPath>
class itk::PathSource< TOutputPath >

Base class for all process objects that output path data.

PathSource is the base class for all process objects that output path data. Specifically, this class defines the GetOutput() method that returns a pointer to the output path. The class also defines some internal private data members that are used to manage streaming of data.

Definition at line 41 of file itkPathSource.h.


Member Typedef Documentation

template<class TOutputPath>
typedef SmartPointer<const Self> itk::PathSource< TOutputPath >::ConstPointer
 

Reimplemented from itk::ProcessObject.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.

Definition at line 48 of file itkPathSource.h.

template<class TOutputPath>
typedef DataObject::Pointer itk::PathSource< TOutputPath >::DataObjectPointer
 

Smart Pointer type to a DataObject.

Reimplemented from itk::ProcessObject.

Definition at line 51 of file itkPathSource.h.

template<class TOutputPath>
typedef OutputPathType::IndexType itk::PathSource< TOutputPath >::OutputPathIndexType
 

Reimplemented in itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, and itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >.

Definition at line 64 of file itkPathSource.h.

template<class TOutputPath>
typedef OutputPathType::InputType itk::PathSource< TOutputPath >::OutputPathInputType
 

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, and itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >.

Definition at line 62 of file itkPathSource.h.

template<class TOutputPath>
typedef OutputPathType::OffsetType itk::PathSource< TOutputPath >::OutputPathOffsetType
 

Reimplemented in itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, and itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >.

Definition at line 65 of file itkPathSource.h.

template<class TOutputPath>
typedef OutputPathType::OutputType itk::PathSource< TOutputPath >::OutputPathOutputType
 

Reimplemented in itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, and itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >.

Definition at line 63 of file itkPathSource.h.

template<class TOutputPath>
typedef OutputPathType::Pointer itk::PathSource< TOutputPath >::OutputPathPointer
 

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, and itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >.

Definition at line 61 of file itkPathSource.h.

template<class TOutputPath>
typedef TOutputPath itk::PathSource< TOutputPath >::OutputPathType
 

Some convenient typedefs.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, and itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >.

Definition at line 60 of file itkPathSource.h.

template<class TOutputPath>
typedef SmartPointer<Self> itk::PathSource< TOutputPath >::Pointer
 

Reimplemented from itk::ProcessObject.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.

Definition at line 47 of file itkPathSource.h.

template<class TOutputPath>
typedef PathSource itk::PathSource< TOutputPath >::Self
 

Standard class typedefs.

Reimplemented from itk::ProcessObject.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.

Definition at line 45 of file itkPathSource.h.

template<class TOutputPath>
typedef ProcessObject itk::PathSource< TOutputPath >::Superclass
 

Reimplemented from itk::ProcessObject.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.

Definition at line 46 of file itkPathSource.h.


Constructor & Destructor Documentation

template<class TOutputPath>
itk::PathSource< TOutputPath >::PathSource  )  [protected]
 

template<class TOutputPath>
virtual itk::PathSource< TOutputPath >::~PathSource  )  [inline, protected, virtual]
 

Definition at line 174 of file itkPathSource.h.


Member Function Documentation

template<class TOutputPath>
virtual const char* itk::PathSource< TOutputPath >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ProcessObject.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.

template<class TOutputPath>
OutputPathType* itk::PathSource< TOutputPath >::GetOutput unsigned int  idx  ) 
 

Get the output data of this process object. The output of this function is not valid until an appropriate Update() method has been called, either explicitly or implicitly. Both the filter itself and the data object have Update() methods, and both methods update the data. Here are three ways to use GetOutput() and make sure the data is valid. In these examples, image is a pointer to some Image object, and the particular ProcessObjects involved are filters. The same examples apply to non-image (e.g. Mesh) data as well.

   anotherFilter->SetInput( someFilter->GetOutput() );
   anotherFilter->Update();

In this situation, someFilter and anotherFilter are said to constitute a pipeline.

   image = someFilter->GetOutput();
   image->Update();

   someFilter->Update();
   image = someFilter->GetOutput();
(In the above example, the two lines of code can be in either order.)

Note that Update() is not called automatically except within a pipeline as in the first example. When streaming (using a StreamingImageFilter) is activated, it may be more efficient to use a pipeline than to call Update() once for each filter in turn.

For an image, the data generated is for the requested Region, which can be set using ImageBase::SetRequestedRegion(). By default, the largest possible region is requested.

Reimplemented from itk::ProcessObject.

template<class TOutputPath>
OutputPathType* itk::PathSource< TOutputPath >::GetOutput void   ) 
 

Get the output data of this process object. The output of this function is not valid until an appropriate Update() method has been called, either explicitly or implicitly. Both the filter itself and the data object have Update() methods, and both methods update the data. Here are three ways to use GetOutput() and make sure the data is valid. In these examples, image is a pointer to some Image object, and the particular ProcessObjects involved are filters. The same examples apply to non-image (e.g. Mesh) data as well.

   anotherFilter->SetInput( someFilter->GetOutput() );
   anotherFilter->Update();

In this situation, someFilter and anotherFilter are said to constitute a pipeline.

   image = someFilter->GetOutput();
   image->Update();

   someFilter->Update();
   image = someFilter->GetOutput();
(In the above example, the two lines of code can be in either order.)

Note that Update() is not called automatically except within a pipeline as in the first example. When streaming (using a StreamingImageFilter) is activated, it may be more efficient to use a pipeline than to call Update() once for each filter in turn.

For an image, the data generated is for the requested Region, which can be set using ImageBase::SetRequestedRegion(). By default, the largest possible region is requested.

template<class TOutputPath>
virtual void itk::PathSource< TOutputPath >::GraftNthOutput unsigned int  idx,
OutputPathType output
[virtual]
 

Graft the specified data object onto this ProcessObject's idx'th output. This is the similar to GraftOutput method except is allows you specify which output is affected. The specified index must be a valid output number (less than ProcessObject::GetNumberOfOutputs()). See the GraftOutput for general usage information.

template<class TOutputPath>
virtual void itk::PathSource< TOutputPath >::GraftOutput OutputPathType output  )  [virtual]
 

Graft the specified DataObject onto this ProcessObject's output. This method grabs a handle to the specified DataObject's path data to use as its output's own path data. It also copies the region ivars (RequestedRegion, BufferedRegion, LargestPossibleRegion) and meta-data (Spacing, Origin) from the specified data object into this filter's output data object. Most importantly, however, it leaves the Source ivar untouched so the original pipeline routing is intact. This method is used when a process object is implemented using a mini-pipeline which is defined in its GenerateData() method. The usage is:

    // setup the mini-pipeline to process the input to this filter
    firstFilterInMiniPipeline->SetInput( this->GetInput() );

    // setup the mini-pipeline to calculate the correct regions
    // and write to the appropriate bulk data block
    lastFilterInMiniPipeline->GraftOutput( this->GetOutput() );

    // execute the mini-pipeline
    lastFilterInMiniPipeline->Update();

    // graft the mini-pipeline output back onto this filter's output.
    // this is needed to get the appropriate regions passed back.
    this->GraftOutput( lastFilterInMiniPipeline->GetOutput() );

For proper pipeline execution, a filter using a mini-pipeline must implement the GeneratseInputRequestedRegion(), GenerateOutputRequestedRegion(), GenerateOutputInformation() and EnlargeOutputRequestedRegion() methods as necessary to reflect how the mini-pipeline will execute (in other words, the outer filter's pipeline mechanism must be consistent with what the mini-pipeline will do).

template<class TOutputPath>
virtual DataObjectPointer itk::PathSource< TOutputPath >::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 itk::ProcessObject.

template<class TOutputPath>
Pointer itk::PathSource< TOutputPath >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.

template<class TOutputPath>
void itk::PathSource< TOutputPath >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::ProcessObject.

Reimplemented in itk::OrthogonalSwath2DPathFilter< TFourierSeriesPath, TSwathMeritImage >, itk::SwathChainCodePathFilter< TPath, TImage >, itk::ChainCodeToFourierSeriesPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, itk::PathToChainCodePathFilter< TInputPath, TOutputChainCodePath >, itk::PathAndImageToPathFilter< TInputPath, TInputImage, TOutputPath >, itk::PathToPathFilter< TInputPath, TOutputPath >, itk::PathAndImageToPathFilter< TPath, TImage, TPath >, itk::PathAndImageToPathFilter< TFourierSeriesPath, TSwathMeritImage, OrthogonallyCorrected2DParametricPath >, itk::PathToPathFilter< TPath, TPath >, itk::PathToPathFilter< TInputPath, TOutputChainCodePath >, itk::PathToPathFilter< TInputChainCodePath, TOutputFourierSeriesPath >, and itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >.


The documentation for this class was generated from the following file:
Generated at Sat Mar 31 02:59:02 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000