class OSGUTIL_EXPORT FlattenStaticTransformsVisitor

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

Inheritance:


Public Methods

[more] FlattenStaticTransformsVisitor(bool ignoreDynamicTransforms=true)
[more]virtual void apply(osg::Geode& geode)
[more]virtual void apply(osg::Billboard& billboard)
[more]virtual void apply(osg::LOD& lod)
[more]virtual void apply(osg::Transform& transform)
[more]void removeTransforms()

Protected Fields

[more]bool _ignoreDynamicTransforms
[more]MatrixStack _matrixStack
[more]TransformStack _transformStack
[more]TransformMap _transformMap
[more]ObjectMap _objectMap

Protected Methods

[more]typedef std::map<osg::Object*,ObjectStruct> ObjectMap void disableObject(osg::Object* object)
[more]void disableObject(ObjectMap::iterator itr)
[more]void disableTransform(osg::Transform* transform)
[more]void doTransform(osg::Object* obj, osg::Matrix& matrix)

Protected Members

[more]typedef std::vector<osg::Matrix> MatrixStackstruct TransformStruct
[more]struct ObjectStruct


Documentation

Flatten Static Trasform nodes by applying their transform to the geometry on the leaves of the scene graph, then removing the now redundent transforms
o FlattenStaticTransformsVisitor(bool ignoreDynamicTransforms=true)

ovirtual void apply(osg::Geode& geode)

ovirtual void apply(osg::Billboard& billboard)

ovirtual void apply(osg::LOD& lod)

ovirtual void apply(osg::Transform& transform)

ovoid removeTransforms()

otypedef std::vector<osg::Matrix> MatrixStackstruct TransformStruct

otypedef std::set<osg::Object*> ObjectSet TransformStruct()

ovoid add(osg::Object* obj)

obool _canBeApplied

oObjectSet _objectSet

ostruct ObjectStruct

otypedef std::set<osg::Transform*> TransformSet ObjectStruct()

ovoid add(TransformStack& transforms, osg::Matrix& matrix)

obool _canBeApplied

obool _matrixSet

obool _moreThanOneMatrixRequired

oosg::Matrix _matrix

oTransformSet _transformSet

otypedef std::map<osg::Object*,ObjectStruct> ObjectMap void disableObject(osg::Object* object)

ovoid disableObject(ObjectMap::iterator itr)

ovoid disableTransform(osg::Transform* transform)

ovoid doTransform(osg::Object* obj, osg::Matrix& matrix)

obool _ignoreDynamicTransforms

oMatrixStack _matrixStack

oTransformStack _transformStack

oTransformMap _transformMap

oObjectMap _objectMap


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.