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

itkPathSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPathSource.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006-02-06 22:01:57 $
00007   Version:   $Revision: 1.3 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkPathSource_h
00018 #define __itkPathSource_h
00019 
00020 #include "itkProcessObject.h"
00021 #include "itkPath.h"
00022 
00023 namespace itk
00024 {
00025   
00039 template <class TOutputPath>
00040 class ITK_EXPORT PathSource : public ProcessObject
00041 {
00042 public:
00044   typedef PathSource                Self;
00045   typedef ProcessObject             Superclass;
00046   typedef SmartPointer<Self>        Pointer;
00047   typedef SmartPointer<const Self>  ConstPointer;
00048 
00050   typedef DataObject::Pointer DataObjectPointer;
00051 
00053   itkNewMacro(Self);
00054 
00056   itkTypeMacro(PathSource,ProcessObject);
00057 
00059   typedef TOutputPath                         OutputPathType;
00060   typedef typename OutputPathType::Pointer    OutputPathPointer;
00061   typedef typename OutputPathType::InputType  OutputPathInputType;
00062   typedef typename OutputPathType::OutputType OutputPathOutputType;
00063   typedef typename OutputPathType::IndexType  OutputPathIndexType;
00064   typedef typename OutputPathType::OffsetType OutputPathOffsetType;
00065 
00106   OutputPathType * GetOutput(void);
00107   OutputPathType * GetOutput(unsigned int idx);
00109 
00144   // just calls GraftNthOutput()
00145   virtual void GraftOutput(OutputPathType *output);
00147 
00154   virtual void GraftNthOutput(unsigned int idx, OutputPathType *output);
00155 
00169   virtual DataObjectPointer MakeOutput(unsigned int idx);
00170 
00171 protected:
00172   PathSource();
00173   virtual ~PathSource() {}
00174   void PrintSelf(std::ostream& os, Indent indent) const;
00175   
00176   // Inherit the empty ProcessObject::GenerateData()
00177   
00178   // Inherit ProcessObject::PrepareOutputs(), which calls Initialize()
00179   // (Image replaces w/ empty function)
00180   
00181 private:
00182   PathSource(const Self&); //purposely not implemented
00183   void operator=(const Self&);   //purposely not implemented
00184 };
00185 
00186 } // end namespace itk
00187 
00188 #ifndef ITK_MANUAL_INSTANTIATION
00189 #include "itkPathSource.txx"
00190 #endif
00191 
00192 #endif
00193 

Generated at Fri Apr 16 19:17:15 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000