SceneGraph Class Reference
Bare-bones scene graph used during scene parsing. More...
#include <SceneGraph.h>
Public Member Functions | |
| virtual | ~SceneGraph () |
| void | beginNode (SceneNode *node) |
| void | endNode () |
| removes top node from stack and adds it to children of new top of stack | |
| virtual bool | flatten (JSONParseData &outData) |
| flattens this scenegraph into the given output data | |
| void | push (SceneNode *node) |
| adds another stack frame | |
| SceneNode * | top () |
| SceneNode * | pop () |
| bool | empty () |
| unsigned | size () |
| void | reset () |
| clears the stack and frees its resources | |
| virtual bool | flatten (SceneNode *node, Matrix4x4 transform, Matrix4x4 transformInv, JSONParseData &data) |
Public Attributes | |
| SceneNodeStack | sceneGraph |
Detailed Description
Bare-bones scene graph used during scene parsing.
- Date:
- Fall 2008
Definition at line 111 of file SceneGraph.h.
Constructor & Destructor Documentation
| virtual SceneGraph::~SceneGraph | ( | ) | [inline, virtual] |
Definition at line 114 of file SceneGraph.h.
Member Function Documentation
| void SceneGraph::beginNode | ( | SceneNode * | node | ) | [inline] |
Definition at line 118 of file SceneGraph.h.
| void SceneGraph::endNode | ( | ) | [inline] |
removes top node from stack and adds it to children of new top of stack
Definition at line 123 of file SceneGraph.h.
| bool SceneGraph::flatten | ( | JSONParseData & | outData | ) | [virtual] |
| void SceneGraph::push | ( | SceneNode * | node | ) | [inline] |
| SceneNode* SceneGraph::top | ( | ) | [inline] |
| SceneNode* SceneGraph::pop | ( | ) | [inline] |
| bool SceneGraph::empty | ( | ) | [inline] |
- Returns:
- whether or not this scenegraph is currently empty
Definition at line 157 of file SceneGraph.h.
| unsigned SceneGraph::size | ( | ) | [inline] |
| void SceneGraph::reset | ( | ) | [inline] |
| bool SceneGraph::flatten | ( | SceneNode * | node, | |
| Matrix4x4 | transform, | |||
| Matrix4x4 | transformInv, | |||
| JSONParseData & | data | |||
| ) | [virtual] |
Definition at line 48 of file SceneGraph.cpp.
Member Data Documentation
Definition at line 112 of file SceneGraph.h.
The documentation for this class was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6