Public Member Functions | |
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 () |
Protected Types | |
typedef std::set < osg::Object * > | ObjectSet |
typedef std::map < osg::StateSet *, ObjectSet > | StateSetMap |
Protected Member Functions | |
void | addStateSet (osg::StateSet *stateset, osg::Object *obj) |
Protected Attributes | |
StateSetMap | _statesets |
typedef std::set<osg::Object*> osgUtil::Optimizer::StateVisitor::ObjectSet [protected] |
typedef std::map<osg::StateSet*,ObjectSet> osgUtil::Optimizer::StateVisitor::StateSetMap [protected] |
osgUtil::Optimizer::StateVisitor::StateVisitor | ( | Optimizer * | optimizer = 0 |
) | [inline] |
default to traversing all children.
virtual void osgUtil::Optimizer::StateVisitor::reset | ( | ) | [virtual] |
virtual void osgUtil::Optimizer::StateVisitor::apply | ( | osg::Node & | node | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::StateVisitor::apply | ( | osg::Geode & | geode | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
void osgUtil::Optimizer::StateVisitor::optimize | ( | ) |
void osgUtil::Optimizer::StateVisitor::addStateSet | ( | osg::StateSet * | stateset, | |
osg::Object * | obj | |||
) | [protected] |