OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor Class Reference

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

Inheritance diagram for osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from osg::NodeVisitor.

Reimplemented from osg::NodeVisitor.

Reimplemented from osg::NodeVisitor.

Reimplemented from osg::NodeVisitor.

Reimplemented from osg::NodeVisitor.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Sat Apr 28 2012 08:53:53 for the OpenSceneGraph by doxygen 1.8.0.