ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkImageAndPathToImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkImageAndPathToImageFilter_h
00019 #define __itkImageAndPathToImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk
00024 {
00038 template< class TInputImage, class TInputPath, class TOutputImage >
00039 class ITK_EXPORT ImageAndPathToImageFilter:
00040   public ImageToImageFilter< TInputImage, TOutputImage >
00041 {
00042 public:
00044   typedef ImageAndPathToImageFilter                       Self;
00045   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00046   typedef SmartPointer< Self >                            Pointer;
00047   typedef SmartPointer< const Self >                      ConstPointer;
00048 
00050   itkNewMacro(Self);
00051 
00053   itkTypeMacro(ImageAndPathToImageFilter, ImageToImageFilter);
00054 
00056   typedef          TInputImage                  InputImageType;
00057   typedef typename InputImageType::ConstPointer InputImagePointer;
00058   typedef typename InputImageType::RegionType   InputImageRegionType;
00059   typedef typename InputImageType::PixelType    InputImagePixelType;
00060   typedef          TInputPath                   InputPathType;
00061   typedef typename InputPathType::Pointer       InputPathPointer;
00062   typedef typename InputPathType::ConstPointer  InputPathConstPointer;
00063   typedef typename InputPathType::InputType     InputPathInputType;
00064   typedef typename InputPathType::OutputType    InputPathOutputType;
00065   typedef typename InputPathType::IndexType     InputPathIndexType;
00066   typedef typename InputPathType::OffsetType    InputPathOffsetType;
00067   typedef          TOutputImage                 OutputImageType;
00068   typedef typename OutputImageType::Pointer     OutputImagePointer;
00069   typedef typename OutputImageType::RegionType  OutputImageRegionType;
00070   typedef typename OutputImageType::PixelType   OutputImagePixelType;
00071 
00073   itkStaticConstMacro(InputImageDimension, unsigned int,
00074                       TInputImage::ImageDimension);
00075   itkStaticConstMacro(OutputImageDimension, unsigned int,
00076                       TOutputImage::ImageDimension);
00078 
00080   virtual void SetImageInput(const TInputImage *image);
00081 
00082   const InputImageType * GetImageInput(void);
00083 
00085   virtual void SetPathInput(const TInputPath *path);
00086 
00087   const InputPathType * GetPathInput(void);
00088 
00089 protected:
00090   ImageAndPathToImageFilter();
00091   virtual ~ImageAndPathToImageFilter() {}
00092 
00093   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00094 
00095 private:
00096   ImageAndPathToImageFilter(const Self &); //purposely not implemented
00097   void operator=(const Self &);            //purposely not implemented
00098 };
00099 } // end namespace itk
00100 
00101 #ifndef ITK_MANUAL_INSTANTIATION
00102 #include "itkImageAndPathToImageFilter.hxx"
00103 #endif
00104 
00105 #endif
00106