ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkOctreeNode.h>
Public Member Functions | |
int | GetColor (void) const |
bool | IsNodeColored (void) const |
OctreeNode (void) | |
void | SetBranch (OctreeNodeBranch *NewBranch) |
void | SetColor (int NodeColor) |
void | SetParentOctree (OctreeBase *parent) |
virtual | ~OctreeNode (void) |
OctreeNode & | GetChild (const enum LeafIdentifier ChildID) const |
OctreeNode & | GetChild (const enum LeafIdentifier ChildID) |
Private Member Functions | |
void | RemoveChildren (void) |
Private Attributes | |
OctreeNodeBranch * | m_Branch |
OctreeBase * | m_Parent |
A data structure representing a node in an Octree.
OctreeNode data structure, OctreeNodes have two states: 1) They are a Colored node and the m_Branch is a sentinal value indicating the color, or 2) they are a branch node, and m_Branch is a dynamically allocated array of 8 pointers to OctreeNodes. In the second state, the 8 child OctreeNodes are instantiated by the parent node.
Definition at line 43 of file itkOctreeNode.h.
itk::OctreeNode::OctreeNode | ( | void | ) |
Default constructor
|
virtual |
Default destructor
OctreeNode& itk::OctreeNode::GetChild | ( | const enum LeafIdentifier | ChildID | ) | const |
Returns the value of the specified Child for this OctreeNode
ChildID | The numerical identifier of the desired child. |
OctreeNode& itk::OctreeNode::GetChild | ( | const enum LeafIdentifier | ChildID | ) |
Returns the value of the specified Child for this OctreeNode
ChildID | The numerical identifier of the desired child. |
int itk::OctreeNode::GetColor | ( | void | ) | const |
Determines the color value of the specified Child for this OctreeNode
bool itk::OctreeNode::IsNodeColored | ( | void | ) | const |
Determines if the child is a leaf node (colored), or a branch node (uncolored)
|
private |
Removes all children from this node down, and sets the value value of the children to background.
void itk::OctreeNode::SetBranch | ( | OctreeNodeBranch * | NewBranch | ) |
Sets the color value of the specified Child for this OctreeNode
Referenced by itk::Octree< TPixel, ColorTableSize, MappingFunctionType >::SetTree().
void itk::OctreeNode::SetColor | ( | int | NodeColor | ) |
Sets the color value of the specified Child for this OctreeNode
NodeColor | The desired color of this node. |
Referenced by itk::Octree< TPixel, ColorTableSize, MappingFunctionType >::SetColor().
|
inline |
Definition at line 101 of file itkOctreeNode.h.
Referenced by itk::OctreeNodeBranch::OctreeNodeBranch().
|
private |
Each element holds COLOR or pointer to another octree node
Definition at line 117 of file itkOctreeNode.h.
|
private |
Definition at line 118 of file itkOctreeNode.h.