class OSGUTIL_EXPORT osgUtil::GLObjectsVisitor

Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag, with option to immediately compile osg::Drawable OpenGL Display lists and osg::StateAttribute's

Inheritance:


Public Classes

[more]enum ModeValues
Operation modes of the

Public Methods

[more] GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
Construct a GLObjectsVisior to traverse all child, operating on node according to specified mode, such as to compile or release display list/texture objects etc.
[more]void setMode(Mode mode)
Set the operational mode of what operations to do on the scene graph
[more]Mode getMode() const
Get the operational mode
[more]void setState(osg::State* state)
Set the State to use during traversal.
[more]osg::State* getState()
[more]virtual void apply(osg::Node& node)
Simply traverse using standard NodeVisitor traverse method
[more]virtual void apply(osg::Geode& node)
For each Geode visited set the display list usage according to the _displayListMode
[more]void apply(osg::Drawable& drawable)
[more]void apply(osg::StateSet& stateset)

Public

[more]typedef unsigned int Mode

Protected Fields

[more]Mode _mode
[more]osg::ref_ptr<osg::State> _state


Documentation

Visitor for traversing scene graph and setting each osg::Drawable's _useDisplayList flag, with option to immediately compile osg::Drawable OpenGL Display lists and osg::StateAttribute's
oenum ModeValues
Operation modes of the

o SWITCH_ON_DISPLAY_LISTS

o SWITCH_OFF_DISPLAY_LISTS

o COMPILE_DISPLAY_LISTS

o COMPILE_STATE_ATTRIBUTES

o RELEASE_DISPLAY_LISTS

o RELEASE_STATE_ATTRIBUTES

otypedef unsigned int Mode

o GLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
Construct a GLObjectsVisior to traverse all child, 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.

ovoid setMode(Mode mode)
Set the operational mode of what operations to do on the scene graph

oMode getMode() const
Get the operational mode

ovoid setState(osg::State* state)
Set the State to use during traversal.

oosg::State* getState()

ovirtual void apply(osg::Node& node)
Simply traverse using standard NodeVisitor traverse method

ovirtual void apply(osg::Geode& node)
For each Geode visited set the display list usage according to the _displayListMode

ovoid apply(osg::Drawable& drawable)

ovoid apply(osg::StateSet& stateset)

oMode _mode

oosg::ref_ptr<osg::State> _state


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.