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

itkReflectImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkReflectImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/03/22 16:26:44 $
00007   Version:   $Revision: 1.9 $
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 __itkReflectImageFilter_h
00018 #define __itkReflectImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk
00023 {
00024   
00033 template <class TInputImage, class TOutputImage>
00034 class ITK_EXPORT ReflectImageFilter : public ImageToImageFilter<TInputImage,TOutputImage> 
00035 {
00036 public:
00038   typedef ReflectImageFilter  Self;
00039   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00040   typedef SmartPointer<Self>   Pointer;
00041   typedef SmartPointer<const Self>  ConstPointer;
00042 
00044   itkNewMacro(Self);
00045 
00047   itkTypeMacro(ReflectImageFilter, ImageToImageFilter);
00048 
00050   typedef TInputImage InputImageType;
00051   typedef typename    InputImageType::Pointer    InputImagePointer;
00052   typedef typename    InputImageType::RegionType InputImageRegionType; 
00053   typedef typename    InputImageType::PixelType  InputImagePixelType; 
00054   typedef TOutputImage OutputImageType;
00055   typedef typename     OutputImageType::Pointer    OutputImagePointer;
00056   typedef typename     OutputImageType::RegionType OutputImageRegionType;
00057   typedef typename     OutputImageType::PixelType  OutputImagePixelType;
00058 
00060   itkGetMacro( Direction, unsigned int );
00061   itkSetMacro( Direction, unsigned int );
00063 
00065   itkStaticConstMacro(InputImageDimension, unsigned int,
00066                       TInputImage::ImageDimension);
00067   itkStaticConstMacro(OutputImageDimension, unsigned int,
00068                       TOutputImage::ImageDimension);
00070 
00071 #ifdef ITK_USE_CONCEPT_CHECKING
00072 
00073   itkConceptMacro(SameDimensionCheck,
00074     (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00075   itkConceptMacro(InputConvertibleToOutputCheck,
00076     (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00077 
00079 #endif
00080 
00081 protected:
00082   ReflectImageFilter();
00083   virtual ~ReflectImageFilter() {};
00084   void PrintSelf(std::ostream& os, Indent indent) const;
00085 
00090   void GenerateData(void);
00091 
00092 private:
00093   ReflectImageFilter(const Self&); //purposely not implemented
00094   void operator=(const Self&); //purposely not implemented
00095 
00096   unsigned int m_Direction;
00097 
00098 };
00099 
00100 } // end namespace itk
00101 
00102 #ifndef ITK_MANUAL_INSTANTIATION
00103 #include "itkReflectImageFilter.txx"
00104 #endif
00105 
00106 #endif
00107 

Generated at Tue Jul 29 22:00:20 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000