OpenFrames
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenFrames::TransformAccumulator Class Reference

Computes the transformation of a ReferenceFrame wrt an ancestor. More...

#include <TransformAccumulator.hpp>

Inheritance diagram for OpenFrames::TransformAccumulator:

Public Member Functions

 TransformAccumulator (ReferenceFrame *root, ReferenceFrame *frame)
 
ReferenceFramegetRoot ()
 
void setRoot (ReferenceFrame *root)
 
ReferenceFramegetOrigin ()
 
bool setOrigin (ReferenceFrame *frame)
 
bool isValid ()
 
osg::Matrixd & getLocalToWorld ()
 
osg::Matrixd & getWorldToLocal ()
 

Protected Member Functions

void _init ()
 

Protected Attributes

osg::ref_ptr< DescendantTracker_lookAtPath
 
osg::ref_ptr< TransformVisitor_transformVisitor
 

Detailed Description

Computes the transformation of a ReferenceFrame wrt an ancestor.

This class computes the transformation of a ReferenceFrame with respect to any of its ancestor frames. To use, just specify the root frame and the target frame then call the getLocalToWorld() or getWorldToLocal() method. The accumulated transform between root & target frames is returned.

Member Function Documentation

◆ getLocalToWorld()

osg::Matrixd& OpenFrames::TransformAccumulator::getLocalToWorld ( )

Get the transform from origin to its root frame

◆ getOrigin()

ReferenceFrame* OpenFrames::TransformAccumulator::getOrigin ( )

Get/Set the origin frame

◆ getRoot()

ReferenceFrame* OpenFrames::TransformAccumulator::getRoot ( )

Get/Set the root frame

◆ getWorldToLocal()

osg::Matrixd& OpenFrames::TransformAccumulator::getWorldToLocal ( )

Get the transform from the root to origin

◆ isValid()

bool OpenFrames::TransformAccumulator::isValid ( )

Check if the transform from root to origin exists.


The documentation for this class was generated from the following file: