OpenSceneGraph 2.8.4
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

osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor ( Optimizer optimizer = 0) [inline]

Member Function Documentation

virtual void osgUtil::Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::apply ( osg::Group group) [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::Transform transform) [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]

Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:17:01 for the OpenSceneGraph by doxygen 1.7.4.