List of all members.
Constructor & Destructor Documentation
Node::~Node |
( |
) |
[protected, virtual] |
Delete this node and its contents. This also recursively deletes the children of the node.
Member Function Documentation
void Node::attachChild |
( |
Node * |
node ) |
|
Attach a child to this node. The child musn't already have parent. If it has, detach it first.
void Node::detachChild |
( |
Node * |
node ) |
|
Detaches the child node from this node.
void Node::detachFromParent |
( |
) |
|
Detach this node from its parent
Node * Node::duplicate |
( |
char * |
new_name, |
|
|
bool |
recursively |
|
) |
| |
Duplicates the node, which means that a new node is created, but all the resources are instantiated. Only the base node changes name to new_name, all its children will still have their old name.
Node * Node::getChild |
( |
char * |
search_name, |
|
|
u32 |
max_depth |
|
) |
| |
Search for a child with a certain name. Returns 0 if the child is not found.
Node * Node::getChild |
( |
u32 |
index ) |
|
Get the child on position "index". Returns 0 if no child is found.
u32 Node::getChildrenCount |
( |
) |
const |
Get the number of children
Node * Node::getNextSibling |
( |
) |
|
Get the next node of the same parent
NodeType_t Node::getNodeType |
( |
) |
const |
Node * Node::getParent |
( |
) |
|
Draw scene graph hierarchy, beginning with this node
void Node::setActive |
( |
bool |
active ) |
|
Mark this node as active or inactive. When drawing the scene graph, inactive nodes terminate the recursive traversal, so none of its children will be drawn either.
void Node::setName |
( |
char * |
nname ) |
|
Change the name of the node
void Node::setVisible |
( |
bool |
visible ) |
|
Mark this node as visible or invisible. An invisible node is not drawn during a draw()-call, but the node's transforms are calculated and its children are drawn.
The documentation for this class was generated from the following files:
- C:/Users/Malacka/Desktop/Magnus/RenderChimp/src/Node.h
- C:/Users/Malacka/Desktop/Magnus/RenderChimp/src/Node.cpp