Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgEstimate::OptimizerVisitor Class Reference

Traverse the scene and decide which nodes should be processed by the errorVisitor and the augmentVisitor. More...


Public Member Functions

void reset ()
virtual void apply (osg::Geode &geode)
 Process Geodes.

virtual void apply (osg::Group &group)
 Process Groups.

virtual void apply (osg::Transform &transform)
 Process Transforms.


Detailed Description

Visits all nodes and set the node mask to allow/prevent processing by the other, more costly visitors. Also precomputes the 3D convex hull of nodes that will be processed so that less vertices are used by the other visitors. Sets the values of PendingTransforms


Member Function Documentation

void OptimizerVisitor::apply osg::Transform &  transform  )  [virtual]
 

Method to be called for a transform. It updates the PendingTransform

void OptimizerVisitor::apply osg::Group &  group  )  [virtual]
 

Two optmizations are performed: branches that do not contain any node that depend on the error estimate have their nodeMask set so that they are not visited by either the ErrorVisitor or the AugmentVisitor. Also, a 3D convex hull of the vertices of an object is store on Group and is used by the AugmentVisitor

void OptimizerVisitor::apply osg::Geode &  geode  )  [virtual]
 

Method to be called for a GEODE adds all the vertices on this Geometry to the _vertices vector.


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:38 2004 for osgAR by doxygen 1.3.7