class OSGUTIL_EXPORT osgUtil::DisplayListVisitor

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 Methods

[more] DisplayListVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
Construct a DisplayListVisior 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::Drawable'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
[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

otypedef unsigned int Mode

o DisplayListVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES)
Construct a DisplayListVisior 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::Drawable'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++.