typedef std::map< const osg::StateSet*, osg::ref_ptr<StateGraph> > osgUtil::StateGraph::ChildList |
typedef std::vector< osg::ref_ptr<RenderLeaf> > osgUtil::StateGraph::LeafList |
osgUtil::StateGraph::StateGraph | ( | ) | [inline] |
osgUtil::StateGraph::StateGraph | ( | StateGraph * | parent, | |
const osg::StateSet * | stateset | |||
) | [inline] |
References osg::Object::DYNAMIC, and osg::Object::getDataVariance().
osgUtil::StateGraph::~StateGraph | ( | ) | [inline] |
StateGraph* osgUtil::StateGraph::cloneType | ( | ) | const [inline] |
void osgUtil::StateGraph::setUserData | ( | osg::Referenced * | obj | ) | [inline] |
osg::Referenced* osgUtil::StateGraph::getUserData | ( | ) | [inline] |
const osg::Referenced* osgUtil::StateGraph::getUserData | ( | ) | const [inline] |
const osg::StateSet* osgUtil::StateGraph::getStateSet | ( | ) | const [inline] |
Referenced by moveStateGraph(), moveToRootStateGraph(), and numToPop().
bool osgUtil::StateGraph::empty | ( | ) | const [inline] |
return true if all of drawables, lights and children are empty.
bool osgUtil::StateGraph::leaves_empty | ( | ) | const [inline] |
Referenced by osgUtil::CullVisitor::addDrawable(), and osgUtil::CullVisitor::addDrawableAndDepth().
float osgUtil::StateGraph::getAverageDistance | ( | ) | const [inline] |
float osgUtil::StateGraph::getMinimumDistance | ( | ) | const [inline] |
void osgUtil::StateGraph::sortFrontToBack | ( | ) | [inline] |
void osgUtil::StateGraph::reset | ( | ) |
Reset the internal contents of a StateGraph, including deleting all children.
void osgUtil::StateGraph::clean | ( | ) |
Recursively clean the StateGraph of all its drawables, lights and depths. Leaves children intact, and ready to be populated again.
void osgUtil::StateGraph::prune | ( | ) |
Recursively prune the StateGraph of empty children.
StateGraph* osgUtil::StateGraph::find_or_insert | ( | const osg::StateSet * | stateset | ) | [inline] |
void osgUtil::StateGraph::addLeaf | ( | RenderLeaf * | leaf | ) | [inline] |
add a render leaf.
References osgUtil::RenderLeaf::_dynamic, and osgUtil::RenderLeaf::_parent.
Referenced by osgUtil::CullVisitor::addDrawable(), and osgUtil::CullVisitor::addDrawableAndDepth().
static void osgUtil::StateGraph::moveStateGraph | ( | osg::State & | state, | |
StateGraph * | sg_curr, | |||
StateGraph * | sg_new | |||
) | [inline, static] |
References _depth, _parent, getStateSet(), NULL, osg::State::popStateSet(), and osg::State::pushStateSet().
static void osgUtil::StateGraph::moveToRootStateGraph | ( | osg::State & | state, | |
StateGraph * | sg_curr | |||
) | [inline, static] |
References _parent, getStateSet(), and osg::State::popStateSet().
static int osgUtil::StateGraph::numToPop | ( | StateGraph * | sg_curr | ) | [inline, static] |
References _parent, and getStateSet().
Referenced by moveStateGraph(), moveToRootStateGraph(), and numToPop().
Referenced by moveStateGraph().
float osgUtil::StateGraph::_averageDistance [mutable] |
float osgUtil::StateGraph::_minimumDistance [mutable] |