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...
 
U4DMeshOctreeNodegetFirstChild ()
 Method which returns the node's first child in the scenegraph. More...
 
U4DMeshOctreeNodegetLastChild ()
 Method which returns the node's last child in the scenegraph. More...
 
U4DMeshOctreeNodegetNextSibling ()
 Method which returns the node's next sibling in the scenegraph. More...
 
U4DMeshOctreeNodegetPrevSibling ()
 Method which returns the node's previous sibling in the scenegraph. More...
 
U4DMeshOctreeNodeprevInPreOrderTraversal ()
 Method which returns the node's previous sibling in pre-order traversal order. More...
 
U4DMeshOctreeNodenextInPreOrderTraversal ()
 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...
 
U4DMeshOctreeNodegetParent ()
 Gets the parent to the entity. More...
 
U4DMeshOctreeNodegetRootParent ()
 Gets the root parent (top parent in the scenegraph) of the entity. More...
 
U4DMeshOctreeNodesearchChild (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 >
U4DMeshOctreeNodeparent
 Tree parent pointer.
 
U4DMeshOctreeNodeprevSibling
 Tree previous sibling pointer.
 
U4DMeshOctreeNodenext
 Tree next pointer.
 
U4DMeshOctreeNodelastDescendant
 Tree last descendant pointer.
 

Detailed Description

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