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

Flatten Static Transform nodes by applying their transform to the geometry on the leaves of the scene graph, then removing the now redundant transforms. More...

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

List of all members.

Public Member Functions

 FlattenStaticTransformsVisitor (Optimizer *optimizer=0)
virtual void apply (osg::Node &geode)
virtual void apply (osg::Geode &geode)
virtual void apply (osg::Billboard &geode)
virtual void apply (osg::ProxyNode &node)
virtual void apply (osg::PagedLOD &node)
virtual void apply (osg::Transform &transform)
bool removeTransforms (osg::Node *nodeWeCannotRemove)

Protected Types

typedef std::vector
< osg::Transform * > 
TransformStack
typedef std::set< osg::Drawable * > DrawableSet
typedef std::set
< osg::Billboard * > 
BillboardSet
typedef std::set< osg::Node * > NodeSet
typedef std::set
< osg::Transform * > 
TransformSet

Protected Attributes

TransformStack _transformStack
NodeSet _excludedNodeSet
DrawableSet _drawableSet
BillboardSet _billboardSet
TransformSet _transformSet

Detailed Description

Flatten Static Transform nodes by applying their transform to the geometry on the leaves of the scene graph, then removing the now redundant transforms.

Static transformed Subgraphs that have multiple parental paths above them are not flattened, if you require this then the subgraphs have to be duplicated - for this use the FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor.


Member Typedef Documentation


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.

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:44:40 for the OpenSceneGraph by doxygen 1.8.0.