Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Node Class Reference

Node for the scenegraph. More...

#include <Node.h>

Collaboration diagram for Node:

Collaboration graph
[legend]
List of all members.

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
NodeaddChild (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
NodegetParent ()
 get the Pointer to the parent of the current Node
void setThing (Thing *)
 set the Pointer to the Thing of the current Node
ThinggetThing ()
 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
Nodeparent
Thingthing

Detailed Description

Node for the scenegraph.

Nodes are able to store their parent and children and a pointer to a thing


Member Typedef Documentation

typedef std::list<Node*>::iterator Node::NodeIter
 

typedef std::list<Node*> Node::NodeList
 


Constructor & Destructor Documentation

Node::Node void   ) 
 

constructor

Node::~Node void   )  [virtual]
 

destructor


Member Function Documentation

Node * Node::addChild Thing new_thing  ) 
 

create a childNode and set the thing of this to Thing*

Parameters:
pointer to the thing of the child node, which will be added
Returns:
pointer to the newly added child node

void Node::addChild Node new_child  ) 
 

add a Nodepointer to the childList of the current Node

Parameters:
pointer to the child node which is to be added

void Node::deleteAllChilds  ) 
 

delete all pointer to the children of this node

Node::NodeIter Node::getFirstChild  ) 
 

get the Iterator to the first entry in the childrenList of the current Node

Returns:
pointer to the first child in the list of the current node

Node * Node::getParent  ) 
 

get the Pointer to the parent of the current Node

Returns:
pointer to the parent of the node

Thing * Node::getThing  ) 
 

get the Pointer to the Thing of the current Node

Returns:
pointer to teh Thing of this node

void Node::init  )  [virtual]
 

initialize the node (called in openGL init())

void Node::render  )  [virtual]
 

render the node (called in openGL display())

void Node::setParent Node new_parent  ) 
 

set the Pointer to the parent of the current Node

Parameters:
Pointer to the new parent

void Node::setThing Thing new_thing  ) 
 

set the Pointer to the Thing of the current Node

Parameters:
pointer to the new thing of this node

void Node::setToNewRoot  ) 
 

change the graph in the way that the current node becomes the new root node (not yet implemented)


Member Data Documentation

NodeList Node::children [private]
 

Node* Node::parent [private]
 

Thing* Node::thing [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:33 2005 for Loud and Proud by doxygen 1.3.8