
Public Types | |
| typedef std::map< const osg::StateSet *, osg::ref_ptr< RenderGraph > > | ChildList |
| typedef std::vector< osg::ref_ptr< RenderLeaf > > | LeafList |
Public Methods | |
| RenderGraph () | |
| RenderGraph (RenderGraph *parent, const osg::StateSet *stateset) | |
| ~RenderGraph () | |
| RenderGraph * | cloneType () const |
| void | setUserData (osg::Referenced *obj) |
| osg::Referenced * | getUserData () |
| const osg::Referenced * | getUserData () const |
| const bool | empty () const |
| return true if all of drawables, lights and children are empty. | |
| const bool | leaves_empty () const |
| const float | getAverageDistance () const |
| void | sortFrontToBack () |
| void | reset () |
| reset the internal contents of a RenderGraph, including deleting all children. | |
| void | clean () |
| recursively clean the RenderGraph of all its drawables, lights and depths. | |
| void | prune () |
| recursively prune the RenderGraph of empty children. | |
| RenderGraph * | find_or_insert (const osg::StateSet *stateset) |
| void | addLeaf (RenderLeaf *leaf) |
| add a render leaf. | |
Static Public Methods | |
| void | moveRenderGraph (osg::State &state, RenderGraph *sg_curr, RenderGraph *sg_new) |
| void | moveToRootRenderGraph (osg::State &state, RenderGraph *sg_curr) |
Public Attributes | |
| RenderGraph * | _parent |
| osg::ref_ptr< const osg::StateSet > | _stateset |
| int | _depth |
| ChildList | _children |
| LeafList | _leaves |
| float | _averageDistance |
| osg::ref_ptr< osg::Referenced > | _userData |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
add a render leaf.
|
|
|
recursively clean the RenderGraph 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 RenderGraph of empty children.
|
|
|
reset the internal contents of a RenderGraph, including deleting all children.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|