The U4DEntityNode class represents a node in a Generic tree.
More...
|
|
| U4DEntityNode () |
| | Constructor for the class.
|
| |
|
| U4DEntityNode (std::string uNodeName) |
| |
|
| ~U4DEntityNode () |
| | Destructor for the class.
|
| |
| void | addChild (T *uChild) |
| | Method which adds a child node to a scenegraph. More...
|
| |
|
void | addChild (T *uChild, T *uNext) |
| |
| void | removeChild (T *uChild) |
| | Method which removes a child node from the scenegraph. More...
|
| |
| void | changeLastDescendant (T *uNewLastDescendant) |
| | Method which changes the node's last descendant in the scenegraph. More...
|
| |
| T * | getFirstChild () |
| | Method which returns the node's first child in the scenegraph. More...
|
| |
| T * | getLastChild () |
| | Method which returns the node's last child in the scenegraph. More...
|
| |
| T * | getNextSibling () |
| | Method which returns the node's next sibling in the scenegraph. More...
|
| |
| T * | getPrevSibling () |
| | Method which returns the node's previous sibling in the scenegraph. More...
|
| |
| T * | prevInPreOrderTraversal () |
| | Method which returns the node's previous sibling in pre-order traversal order. More...
|
| |
| T * | 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...
|
| |
| T * | getParent () |
| | Gets the parent to the entity. More...
|
| |
| void | addChild (T *uChild, int uZDepth) |
| | Method which adds a child entity to a scenegraph at a particular location. More...
|
| |
| T * | getRootParent () |
| | Gets the root parent (top parent in the scenegraph) of the entity. More...
|
| |
|
T * | searchChild (std::string uName) |
| |
template<typename T>
class U4DEngine::U4DEntityNode< T >
The U4DEntityNode class represents a node in a Generic tree.
◆ addChild() [1/2]
Method which adds a child node to a scenegraph.
- Parameters
-
| uChild | Child node to add to scenegraph |
◆ addChild() [2/2]
Method which adds a child entity to a scenegraph at a particular location.
- Parameters
-
| uChild | Child entity to add to scenegraph |
| uZDepth | location to insert child |
◆ changeLastDescendant()
Method which changes the node's last descendant in the scenegraph.
- Parameters
-
| uNewLastDescendant | Last descendant of the node |
◆ getFirstChild()
Method which returns the node's first child in the scenegraph.
- Returns
- Returns the node's first child
◆ getLastChild()
Method which returns the node's last child in the scenegraph.
- Returns
- Returns the node's last child
◆ getNextSibling()
Method which returns the node's next sibling in the scenegraph.
- Returns
- Returns the node's next sibling
◆ getParent()
Gets the parent to the entity.
- Returns
- pointer to the entity parent
◆ getPrevSibling()
Method which returns the node's previous sibling in the scenegraph.
- Returns
- Returns the node's previous sibling
◆ getRootParent()
Gets the root parent (top parent in the scenegraph) of the entity.
- Returns
- pointer to the root parent
◆ isLeaf()
Method which returns true if the node represents a leaf node in the scenegraph.
- Returns
- Returns true if the node represents a leaf node in the scenegraph
◆ isRoot()
Method which returns true if the node represents a root node in the scenegraph.
- Returns
- Returns true if the node represents a root node in the scenegraph
◆ nextInPreOrderTraversal()
Method which returns the node's next pointer in pre-order traversal order.
- Returns
- Returns the node's next pointer in pre-order traversal order
◆ prevInPreOrderTraversal()
Method which returns the node's previous sibling in pre-order traversal order.
- Returns
- Returns the node's previous sibling in pre-order traversal order
◆ removeChild()
Method which removes a child node from the scenegraph.
- Parameters
-
| uChild | Child node to remove from the scenegraph |