Fluxus::SceneGraph Class Reference

#include <SceneGraph.h>

Inheritance diagram for Fluxus::SceneGraph:

Inheritance graph
[legend]
Collaboration diagram for Fluxus::SceneGraph:

Collaboration graph
[legend]

Public Types

enum  Mode { RENDER, SELECT }

Public Member Functions

 SceneGraph ()
 ~SceneGraph ()
void Render (Mode rendermode=RENDER)
virtual void Clear ()
 Clears the graph of all primtives.
void Detach (SceneNode *node)
dMatrix GetGlobalTransform (const SceneNode *node) const
 Gets the world space transfrom of the node.
void GetBoundingBox (SceneNode *node, dBoundingBox &result)
ShadowVolumeGenGetShadowVolumeGen ()
 Accessor for the shadow volume generator.
void GetNodes (const Node *node, vector< const SceneNode * > &nodes) const
 A utility for getting all the node in a subtree, as a flat list.
void GetConnections (const Node *node, vector< pair< const SceneNode *, const SceneNode * > > &connections) const
 A utility for getting all the connections in a subtree, as a flat list.

Detailed Description

A scene graph

Definition at line 49 of file SceneGraph.h.


Member Enumeration Documentation

enum Fluxus::SceneGraph::Mode

Enumerator:
RENDER 
SELECT 

Definition at line 55 of file SceneGraph.h.


Constructor & Destructor Documentation

SceneGraph::SceneGraph (  ) 

Definition at line 22 of file SceneGraph.cpp.

SceneGraph::~SceneGraph (  ) 

Definition at line 28 of file SceneGraph.cpp.


Member Function Documentation

void SceneGraph::Render ( Mode  rendermode = RENDER  ) 

Traverses the graph depth first, rendering all nodes

Definition at line 32 of file SceneGraph.cpp.

void SceneGraph::Clear (  )  [virtual]

Clears the graph of all primtives.

Reimplemented from Fluxus::Tree.

Definition at line 260 of file SceneGraph.cpp.

void SceneGraph::Detach ( SceneNode node  ) 

Parents the node to the root, and sets its transform to keep it physically in the same place in the world.

Todo:
make the maintain transform optional

Definition at line 166 of file SceneGraph.cpp.

dMatrix SceneGraph::GetGlobalTransform ( const SceneNode node  )  const

Gets the world space transfrom of the node.

Definition at line 180 of file SceneGraph.cpp.

void SceneGraph::GetBoundingBox ( SceneNode node,
dBoundingBox result 
)

Gets the bounding box of the node, and all its children too

Definition at line 212 of file SceneGraph.cpp.

ShadowVolumeGen* Fluxus::SceneGraph::GetShadowVolumeGen (  )  [inline]

Accessor for the shadow volume generator.

Definition at line 78 of file SceneGraph.h.

void SceneGraph::GetNodes ( const Node node,
vector< const SceneNode * > &  nodes 
) const

A utility for getting all the node in a subtree, as a flat list.

Definition at line 238 of file SceneGraph.cpp.

void SceneGraph::GetConnections ( const Node node,
vector< pair< const SceneNode *, const SceneNode * > > &  connections 
) const

A utility for getting all the connections in a subtree, as a flat list.

Definition at line 249 of file SceneGraph.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Feb 11 06:54:52 2008 for The Fluxus Renderer (libfluxus) by  doxygen 1.5.1