Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DMeshOctreeNode Class Reference

The U4DMeshOctreeNode class represents a node of the octree bounding a 3d model. More...

Inherits U4DEngine::U4DEntityNode< U4DMeshOctreeNode >.

Public Member Functions

 U4DMeshOctreeNode ()
 Octree Node constructor.
 
 ~U4DMeshOctreeNode ()
 Octree Node destructor.
 
- Public Member Functions inherited from U4DEngine::U4DEntityNode< U4DMeshOctreeNode >
 U4DEntityNode ()
 Constructor for the class.
 
 U4DEntityNode (std::string uNodeName)
 
 ~U4DEntityNode ()
 Destructor for the class.
 
void addChild (U4DMeshOctreeNode *uChild)
 Method which adds a child node to a scenegraph. More...
 
void addChild (U4DMeshOctreeNode *uChild, U4DMeshOctreeNode *uNext)
 
void addChild (U4DMeshOctreeNode *uChild, int uZDepth)
 Method which adds a child entity to a scenegraph at a particular location. More...
 
void removeChild (U4DMeshOctreeNode *uChild)
 Method which removes a child node from the scenegraph. More...
 
void changeLastDescendant (U4DMeshOctreeNode *uNewLastDescendant)
 Method which changes the node's last descendant in the scenegraph. More...
 
U4DMeshOctreeNode * getFirstChild ()
 Method which returns the node's first child in the scenegraph. More...
 
U4DMeshOctreeNode * getLastChild ()
 Method which returns the node's last child in the scenegraph. More...
 
U4DMeshOctreeNode * getNextSibling ()
 Method which returns the node's next sibling in the scenegraph. More...
 
U4DMeshOctreeNode * getPrevSibling ()
 Method which returns the node's previous sibling in the scenegraph. More...
 
U4DMeshOctreeNode * prevInPreOrderTraversal ()
 Method which returns the node's previous sibling in pre-order traversal order. More...
 
U4DMeshOctreeNode * nextInPreOrderTraversal ()
 Method which returns the node's next pointer in pre-order traversal order. More...
 
bool isLeaf ()
 Method which returns true if the node represents a leaf node in the scenegraph. More...
 
bool isRoot ()
 Method which returns true if the node represents a root node in the scenegraph. More...
 
U4DMeshOctreeNode * getParent ()
 Gets the parent to the entity. More...
 
U4DMeshOctreeNode * getRootParent ()
 Gets the root parent (top parent in the scenegraph) of the entity. More...
 
U4DMeshOctreeNode * searchChild (std::string uName)
 

Public Attributes

std::vector< int > triangleIndexContainer
 Vector container storing all the triangles(faces) intersecting the AABB node.
 
U4DAABB aabbVolume
 AABB object which holds volume information about the node.
 
- Public Attributes inherited from U4DEngine::U4DEntityNode< U4DMeshOctreeNode >
U4DMeshOctreeNode * parent
 Tree parent pointer.
 
U4DMeshOctreeNode * prevSibling
 Tree previous sibling pointer.
 
U4DMeshOctreeNode * next
 Tree next pointer.
 
U4DMeshOctreeNode * lastDescendant
 Tree last descendant pointer.
 

Detailed Description

The U4DMeshOctreeNode class represents a node of the octree bounding a 3d model.