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 &) ITK_DELETE_FUNCTION;
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
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)
virtual void SetDepth(unsigned int depth) override
enum OctreePlaneType m_Plane
OctreeNodeBranch * maskToOctree(const TPixel *Mask, unsigned width, unsigned x, unsigned y, unsigned z, unsigned xsize, unsigned ysize, unsigned zsize)
Provides non-templated access to templated instances of Octree.
virtual void SetWidth(unsigned int width)=0
virtual unsigned int GetWidth() override
virtual void BuildFromBuffer(const void *buffer, const unsigned int xsize, const unsigned int ysize, const unsigned int zsize)=0
virtual int GetColorTableSize() const override
void SetColor(unsigned int color)
void SetTree(OctreeNodeBranch *branch)
virtual void BuildFromBuffer(const void *buffer, const unsigned int xsize, const unsigned int ysize, const unsigned int zsize) override
Image< TPixel, 3 > ImageType
OctreeNodeBranch m_ColorTable[ColorTableSize]
virtual const OctreeNodeBranch * GetColorTable() const =0
virtual unsigned int GetWidth()=0
virtual void SetDepth(unsigned int depth)=0
virtual const OctreeNodeBranch * GetColorTable() const override
virtual OctreeNode * GetTree()=0
A data structure representing a node in an Octree.
SmartPointer< Self > Pointer
unsigned int m_TrueDims[3]
MappingFunctionType m_MappingFunction
virtual unsigned int GetDepth() override
Represent a 3D Image with an Octree data structure.
ImageType::Pointer ImageTypePointer
virtual OctreeNode * GetTree() override
void BuildFromImage(Image< TPixel, 3 > *fromImage)
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)
void SetBranch(OctreeNodeBranch *NewBranch)
Templated n-dimensional image class.
virtual void SetWidth(unsigned int width) override