Public Member Functions | |
TextureAtlasVisitor (Optimizer *optimizer=0) | |
default to traversing all children. | |
TextureAtlasBuilder & | getTextureAtlasBuilder () |
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::Drawable * > | Drawables |
typedef std::map < osg::StateSet *, Drawables > | StateSetMap |
typedef std::set < osg::Texture2D * > | Textures |
typedef std::vector < osg::StateSet * > | StateSetStack |
Protected Member Functions | |
bool | pushStateSet (osg::StateSet *stateset) |
void | popStateSet () |
Protected Attributes | |
TextureAtlasBuilder | _builder |
StateSetMap | _statesetMap |
StateSetStack | _statesetStack |
Textures | _textures |
typedef std::set<osg::Drawable*> osgUtil::Optimizer::TextureAtlasVisitor::Drawables [protected] |
typedef std::map<osg::StateSet*, Drawables> osgUtil::Optimizer::TextureAtlasVisitor::StateSetMap [protected] |
typedef std::set<osg::Texture2D*> osgUtil::Optimizer::TextureAtlasVisitor::Textures [protected] |
typedef std::vector<osg::StateSet*> osgUtil::Optimizer::TextureAtlasVisitor::StateSetStack [protected] |
osgUtil::Optimizer::TextureAtlasVisitor::TextureAtlasVisitor | ( | Optimizer * | optimizer = 0 |
) | [inline] |
default to traversing all children.
TextureAtlasBuilder& osgUtil::Optimizer::TextureAtlasVisitor::getTextureAtlasBuilder | ( | ) | [inline] |
virtual void osgUtil::Optimizer::TextureAtlasVisitor::reset | ( | ) | [virtual] |
virtual void osgUtil::Optimizer::TextureAtlasVisitor::apply | ( | osg::Node & | node | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::TextureAtlasVisitor::apply | ( | osg::Geode & | geode | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
void osgUtil::Optimizer::TextureAtlasVisitor::optimize | ( | ) |
bool osgUtil::Optimizer::TextureAtlasVisitor::pushStateSet | ( | osg::StateSet * | stateset | ) | [protected] |
void osgUtil::Optimizer::TextureAtlasVisitor::popStateSet | ( | ) | [protected] |