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

Scenegraph Class Reference

Scenegraph in which the Scene with all the Nodes is built. More...

#include <Scenegraph.h>

Inherited by SceneGraphDisco, SceneGraphLetters, and SceneGraphTripod.

Inheritance diagram for Scenegraph:

Inheritance graph
[legend]
Collaboration diagram for Scenegraph:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Scenegraph (void)
 constructor
virtual ~Scenegraph (void)
 destructor
NodegetRoot ()
 get the pointer to the root Node
void setRoot (Node *)
 set the pointer tot he root Node
void init ()
 initialize the scenegraph, should be called in the init() openGL routine
void render ()
 render the scenegraph, should be called in the render() openGL routine

Protected Attributes

Noderoot

Detailed Description

Scenegraph in which the Scene with all the Nodes is built.

in the Scenegraph class all Nodes are stored. One Scenegraph can be attached to another if the Nodepointer of one is set as the root of another.


Constructor & Destructor Documentation

Scenegraph::Scenegraph void   ) 
 

constructor

Scenegraph::~Scenegraph void   )  [virtual]
 

destructor


Member Function Documentation

Node * Scenegraph::getRoot  ) 
 

get the pointer to the root Node

Returns:
pointer to the root Node

void Scenegraph::init  ) 
 

initialize the scenegraph, should be called in the init() openGL routine

Reimplemented in SceneGraphDisco, SceneGraphLetters, and SceneGraphTripod.

void Scenegraph::render  ) 
 

render the scenegraph, should be called in the render() openGL routine

Reimplemented in SceneGraphLetters.

void Scenegraph::setRoot Node new_root  ) 
 

set the pointer tot he root Node

Parameters:
pointer to the new root Node


Member Data Documentation

Node* Scenegraph::root [protected]
 


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