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

itkPathAndImageToPathFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPathAndImageToPathFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-19 19:41:22 $
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 __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);
00080 
00082   virtual void SetImageInput( const TInputImage * image);
00083   const InputImageType * GetImageInput(void);
00085 
00086 protected:
00087   PathAndImageToPathFilter();
00088   virtual ~PathAndImageToPathFilter() {};
00089 
00090   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00091   
00099   virtual void GenerateInputRequestedRegion();
00100 
00101 private:
00102   PathAndImageToPathFilter(const Self&); //purposely not implemented
00103   void operator=(const Self&); //purposely not implemented
00104 };
00105 
00106 } // end namespace itk
00107 
00108 #ifndef ITK_MANUAL_INSTANTIATION
00109 #include "itkPathAndImageToPathFilter.txx"
00110 #endif
00111 
00112 #endif
00113 

Generated at Mon Jul 12 2010 19:25:25 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000