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;
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;
169 void operator=(const Self &);
172 unsigned y,
unsigned z,
unsigned xsize,
173 unsigned ysize,
unsigned zsize);
188 #ifndef ITK_MANUAL_INSTANTIATION
189 #include "itkOctree.hxx"
void SetColor(int NodeColor)
virtual int GetColorTableSize() const =0
virtual void BuildFromBuffer(const void *buffer, const unsigned int xsize, const unsigned int ysize, const unsigned int zsize) ITK_OVERRIDE
Light weight base class for most itk classes.
virtual unsigned int GetDepth()=0
void SetTrueDims(const unsigned int Dim0, const unsigned int Dim1, const unsigned int Dim2)
enum OctreePlaneType m_Plane
OctreeNodeBranch * maskToOctree(const TPixel *Mask, unsigned width, unsigned x, unsigned y, unsigned z, unsigned xsize, unsigned ysize, unsigned zsize)
virtual OctreeNode * GetTree() ITK_OVERRIDE
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 unsigned int GetDepth() ITK_OVERRIDE
virtual unsigned int GetWidth()=0
virtual void SetDepth(unsigned int depth)=0
virtual int GetColorTableSize() const ITK_OVERRIDE
virtual OctreeNode * GetTree()=0
A data structure representing a node in an Octree.
SmartPointer< Self > Pointer
unsigned int m_TrueDims[3]
virtual const char * GetColorTable() const =0
virtual unsigned int GetWidth() ITK_OVERRIDE
MappingFunctionType m_MappingFunction
Represent a 3D Image with an Octree data structure.
virtual void SetWidth(unsigned int width) ITK_OVERRIDE
ImageType::Pointer ImageTypePointer
char m_ColorTable[ColorTableSize]
void BuildFromImage(Image< TPixel, 3 > *fromImage)
virtual const char * GetColorTable() const ITK_OVERRIDE
ImageTypePointer GetImage()
Base class for most ITK classes.
SmartPointer< Self > Pointer
int GetValue(const unsigned int Dim0, const unsigned int Dim1, const unsigned int Dim2)
virtual void SetDepth(unsigned int depth) ITK_OVERRIDE
void SetBranch(OctreeNodeBranch *NewBranch)
Templated n-dimensional image class.