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

osgEstimate::ErrorVisitor Class Reference

A node visitor for calculating the view independent error estimates. More...


Public Member Functions

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

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

void replaceLocalMatrixEstimate (osgExtension::MatrixEstimate &)
osgExtension::MatrixEstimategetLocalMatrixEstimate ()

Protected Member Functions

void handleOSGARTransform (const osgExtension::Transform &transform, const MatrixEstimate &currentMatrixEstimate, MatrixEstimate &newMatrixEstimate)
void handlePositionAttitudeTransform (const osg::PositionAttitudeTransform &transform, const MatrixEstimate &currentMatrixEstimate, MatrixEstimate &newMatrixEstimate)
void handleMatrixTransform (const osg::MatrixTransform &transform, const MatrixEstimate &currentMatrixEstimate, MatrixEstimate &newMatrixEstimate)
void handleAutoTransform (const osg::AutoTransform &transform, const MatrixEstimate &currentMatrixEstimate, MatrixEstimate &newMatrixEstimate)
void handleDOFTransform (const osg::DOFTransform &transform, const MatrixEstimate &currentMatrixEstimate, MatrixEstimate &newMatrixEstimate)
void handleTransform (const osg::Transform &transform, const MatrixEstimate &currentMatrixEstimate, MatrixEstimate &newMatrixEstimate)
 Unknown transform type; set the error back to 0.


Detailed Description

This visitor traverses the scene graph and stores MatrixEstimates on osgAR::Group nodes.


Member Function Documentation

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

Method to be called for a TRANSFORM

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

Method to be called for a GROUP

Store the estimate

void ErrorVisitor::handleAutoTransform const osg::AutoTransform &  t,
const MatrixEstimate lme,
MatrixEstimate me
[protected]
 

Because this is some automatically adaptive transformation, set the error basically back to 0

void ErrorVisitor::handleDOFTransform const osg::DOFTransform &  t,
const MatrixEstimate lme,
MatrixEstimate me
[protected]
 

Because this is some automatically adaptive transformation, set the error basically back to 0

void ErrorVisitor::handleOSGARTransform const osgExtension::Transform transform,
const MatrixEstimate lme,
MatrixEstimate me
[protected]
 

Handle the OSGAR transformation. Unlike all of the other types of transformations, this type injects *noise* into the scene graph and so is a bit more complicated to handle...

void ErrorVisitor::replaceLocalMatrixEstimate osgExtension::MatrixEstimate matrixEstimate  ) 
 

replace the local matrix estimate

void ErrorVisitor::reset  ) 
 

clears the _estimatePath and pushes the initial value onto the stack


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