#include <Node.h>
Collaboration diagram for Node:
Public Types | |
typedef std::list< Node * > | NodeList |
typedef std::list< Node * >::iterator | NodeIter |
Public Member Functions | |
Node (void) | |
constructor | |
virtual | ~Node (void) |
destructor | |
void | addChild (Node *) |
add a Nodepointer to the childList of the current Node | |
Node * | addChild (Thing *) |
create a childNode and set the thing of this to Thing* | |
NodeIter | getFirstChild () |
get the Iterator to the first entry in the childrenList of the current Node | |
void | deleteAllChilds () |
delete all pointer to the children of this node | |
void | setParent (Node *) |
set the Pointer to the parent of the current Node | |
Node * | getParent () |
get the Pointer to the parent of the current Node | |
void | setThing (Thing *) |
set the Pointer to the Thing of the current Node | |
Thing * | getThing () |
get the Pointer to the Thing of the current Node | |
virtual void | init () |
initialize the node (called in openGL init()) | |
virtual void | render () |
render the node (called in openGL display()) | |
void | setToNewRoot () |
change the graph in the way that the current node becomes the new root node (not yet implemented) | |
Private Attributes | |
NodeList | children |
Node * | parent |
Thing * | thing |
Nodes are able to store their parent and children and a pointer to a thing
|
|
|
|
|
constructor
|
|
destructor
|
|
create a childNode and set the thing of this to Thing*
|
|
add a Nodepointer to the childList of the current Node
|
|
delete all pointer to the children of this node
|
|
get the Iterator to the first entry in the childrenList of the current Node
|
|
get the Pointer to the parent of the current Node
|
|
get the Pointer to the Thing of the current Node
|
|
initialize the node (called in openGL init())
|
|
render the node (called in openGL display())
|
|
set the Pointer to the parent of the current Node
|
|
set the Pointer to the Thing of the current Node
|
|
change the graph in the way that the current node becomes the new root node (not yet implemented)
|
|
|
|
|
|
|