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

itkImageAndPathToImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageAndPathToImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-17 01:41:59 $
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 __itkImageAndPathToImageFilter_h
00018 #define __itkImageAndPathToImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk
00023 {
00024 
00037 template <class TInputImage, class TInputPath, class TOutputImage>
00038 class ITK_EXPORT ImageAndPathToImageFilter :
00039     public ImageToImageFilter<TInputImage,TOutputImage>
00040 {
00041 public:
00043   typedef ImageAndPathToImageFilter                       Self;
00044   typedef ImageToImageFilter<TInputImage,TOutputImage>    Superclass;
00045   typedef SmartPointer<Self>                              Pointer;
00046   typedef SmartPointer<const Self>                        ConstPointer;
00047 
00049   itkNewMacro(Self);
00050 
00052   itkTypeMacro(ImageAndPathToImageFilter, ImageToImageFilter);
00053 
00055   typedef          TInputImage                    InputImageType;
00056   typedef typename InputImageType::ConstPointer   InputImagePointer;
00057   typedef typename InputImageType::RegionType     InputImageRegionType;
00058   typedef typename InputImageType::PixelType      InputImagePixelType;
00059   typedef          TInputPath                     InputPathType;
00060   typedef typename InputPathType::Pointer         InputPathPointer;
00061   typedef typename InputPathType::ConstPointer    InputPathConstPointer;
00062   typedef typename InputPathType::InputType       InputPathInputType;
00063   typedef typename InputPathType::OutputType      InputPathOutputType;
00064   typedef typename InputPathType::IndexType       InputPathIndexType;
00065   typedef typename InputPathType::OffsetType      InputPathOffsetType;
00066   typedef          TOutputImage                   OutputImageType;
00067   typedef typename OutputImageType::Pointer       OutputImagePointer;
00068   typedef typename OutputImageType::RegionType    OutputImageRegionType;
00069   typedef typename OutputImageType::PixelType     OutputImagePixelType;
00070 
00072   itkStaticConstMacro(InputImageDimension, unsigned int,
00073                       TInputImage::ImageDimension);
00074   itkStaticConstMacro(OutputImageDimension, unsigned int,
00075                       TOutputImage::ImageDimension);
00077 
00079   virtual void SetImageInput( const TInputImage * image);
00080   const InputImageType * GetImageInput(void);
00082 
00084   virtual void SetPathInput( const TInputPath * path);
00085   const InputPathType * GetPathInput(void);
00087 
00088 protected:
00089   ImageAndPathToImageFilter();
00090   virtual ~ImageAndPathToImageFilter() {};
00091 
00092   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00093 
00094 private:
00095   ImageAndPathToImageFilter(const Self&); //purposely not implemented
00096   void operator=(const Self&); //purposely not implemented
00097 };
00098 
00099 } // end namespace itk
00100 
00101 #ifndef ITK_MANUAL_INSTANTIATION
00102 #include "itkImageAndPathToImageFilter.txx"
00103 #endif
00104 
00105 #endif
00106 

Generated at Wed Nov 5 21:57:33 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000