00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBloxImage.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/09/11 19:39:03 $ 00007 Version: $Revision: 1.17 $ 00008 00009 Copyright (c) 2002 Insight 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 00059 template <typename TBloxPixelType, unsigned int VImageDimension=3> 00060 class ITK_EXPORT BloxImage : public Image<TBloxPixelType, VImageDimension> 00061 { 00062 public: 00064 typedef BloxImage Self; 00065 typedef Image<TBloxPixelType, VImageDimension> Superclass; 00066 typedef SmartPointer<Self> Pointer; 00067 typedef SmartPointer<const Self> ConstPointer; 00068 00070 itkNewMacro(Self); 00071 00073 itkTypeMacro(BloxImage, Image); 00074 00077 typedef TBloxPixelType PixelType; 00078 00083 typedef TBloxPixelType InternalPixelType; 00084 00087 typedef DefaultPixelAccessor< PixelType > AccessorType; 00088 00093 itkStaticConstMacro(ImageDimension, unsigned int, VImageDimension); 00094 00096 typedef typename Superclass::PixelContainer PixelContainer; 00097 typedef typename Superclass::SizeType SizeType; 00098 typedef typename Superclass::IndexType IndexType; 00099 typedef typename Superclass::OffsetType OffsetType; 00100 typedef typename Superclass::RegionType RegionType; 00101 00103 typedef typename PixelContainer::Pointer PixelContainerPointer; 00104 00109 void EmptyImage(); 00110 00111 protected: 00112 BloxImage(); 00113 virtual ~BloxImage(); 00114 void PrintSelf(std::ostream& os, Indent indent) const; 00115 00116 private: 00117 BloxImage(const Self&); //purposely not implemented 00118 void operator=(const Self&); //purposely not implemented 00119 00120 }; 00121 00122 } // end namespace itk 00123 00124 #ifndef ITK_MANUAL_INSTANTIATION 00125 #include "itkBloxImage.txx" 00126 #endif 00127 00128 #endif