00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkPathAndImageToPathFilter_h
00018 #define __itkPathAndImageToPathFilter_h
00019
00020 #include "itkPathToPathFilter.h"
00021
00022 namespace itk
00023 {
00024
00036 template <class TInputPath, class TInputImage, class TOutputPath>
00037 class ITK_EXPORT PathAndImageToPathFilter :
00038 public PathToPathFilter<TInputPath,TOutputPath>
00039 {
00040 public:
00042 typedef PathAndImageToPathFilter Self;
00043 typedef PathToPathFilter<TInputPath,TOutputPath> Superclass;
00044 typedef SmartPointer<Self> Pointer;
00045 typedef SmartPointer<const Self> ConstPointer;
00046
00048 itkNewMacro(Self);
00049
00051 itkTypeMacro(PathAndImageToPathFilter, PathToPathFilter);
00052
00054 typedef TInputPath InputPathType;
00055 typedef typename InputPathType::Pointer InputPathPointer;
00056 typedef typename InputPathType::ConstPointer InputPathConstPointer;
00057 typedef typename InputPathType::InputType InputPathInputType;
00058 typedef typename InputPathType::OutputType InputPathOutputType;
00059 typedef typename InputPathType::IndexType InputPathIndexType;
00060 typedef typename InputPathType::OffsetType InputPathOffsetType;
00061 typedef TInputImage InputImageType;
00062 typedef typename InputImageType::ConstPointer InputImagePointer;
00063 typedef typename InputImageType::RegionType InputImageRegionType;
00064 typedef typename InputImageType::PixelType InputImagePixelType;
00065 typedef TOutputPath OutputPathType;
00066 typedef typename OutputPathType::Pointer OutputPathPointer;
00067 typedef typename OutputPathType::InputType OutputPathInputType;
00068 typedef typename OutputPathType::OutputType OutputPathOutputType;
00069 typedef typename OutputPathType::IndexType OutputPathIndexType;
00070 typedef typename OutputPathType::OffsetType OutputPathOffsetType;
00071
00073 itkStaticConstMacro(InputImageDimension, unsigned int,
00074 TInputImage::ImageDimension);
00075
00077 virtual void SetPathInput( const TInputPath * path);
00078 const InputPathType * GetPathInput(void);
00079
00081 virtual void SetImageInput( const TInputImage * image);
00082 const InputImageType * GetImageInput(void);
00083
00084 protected:
00085 PathAndImageToPathFilter();
00086 virtual ~PathAndImageToPathFilter() {};
00087
00088 virtual void PrintSelf(std::ostream& os, Indent indent) const;
00089
00097 virtual void GenerateInputRequestedRegion();
00098
00099 private:
00100 PathAndImageToPathFilter(const Self&);
00101 void operator=(const Self&);
00102 };
00103
00104 }
00105
00106 #ifndef ITK_MANUAL_INSTANTIATION
00107 #include "itkPathAndImageToPathFilter.txx"
00108 #endif
00109
00110 #endif