VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtIndirectAnimatingDof Class Reference

Wrapper class for wrapping osgSim::DOFTransform animations. More...

Public Member Functions

 DtIndirectAnimatingDof (DtDe &de, osgSim::DOFTransform *dof)
 ctor More...
 
virtual ~DtIndirectAnimatingDof ()
 dtor More...
 
virtual void updateAnimation (const osg::FrameStamp *frameStamp)
 update the internally held dof (update its transform), given a time stamp the transformed dof is smoothed or not depending on the settings More...
 
virtual void setTranslation (const Vector3_64 &trans, const Vector3_64 &transVel)
 set the translation and translation velocity on the dof More...
 
virtual void setOrientation (const Vector3_64 &hpr, const Vector3_64 &hprVel)
 set the HPR (heading, pitch and roll) and a HPR velocity on the dof More...
 
virtual void setOrientation (const Vector3_64 &hprVel, bool forceUpdate)
 set just the HPR velocity More...
 
virtual osgSim::DOFTransform * dof (void)
 access the internally held dof More...
 

Protected Member Functions

virtual bool update (unsigned int previousTraversalNumber, double newTime, double previousTime)
 update the translation & HPR More...
 

Protected Attributes

const DtDemyDe
 reference to the internally held DtDe More...
 
osg::ref_ptr
< osgSim::DOFTransform > 
myDof
 the reference to the dof that animates More...
 
Vector3_64 myTrans
 Current translation in meters. More...
 
Vector3_64 myTransVel
 
Vector3_64 myHpr
 Current Heading/Pitch/Roll angles in radians. More...
 
Vector3_64 myHprVel
 Current Heading/Pitch/Roll angular velocity in rad/s. More...
 
float myLastUpdate
 Frame time of the most recent animation update. More...
 
float mySmoothCompleteTime
 Frame time when smoothing is complete (if enabled). More...
 
Vector3_64 mySmoothTransVel
 If actively smoothing, use this velocity instead for translation. More...
 
Vector3_64 mySmoothHprVel
 If actively smoothing, use this velocity instead for rotation. More...
 

Private Member Functions

 DtIndirectAnimatingDof ()=delete
 not allowed More...
 
 DtIndirectAnimatingDof (const DtIndirectAnimatingDof &rhs)=delete
 not allowed More...
 
DtIndirectAnimatingDofoperator= (const DtIndirectAnimatingDof &rhs)=delete
 not allowed More...
 

Detailed Description

Wrapper class for wrapping osgSim::DOFTransform animations.

Allows to set a translation & translation velocity on a dof. Allows to set a HPR & HPR velocity on a dof. Smooths out the translations and HPR depending on whether smoothing is enabled or not over a 'smoothing period'. Updates the internally held osg dof based on these calculations

Constructor & Destructor Documentation

makVrv::DtIndirectAnimatingDof::DtIndirectAnimatingDof ( DtDe de,
osgSim::DOFTransform *  dof 
)

ctor

virtual makVrv::DtIndirectAnimatingDof::~DtIndirectAnimatingDof ( )
virtual

dtor

makVrv::DtIndirectAnimatingDof::DtIndirectAnimatingDof ( )
privatedelete

not allowed

makVrv::DtIndirectAnimatingDof::DtIndirectAnimatingDof ( const DtIndirectAnimatingDof rhs)
privatedelete

not allowed

Member Function Documentation

DtIndirectAnimatingDof& makVrv::DtIndirectAnimatingDof::operator= ( const DtIndirectAnimatingDof rhs)
privatedelete

not allowed

virtual void makVrv::DtIndirectAnimatingDof::updateAnimation ( const osg::FrameStamp *  frameStamp)
virtual

update the internally held dof (update its transform), given a time stamp the transformed dof is smoothed or not depending on the settings

virtual void makVrv::DtIndirectAnimatingDof::setTranslation ( const Vector3_64 trans,
const Vector3_64 transVel 
)
virtual

set the translation and translation velocity on the dof

virtual void makVrv::DtIndirectAnimatingDof::setOrientation ( const Vector3_64 hpr,
const Vector3_64 hprVel 
)
virtual

set the HPR (heading, pitch and roll) and a HPR velocity on the dof

virtual void makVrv::DtIndirectAnimatingDof::setOrientation ( const Vector3_64 hprVel,
bool  forceUpdate 
)
virtual

set just the HPR velocity

virtual osgSim::DOFTransform* makVrv::DtIndirectAnimatingDof::dof ( void  )
virtual

access the internally held dof

virtual bool makVrv::DtIndirectAnimatingDof::update ( unsigned int  previousTraversalNumber,
double  newTime,
double  previousTime 
)
protectedvirtual

update the translation & HPR

Member Data Documentation

const DtDe& makVrv::DtIndirectAnimatingDof::myDe
protected

reference to the internally held DtDe

osg::ref_ptr<osgSim::DOFTransform> makVrv::DtIndirectAnimatingDof::myDof
protected

the reference to the dof that animates

Vector3_64 makVrv::DtIndirectAnimatingDof::myTrans
protected

Current translation in meters.

Vector3_64 makVrv::DtIndirectAnimatingDof::myTransVel
protected
Vector3_64 makVrv::DtIndirectAnimatingDof::myHpr
protected

Current Heading/Pitch/Roll angles in radians.

Vector3_64 makVrv::DtIndirectAnimatingDof::myHprVel
protected

Current Heading/Pitch/Roll angular velocity in rad/s.

float makVrv::DtIndirectAnimatingDof::myLastUpdate
protected

Frame time of the most recent animation update.

float makVrv::DtIndirectAnimatingDof::mySmoothCompleteTime
protected

Frame time when smoothing is complete (if enabled).

This will be the time the last update arrived from the model plus the smoothPeriod (at the time of the update)

Vector3_64 makVrv::DtIndirectAnimatingDof::mySmoothTransVel
protected

If actively smoothing, use this velocity instead for translation.

Vector3_64 makVrv::DtIndirectAnimatingDof::mySmoothHprVel
protected

If actively smoothing, use this velocity instead for rotation.


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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)