Inheritance diagram for osgUtil::StateGraph:

Public Types | |
| typedef std::map< const osg::StateSet *, osg::ref_ptr< StateGraph > > | ChildList |
| typedef std::vector< osg::ref_ptr< RenderLeaf > > | LeafList |
Public Member Functions | |
| StateGraph () | |
| StateGraph (StateGraph *parent, const osg::StateSet *stateset) | |
| ~StateGraph () | |
| StateGraph * | cloneType () const |
| void | setUserData (osg::Referenced *obj) |
| osg::Referenced * | getUserData () |
| const osg::Referenced * | getUserData () const |
| bool | empty () const |
| return true if all of drawables, lights and children are empty. | |
| bool | leaves_empty () const |
| float | getAverageDistance () const |
| float | getMinimumDistance () const |
| void | sortFrontToBack () |
| void | reset () |
| Reset the internal contents of a StateGraph, including deleting all children. | |
| void | clean () |
| Recursively clean the StateGraph of all its drawables, lights and depths. | |
| void | prune () |
| Recursively prune the StateGraph of empty children. | |
| StateGraph * | find_or_insert (const osg::StateSet *stateset) |
| void | addLeaf (RenderLeaf *leaf) |
| add a render leaf. | |
Static Public Member Functions | |
| void | moveStateGraph (osg::State &state, StateGraph *sg_curr, StateGraph *sg_new) |
| void | moveToRootStateGraph (osg::State &state, StateGraph *sg_curr) |
Public Attributes | |
| StateGraph * | _parent |
| const osg::StateSet * | _stateset |
| int | _depth |
| ChildList | _children |
| LeafList | _leaves |
| float | _averageDistance |
| float | _minimumDistance |
| osg::ref_ptr< osg::Referenced > | _userData |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
add a render leaf.
|
|
|
Recursively clean the StateGraph of all its drawables, lights and depths. Leaves children intact, and ready to be populated again. |
|
|
|
|
|
return true if all of drawables, lights and children are empty.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
Recursively prune the StateGraph of empty children.
|
|
|
Reset the internal contents of a StateGraph, including deleting all children.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|