00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBloxImage.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006/03/16 22:07:45 $ 00007 Version: $Revision: 1.22 $ 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 #ifndef ITK_MANUAL_INSTANTIATION 00130 #include "itkBloxImage.txx" 00131 #endif 00132 00133 #endif 00134