class OSGUTIL_EXPORT osgUtil::Optimizer

Insert impostor nodes into scene graph.

Public Classes

[more]enum OptimizationOptions
class OSGUTIL_EXPORT FlattenStaticTransformsVisitor: public osg::NodeVisitor
Flatten Static Trasform nodes by applying their transform to the geometry on the leaves of the scene graph, then removing the now redundant transforms
class OSGUTIL_EXPORT CombineStaticTransformsVisitor: public osg::NodeVisitor
Combine Static Trasform nodes that sit above on another
class OSGUTIL_EXPORT RemoveEmptyNodesVisitor: public osg::NodeVisitor
Remove rendundant nodes, such as groups with one single child
class OSGUTIL_EXPORT RemoveRedundantNodesVisitor: public osg::NodeVisitor
Remove rendundant nodes, such as groups with one single child
class OSGUTIL_EXPORT TesselateVisitor: public osg::NodeVisitor
Tesselate all geodes, to remove POLYGONS complementary ranges
class OSGUTIL_EXPORT CombineLODsVisitor: public osg::NodeVisitor
Optimize the LOD groups, by combining adjacent LOD's which have complementary ranges
class OSGUTIL_EXPORT StateVisitor: public osg::NodeVisitor
Optimize State in the scene graph by removing duplicate state, replacing it with shared instances, both for StateAttributes, and whole StateSets
class OSGUTIL_EXPORT CheckGeometryVisitor: public osg::NodeVisitor
class OSGUTIL_EXPORT MergeGeometryVisitor: public osg::NodeVisitor
class OSGUTIL_EXPORT SpatializeGroupsVisitor: public osg::NodeVisitor
Spatialize scene into a balanced quad/oct tree
class OSGUTIL_EXPORT CopySharedSubgraphsVisitor: public osg::NodeVisitor
Copy any shared subgraphs, enabling flattening of static transforms
class OSGUTIL_EXPORT TextureVisitor: public osg::NodeVisitor
For all textures apply settings

Public Methods

[more] Optimizer()
[more]virtual ~Optimizer()
[more]void reset()
reset internal data to initial state - the getPrimissableOptionsMap is cleared
[more]void optimize(osg::Node* node)
traverse the node and its subgraph with a series of optimization visitors, specificied by the OptizationOptions
[more]virtual void optimize(osg::Node* node, unsigned int options)
traverse the node and its subgraph with a series of optimization visitors, specificied by the OptizationOptions
[more]inline void setPermissableOptimizationsForObject(const osg::Object* object, unsigned int options)
[more]inline unsigned int getPermissableOptimizationsForObject(const osg::Object* object) const
[more]inline bool isOperationPermissableForObject(const osg::Object* object, unsigned int option) const
[more]PermissableOptimizationsMap& getPrimissableOptionsMap()
[more]const PermissableOptimizationsMap& getPrimissableOptionsMap() const

Public

[more]typedef std::map<const osg::Object*,unsigned int> PermissableOptimizationsMap

Protected Fields

[more]PermissableOptimizationsMap _permissableOptimizationsMap


Documentation

Insert impostor nodes into scene graph. For example of usage see src/Demos/osgimpostor.
o Optimizer()

ovirtual ~Optimizer()

oenum OptimizationOptions

o FLATTEN_STATIC_TRANSFORMS

o REMOVE_REDUNDANT_NODES

o COMBINE_ADJACENT_LODS

o SHARE_DUPLICATE_STATE

o MERGE_GEOMETRY

o CHECK_GEOMETRY

o SPATIALIZE_GROUPS

o COPY_SHARED_NODES

o TRISTRIP_GEOMETRY

o TESSELATE_GEOMETRY

o OPTIMIZE_TEXTURE_SETTINGS

o DEFAULT_OPTIMIZATIONS

o ALL_OPTIMIZATIONS

ovoid reset()
reset internal data to initial state - the getPrimissableOptionsMap is cleared

ovoid optimize(osg::Node* node)
traverse the node and its subgraph with a series of optimization visitors, specificied by the OptizationOptions

ovirtual void optimize(osg::Node* node, unsigned int options)
traverse the node and its subgraph with a series of optimization visitors, specificied by the OptizationOptions

oinline void setPermissableOptimizationsForObject(const osg::Object* object, unsigned int options)

oinline unsigned int getPermissableOptimizationsForObject(const osg::Object* object) const

oinline bool isOperationPermissableForObject(const osg::Object* object, unsigned int option) const

otypedef std::map<const osg::Object*,unsigned int> PermissableOptimizationsMap

oPermissableOptimizationsMap& getPrimissableOptionsMap()

oconst PermissableOptimizationsMap& getPrimissableOptionsMap() const

oPermissableOptimizationsMap _permissableOptimizationsMap


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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