![]() |
VR-Forces 4.10 Class Documentation
|
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 DtDe & | myDe |
| 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... | |
| DtIndirectAnimatingDof & | operator= (const DtIndirectAnimatingDof &rhs)=delete |
| not allowed More... | |
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
| makVrv::DtIndirectAnimatingDof::DtIndirectAnimatingDof | ( | DtDe & | de, |
| osgSim::DOFTransform * | dof | ||
| ) |
ctor
|
virtual |
dtor
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
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 |
set the translation and translation velocity on the dof
|
virtual |
set the HPR (heading, pitch and roll) and a HPR velocity on the dof
|
virtual |
set just the HPR velocity
|
virtual |
access the internally held dof
|
protectedvirtual |
update the translation & HPR
|
protected |
the reference to the dof that animates
|
protected |
Current translation in meters.
|
protected |
|
protected |
Current Heading/Pitch/Roll angles in radians.
|
protected |
Current Heading/Pitch/Roll angular velocity in rad/s.
|
protected |
Frame time of the most recent animation update.
|
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)
|
protected |
If actively smoothing, use this velocity instead for translation.
|
protected |
If actively smoothing, use this velocity instead for rotation.