Optimize State in the scene graph by removing duplicate state, replacing it with shared instances, both for StateAttributes, and whole StateSets
Inheritance:
Public Methods
-
StateVisitor(Optimizer* optimizer=0)
- default to traversing all children
-
virtual void reset()
- empty visitor, make it ready for next traversal
-
virtual void apply(osg::Node& node)
-
virtual void apply(osg::Geode& geode)
-
void optimize()
-
inline bool isOperationPermissableForObject(const osg::Object* object) const
Protected Fields
-
Optimizer* _optimizer
-
StateSetMap _statesets
Protected Methods
-
void addStateSet(osg::StateSet* stateset, osg::Object* obj)
Protected
-
typedef std::set<osg::Object*> ObjectSet
-
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
- StateVisitor(Optimizer* optimizer=0)
- default to traversing all children
- virtual void reset()
- empty visitor, make it ready for next traversal
- virtual void apply(osg::Node& node)
- virtual void apply(osg::Geode& geode)
- void optimize()
- inline bool isOperationPermissableForObject(const osg::Object* object) const
- void addStateSet(osg::StateSet* stateset, osg::Object* obj)
- typedef std::set<osg::Object*> ObjectSet
- typedef std::map<osg::StateSet*,ObjectSet> StateSetMap
- Optimizer* _optimizer
- StateSetMap _statesets
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.