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

itkOrientedImage.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkOrientedImage.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-19 19:41:22 $
00007   Version:   $Revision: 1.28 $
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 __itkOrientedImage_h
00018 #define __itkOrientedImage_h
00019 
00020 #include "itkImage.h"
00021 
00022 namespace itk
00023 {
00024 
00034 template <class TPixel, unsigned int VImageDimension>
00035 class ITK_EXPORT OrientedImage : public Image<TPixel,VImageDimension>
00036 {
00037 public:
00039   typedef OrientedImage                   Self;
00040   typedef Image<TPixel,VImageDimension>   Superclass;
00041   typedef SmartPointer<Self>              Pointer;
00042   typedef SmartPointer<const Self>        ConstPointer;
00043   typedef WeakPointer<const Self>         ConstWeakPointer;
00044 
00046   itkNewMacro(Self);
00047 
00049   itkTypeMacro(OrientedImage, Image);
00050 
00052   typedef typename Superclass::IndexType  IndexType;
00053 
00055   typedef typename Superclass::DirectionType  DirectionType;
00056 
00059   typedef typename Superclass::SpacingType SpacingType;
00060 
00061   typedef typename Superclass::AccessorType        AccessorType;
00062   typedef typename Superclass::AccessorFunctorType AccessorFunctorType;
00063   typedef typename Superclass::IOPixelType         IOPixelType;
00064 
00067   typedef NeighborhoodAccessorFunctor< Self >      NeighborhoodAccessorFunctorType;
00068 
00071   NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() 
00072     { return NeighborhoodAccessorFunctorType(); }
00073 
00076   const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
00077     { return NeighborhoodAccessorFunctorType(); }
00078 
00079 
00080 
00081 protected:
00082   OrientedImage();
00083   virtual ~OrientedImage() {};
00084 
00090   virtual void ComputeIndexToPhysicalPointMatrices();
00091 
00092 private:
00093   OrientedImage(const Self&); //purposely not implemented
00094   void operator=(const Self&); //purposely not implemented
00095 
00096 };
00097 } // end namespace itk
00098 
00099 // Define instantiation macro for this template.
00100 #define ITK_TEMPLATE_OrientedImage(_, EXPORT, x, y) namespace itk { \
00101   _(2(class EXPORT OrientedImage< ITK_TEMPLATE_2 x >)) \
00102   namespace Templates { typedef OrientedImage< ITK_TEMPLATE_2 x > OrientedImage##y; } \
00103   }
00104 
00105 #if ITK_TEMPLATE_EXPLICIT
00106 # include "Templates/itkOrientedImage+-.h"
00107 #endif
00108 
00109 #if ITK_TEMPLATE_TXX
00110 # include "itkOrientedImage.txx"
00111 #endif
00112 
00113 #endif
00114 

Generated at Thu May 28 11:04:36 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000