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: 2003/09/10 14:29:20 $ 00007 Version: $Revision: 1.2 $ 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 00018 #ifndef _itkPathSource_h 00019 #define _itkPathSource_h 00020 00021 #include "itkProcessObject.h" 00022 #include "itkPath.h" 00023 00024 namespace itk 00025 { 00026 00040 template <class TOutputPath> 00041 class ITK_EXPORT PathSource : public ProcessObject 00042 { 00043 public: 00045 typedef PathSource Self; 00046 typedef ProcessObject Superclass; 00047 typedef SmartPointer<Self> Pointer; 00048 typedef SmartPointer<const Self> ConstPointer; 00049 00051 typedef DataObject::Pointer DataObjectPointer; 00052 00054 itkNewMacro(Self); 00055 00057 itkTypeMacro(PathSource,ProcessObject); 00058 00060 typedef TOutputPath OutputPathType; 00061 typedef typename OutputPathType::Pointer OutputPathPointer; 00062 typedef typename OutputPathType::InputType OutputPathInputType; 00063 typedef typename OutputPathType::OutputType OutputPathOutputType; 00064 typedef typename OutputPathType::IndexType OutputPathIndexType; 00065 typedef typename OutputPathType::OffsetType OutputPathOffsetType; 00066 00107 OutputPathType * GetOutput(void); 00108 OutputPathType * GetOutput(unsigned int idx); 00109 00144 // just calls GraftNthOutput() 00145 virtual void GraftOutput(OutputPathType *output); 00146 00153 virtual void GraftNthOutput(unsigned int idx, OutputPathType *output); 00154 00168 virtual DataObjectPointer MakeOutput(unsigned int idx); 00169 00170 protected: 00171 PathSource(); 00172 virtual ~PathSource() {} 00173 void PrintSelf(std::ostream& os, Indent indent) const; 00174 00175 // Inherit the empty ProcessObject::GenerateData() 00176 00177 // Inherit ProcessObject::PrepareOutputs(), which calls Initialize() 00178 // (Image replaces w/ empty function) 00179 00180 private: 00181 PathSource(const Self&); //purposely not implemented 00182 void operator=(const Self&); //purposely not implemented 00183 }; 00184 00185 } // end namespace itk 00186 00187 #ifndef ITK_MANUAL_INSTANTIATION 00188 #include "itkPathSource.txx" 00189 #endif 00190 00191 #endif

Generated at Sun Apr 1 02:40:35 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000