Inheritance diagram for osgUtil::GLObjectsVisitor:
typedef std::set<osg::Drawable*> osgUtil::GLObjectsVisitor::DrawableAppliedSet [protected] |
typedef unsigned int osgUtil::GLObjectsVisitor::Mode |
typedef std::set<osg::StateSet*> osgUtil::GLObjectsVisitor::StatesSetAppliedSet [protected] |
osgUtil::GLObjectsVisitor::GLObjectsVisitor | ( | Mode | mode = COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES |
) |
Construct a GLObjectsVisitor to traverse all children, operating on node according to specified mode, such as to compile or release display list/texture objects etc. Default mode is to compile GL objects.
void osgUtil::GLObjectsVisitor::apply | ( | osg::StateSet & | stateset | ) |
void osgUtil::GLObjectsVisitor::apply | ( | osg::Drawable & | drawable | ) |
virtual void osgUtil::GLObjectsVisitor::apply | ( | osg::Geode & | node | ) | [virtual] |
For each Geode visited set the display list usage according to the _displayListMode.
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::GLObjectsVisitor::apply | ( | osg::Node & | node | ) | [virtual] |
Simply traverse using standard NodeVisitor traverse method.
Reimplemented from osg::NodeVisitor.
Mode osgUtil::GLObjectsVisitor::getMode | ( | ) | const [inline] |
Get the operational mode.
osg::State* osgUtil::GLObjectsVisitor::getState | ( | ) | [inline] |
virtual void osgUtil::GLObjectsVisitor::reset | ( | ) | [inline, virtual] |
Method to call to reset visitor. Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal.
Reimplemented from osg::NodeVisitor.
void osgUtil::GLObjectsVisitor::setMode | ( | Mode | mode | ) | [inline] |
Set the operational mode of what operations to do on the scene graph.
void osgUtil::GLObjectsVisitor::setState | ( | osg::State * | state | ) | [inline] |
Set the State to use during traversal.
Mode osgUtil::GLObjectsVisitor::_mode [protected] |
osg::ref_ptr<osg::State> osgUtil::GLObjectsVisitor::_state [protected] |