SceneGraph Class Reference

Bare-bones scene graph used during scene parsing. More...

#include <SceneGraph.h>

List of all members.

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
SceneNodetop ()
SceneNodepop ()
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.

Author:
Travis Fischer (fisch0920@gmail.com)

Matthew Jacobs (jacobs.mh@gmail.com)

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]

flattens this scenegraph into the given output data

Definition at line 22 of file SceneGraph.cpp.

void SceneGraph::push ( SceneNode node  )  [inline]

adds another stack frame

Definition at line 133 of file SceneGraph.h.

SceneNode* SceneGraph::top (  )  [inline]

Returns:
the top stack frame

Definition at line 139 of file SceneGraph.h.

SceneNode* SceneGraph::pop (  )  [inline]

Returns:
and removes the top stack frame

Definition at line 148 of file SceneGraph.h.

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]

Returns:
the number of frames in the stack

Definition at line 162 of file SceneGraph.h.

void SceneGraph::reset (  )  [inline]

clears the stack and frees its resources

Definition at line 167 of file SceneGraph.h.

bool SceneGraph::flatten ( SceneNode node,
Matrix4x4  transform,
Matrix4x4  transformInv,
JSONParseData data 
) [virtual]

Definition at line 48 of file SceneGraph.cpp.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6