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: 2009-04-25 12:28:02 $
00007   Version:   $Revision: 1.11 $
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 
00055   typedef TOutputImage                             OutputImageType;
00056   typedef typename     OutputImageType::Pointer    OutputImagePointer;
00057   typedef typename     OutputImageType::RegionType OutputImageRegionType;
00058   typedef typename     OutputImageType::PixelType  OutputImagePixelType;
00059 
00061   itkGetConstMacro( Direction, unsigned int );
00062   itkSetMacro( Direction, unsigned int );
00064 
00066   itkStaticConstMacro(InputImageDimension, unsigned int,
00067                       TInputImage::ImageDimension);
00068   itkStaticConstMacro(OutputImageDimension, unsigned int,
00069                       TOutputImage::ImageDimension);
00071 
00072 #ifdef ITK_USE_CONCEPT_CHECKING
00073 
00074   itkConceptMacro(SameDimensionCheck,
00075     (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
00076   itkConceptMacro(InputConvertibleToOutputCheck,
00077     (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00078 
00080 #endif
00081 
00082 protected:
00083   ReflectImageFilter();
00084   virtual ~ReflectImageFilter() {};
00085   void PrintSelf(std::ostream& os, Indent indent) const;
00086 
00091   void GenerateData(void);
00092 
00093 private:
00094   ReflectImageFilter(const Self&); //purposely not implemented
00095   void operator=(const Self&); //purposely not implemented
00096 
00097   unsigned int m_Direction;
00098 
00099 };
00100 
00101 } // end namespace itk
00102 
00103 #ifndef ITK_MANUAL_INSTANTIATION
00104 #include "itkReflectImageFilter.txx"
00105 #endif
00106 
00107 #endif
00108 

Generated at Fri Apr 16 19:27:00 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000