OpenSceneGraph
3.0.1
|
FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor is similar to to FlattenStaticTransformsVisitor in that is desgined to remove static transforms from the scene graph, pushing down the transforms to the geometry leaves of the scene graph, but with the difference that any subgraphs that are shared between different transforms of duplicated and flatten individually. More...
Public Member Functions | |
FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor (Optimizer *optimizer=0) | |
virtual void | reset () |
Method to call to reset visitor. | |
virtual void | apply (osg::Group &group) |
virtual void | apply (osg::Transform &transform) |
virtual void | apply (osg::LOD &lod) |
virtual void | apply (osg::Geode &geode) |
virtual void | apply (osg::Billboard &billboard) |
Protected Member Functions | |
void | transformGeode (osg::Geode &geode) |
void | transformDrawable (osg::Drawable &drawable) |
void | transformBillboard (osg::Billboard &billboard) |
Protected Attributes | |
std::vector< osg::Matrix > | _matrixStack |
FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor is similar to to FlattenStaticTransformsVisitor in that is desgined to remove static transforms from the scene graph, pushing down the transforms to the geometry leaves of the scene graph, but with the difference that any subgraphs that are shared between different transforms of duplicated and flatten individually.
This results in more static transforms being removed, but also means that more data is generated, and as a result may not always be the most appropriate flatten visitor to use.
osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor | ( | Optimizer * | optimizer = 0 | ) | [inline] |
virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::apply | ( | osg::Group & | group | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::apply | ( | osg::Transform & | transform | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::apply | ( | osg::LOD & | lod | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::apply | ( | osg::Geode & | geode | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::apply | ( | osg::Billboard & | billboard | ) | [virtual] |
Reimplemented from osg::NodeVisitor.
virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::reset | ( | ) | [virtual] |
Method to call to reset visitor.
Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal.
Reimplemented from osg::NodeVisitor.
void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::transformBillboard | ( | osg::Billboard & | billboard | ) | [protected] |
void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::transformDrawable | ( | osg::Drawable & | drawable | ) | [protected] |
void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::transformGeode | ( | osg::Geode & | geode | ) | [protected] |
std::vector<osg::Matrix> osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::_matrixStack [protected] |
![]() | Generated at Fri Apr 27 2012 20:41:34 for the OpenSceneGraph by doxygen 1.8.0. |