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

itkBloxImage.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBloxImage.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-02-05 13:35:52 $
00007   Version:   $Revision: 1.23 $
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 __itkBloxImage_h
00018 #define __itkBloxImage_h
00019 
00020 #include "itkBloxPixel.h"
00021 #include "itkImage.h"
00022 
00023 namespace itk
00024 {
00025 
00060 template <typename TBloxPixelType, unsigned int TImageDimension=3>
00061 class ITK_EXPORT BloxImage : public Image<TBloxPixelType, TImageDimension>
00062 {
00063 public:
00064 
00066   typedef BloxImage                               Self;
00067   typedef Image<TBloxPixelType, TImageDimension>  Superclass;
00068   typedef SmartPointer<Self>                      Pointer;
00069   typedef SmartPointer<const Self>                ConstPointer;
00070   typedef WeakPointer<const Self>                 ConstWeakPointer;
00071 
00073   itkNewMacro(Self);  
00074 
00076   itkTypeMacro(BloxImage, Image);
00077 
00080   typedef TBloxPixelType PixelType;
00081 
00086   typedef TBloxPixelType InternalPixelType;
00087 
00088   typedef typename Superclass::IOPixelType   IOPixelType;
00089 
00092   typedef DefaultPixelAccessor< PixelType > AccessorType;
00093 
00098   itkStaticConstMacro(ImageDimension, unsigned int, TImageDimension);
00099 
00101   typedef typename Superclass::PixelContainer PixelContainer;
00102   typedef typename Superclass::SizeType       SizeType;
00103   typedef typename Superclass::IndexType      IndexType;
00104   typedef typename Superclass::OffsetType     OffsetType;
00105   typedef typename Superclass::RegionType     RegionType;
00106 
00108   typedef typename PixelContainer::Pointer PixelContainerPointer;
00109 
00114   void EmptyImage();
00115 
00116 protected:
00117   BloxImage();
00118   virtual ~BloxImage();
00119   void PrintSelf(std::ostream& os, Indent indent) const;
00120 
00121 private:
00122   BloxImage(const Self&); //purposely not implemented
00123   void operator=(const Self&); //purposely not implemented
00124 
00125 };
00126 
00127 } // end namespace itk
00128 
00129 // Define instantiation macro for this template.
00130 #define ITK_TEMPLATE_BloxImage(_, EXPORT, x, y) namespace itk { \
00131   _(2(class EXPORT BloxImage< ITK_TEMPLATE_2 x >)) \
00132   namespace Templates { typedef BloxImage< ITK_TEMPLATE_2 x > \
00133                                BloxImage##y; } \
00134   }
00135 
00136 #if ITK_TEMPLATE_EXPLICIT
00137 # include "Templates/itkBloxImage+-.h"
00138 #endif
00139 
00140 #if ITK_TEMPLATE_TXX
00141 # include "itkBloxImage.txx"
00142 #endif
00143 
00144 #endif
00145 

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