class OSGUTIL_EXPORT osgUtil::Optimizer::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(Optimizer* optimizer=0)
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()
[more]inline bool isOperationPermissableForObject(const osg::Object* object) const

Protected Fields

[more]Optimizer* _optimizer
[more]StateSetMap _statesets

Protected Methods

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

Protected

[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(Optimizer* optimizer=0)
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()

oinline bool isOperationPermissableForObject(const osg::Object* object) const

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

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

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

oOptimizer* _optimizer

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