82 virtual void SetDepth(
unsigned int depth) = 0;
85 virtual void SetWidth(
unsigned int width) = 0;
93 const unsigned int xsize,
const unsigned int ysize,
const unsigned int zsize) = 0;
119 template<
typename TPixel,
unsigned int ColorTableSize,
typename MappingFunctionType >
139 virtual void BuildFromBuffer(
const void *buffer,
const unsigned int xsize,
const unsigned int ysize,
const unsigned int zsize) ITK_OVERRIDE;
145 void SetColor(
unsigned int color) { m_Tree.SetColor(color); }
147 void SetTrueDims(
const unsigned int Dim0,
const unsigned int Dim1,
148 const unsigned int Dim2);
150 int GetValue(
const unsigned int Dim0,
const unsigned int Dim1,
151 const unsigned int Dim2);
153 virtual void SetWidth(
unsigned int width) ITK_OVERRIDE;
155 virtual void SetDepth(
unsigned int depth) ITK_OVERRIDE;
157 virtual unsigned int GetWidth() ITK_OVERRIDE;
159 virtual
unsigned int GetDepth() ITK_OVERRIDE;
165 virtual
int GetColorTableSize() const ITK_OVERRIDE;
168 ITK_DISALLOW_COPY_AND_ASSIGN(
Octree);
170 OctreeNodeBranch * maskToOctree(const TPixel *Mask,
unsigned width,
unsigned x,
171 unsigned y,
unsigned z,
unsigned xsize,
172 unsigned ysize,
unsigned zsize);
175 unsigned int m_Width;
178 unsigned int m_Depth;
179 unsigned int m_TrueDims[3];
183 MappingFunctionType m_MappingFunction;
187 #ifndef ITK_MANUAL_INSTANTIATION
188 #include "itkOctree.hxx"
virtual int GetColorTableSize() const =0
Light weight base class for most itk classes.
virtual unsigned int GetDepth()=0
Provides non-templated access to templated instances of Octree.
virtual void SetWidth(unsigned int width)=0
virtual void BuildFromBuffer(const void *buffer, const unsigned int xsize, const unsigned int ysize, const unsigned int zsize)=0
void SetColor(unsigned int color)
void SetTree(OctreeNodeBranch *branch)
Image< TPixel, 3 > ImageType
virtual const OctreeNodeBranch * GetColorTable() const =0
virtual unsigned int GetWidth()=0
virtual void SetDepth(unsigned int depth)=0
virtual OctreeNode * GetTree()=0
A data structure representing a node in an Octree.
SmartPointer< Self > Pointer
Represent a 3D Image with an Octree data structure.
ImageType::Pointer ImageTypePointer
Base class for most ITK classes.
SmartPointer< Self > Pointer
Templated n-dimensional image class.