|
openscenegraph
|
Public Types | |
| typedef std::map< const osg::StateSet *, osg::ref_ptr < StateGraph > > | ChildList |
| typedef std::vector < osg::ref_ptr< RenderLeaf > > | LeafList |
Static Public Member Functions | |
| static void | moveStateGraph (osg::State &state, StateGraph *sg_curr, StateGraph *sg_new) |
| static void | moveToRootStateGraph (osg::State &state, StateGraph *sg_curr) |
| static int | numToPop (StateGraph *sg_curr) |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
Public Attributes | |
| StateGraph * | _parent |
| const osg::StateSet * | _stateset |
| int | _depth |
| ChildList | _children |
| LeafList | _leaves |
| float | _averageDistance |
| float | _minimumDistance |
| osg::ref_ptr< osg::Referenced > | _userData |
| bool | _dynamic |
Additional Inherited Members | |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
StateGraph - contained in a renderBin, defines the scene to be drawn.
| typedef std::map< const osg::StateSet*, osg::ref_ptr<StateGraph> > osgUtil::StateGraph::ChildList |
| typedef std::vector< osg::ref_ptr<RenderLeaf> > osgUtil::StateGraph::LeafList |
|
inline |
|
inline |
References osg::Object::DYNAMIC, and osg::Object::getDataVariance().
|
inline |
|
inline |
add a render leaf.
References osgUtil::RenderLeaf::_dynamic, and osgUtil::RenderLeaf::_parent.
Referenced by osgUtil::CullVisitor::addDrawable(), and osgUtil::CullVisitor::addDrawableAndDepth().
| void osgUtil::StateGraph::clean | ( | ) |
Recursively clean the StateGraph of all its drawables, lights and depths. Leaves children intact, and ready to be populated again.
|
inline |
|
inline |
return true if all of drawables, lights and children are empty.
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by moveStateGraph(), moveToRootStateGraph(), and numToPop().
|
inline |
|
inline |
|
inline |
Referenced by osgUtil::CullVisitor::addDrawable(), and osgUtil::CullVisitor::addDrawableAndDepth().
|
inlinestatic |
References _depth, _parent, getStateSet(), NULL, osg::State::popStateSet(), and osg::State::pushStateSet().
|
inlinestatic |
References _parent, getStateSet(), and osg::State::popStateSet().
|
inlinestatic |
References _parent, and getStateSet().
| void osgUtil::StateGraph::prune | ( | ) |
Recursively prune the StateGraph of empty children.
| void osgUtil::StateGraph::reset | ( | ) |
Reset the internal contents of a StateGraph, including deleting all children.
|
inline |
|
inline |
|
inline |
|
mutable |
| ChildList osgUtil::StateGraph::_children |
| int osgUtil::StateGraph::_depth |
Referenced by moveStateGraph().
| bool osgUtil::StateGraph::_dynamic |
| LeafList osgUtil::StateGraph::_leaves |
|
mutable |
| StateGraph* osgUtil::StateGraph::_parent |
Referenced by moveStateGraph(), moveToRootStateGraph(), and numToPop().
| const osg::StateSet* osgUtil::StateGraph::_stateset |
| osg::ref_ptr<osg::Referenced> osgUtil::StateGraph::_userData |
1.8.6