#include <SceneGraph.h>
Inheritance diagram for Fluxus::SceneGraph:


Public Types | |
| enum | Mode { RENDER, SELECT } |
Public Member Functions | |
| SceneGraph () | |
| ~SceneGraph () | |
| void | Render (ShadowVolumeGen *shadowgen, unsigned int camera, Mode rendermode=RENDER) |
| virtual void | Clear () |
| Clears the graph of all primitives. | |
| void | Detach (SceneNode *node) |
| dMatrix | GetGlobalTransform (const SceneNode *node) const |
| Gets the world space transfrom of the node. | |
| void | GetBoundingBox (SceneNode *node, dBoundingBox &result) |
| 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. | |
Definition at line 49 of file SceneGraph.h.
| SceneGraph::SceneGraph | ( | ) |
Definition at line 22 of file SceneGraph.cpp.
| SceneGraph::~SceneGraph | ( | ) |
Definition at line 28 of file SceneGraph.cpp.
| void SceneGraph::Render | ( | ShadowVolumeGen * | shadowgen, | |
| unsigned int | camera, | |||
| 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 primitives.
Reimplemented from Fluxus::Tree.
Definition at line 261 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.
Definition at line 167 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 213 of file SceneGraph.cpp.
A utility for getting all the node in a subtree, as a flat list.
Definition at line 239 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 250 of file SceneGraph.cpp.
1.5.1