Google

class OSGUTIL_EXPORT StateVisitor

Optimize State in the scene graph by removing duplicate state, replacing it with shared instances, both for StateAttributes, and whole StateSets

Inheritance:


Public Methods

[more] StateVisitor()
default to traversing all children
[more]virtual void reset()
empty visitor, make it ready for next traversal
[more]virtual void apply(osg::Node& node)
[more]virtual void apply(osg::Geode& geode)
[more]void optimize()

Protected Fields

[more]StateSetMap _statesets

Protected Methods

[more]void addStateSet(osg::StateSet* stateset, osg::Object* obj)

Protected Members

[more]typedef std::set<osg::Object*> ObjectSet
[more]typedef std::map<osg::StateSet*,ObjectSet> StateSetMap


Documentation

Optimize State in the scene graph by removing duplicate state, replacing it with shared instances, both for StateAttributes, and whole StateSets
o StateVisitor()
default to traversing all children

ovirtual void reset()
empty visitor, make it ready for next traversal

ovirtual void apply(osg::Node& node)

ovirtual void apply(osg::Geode& geode)

ovoid optimize()

ovoid addStateSet(osg::StateSet* stateset, osg::Object* obj)

otypedef std::set<osg::Object*> ObjectSet

otypedef std::map<osg::StateSet*,ObjectSet> StateSetMap

oStateSetMap _statesets


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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