class OSGUTIL_EXPORT osgUtil::DisplayListVisitor

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

Inheritance:


Public Methods

[more] DisplayListVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
Construct a CompileGeoSetsVisior to traverse all child, with set specified display list mode.
[more]void setMode(Mode mode)
Set the operational mode of how the visitor should set up osg::GeoSet's
[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

Public Members

[more]enum ModeValues
Operation modes of the

Protected Fields

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


Documentation

Visitor for traversing scene graph and setting each osg::GeoSet'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 DisplayListVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
Construct a CompileGeoSetsVisior to traverse all child, with set specified display list mode. Default mode is to gset->setUseDisplayList(true).

ovoid setMode(Mode mode)
Set the operational mode of how the visitor should set up osg::GeoSet's

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

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++.