itkBloxImage.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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&);
00123 void operator=(const Self&);
00124
00125 };
00126
00127 }
00128
00129
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