![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.
Public Member Functions | |
| DtIndirectAnimatingDof (DtDe &de, osgSim::DOFTransform *dof) | |
| virtual | ~DtIndirectAnimatingDof () |
| virtual void | updateAnimation (const osg::FrameStamp *frameStamp) |
| virtual void | setTranslation (const Vector3_64 &trans, const Vector3_64 &transVel) |
| virtual void | setOrientation (const Vector3_64 &hpr, const Vector3_64 &hprVel) |
| virtual void | setOrientation (const Vector3_64 &hprVel, bool forceUpdate) |
| virtual osgSim::DOFTransform * | dof (void) |
| virtual bool | hasVelocity (void) const |
| virtual void | setAnimationFlags (int val) |
| virtual int | animationFlags (void) const |
Protected Member Functions | |
| virtual bool | update (unsigned int previousTraversalNumber, double newTime, double previousTime) |
| virtual void | adjustDofConstraintsIfNecessary () |
| virtual void | constrainTranslationAndHprIfNecessary (void) |
| virtual bool | hasHprLimits (void) const |
Protected Attributes | |
| const DtDe & | myDe |
| osg::ref_ptr < osgSim::DOFTransform > | myDof |
| Vector3_64 | myTrans |
| Vector3_64 | myTransVel |
| Vector3_64 | myHpr |
| Vector3_64 | myHprVel |
| float | myLastUpdate |
| float | mySmoothCompleteTime |
| Vector3_64 | mySmoothTransVel |
| Vector3_64 | mySmoothHprVel |
| bool | myHasVelocity = true |
| int | myAnimationFlags = 0 |
Private Member Functions | |
| DtIndirectAnimatingDof ()=delete | |
| DtIndirectAnimatingDof (const DtIndirectAnimatingDof &rhs)=delete | |
| DtIndirectAnimatingDof & | operator= (const DtIndirectAnimatingDof &rhs)=delete |
| 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
|
virtual |
has velocity
|
virtual |
animation flags: only one value is used. If 1, the manager will clear this from it's list of animating dofs
|
virtual |
animation flags: only one value is used. If 1, the manager will clear this from it's list of animating dofs
|
protectedvirtual |
update the translation & HPR
|
protectedvirtual |
if dof constraints are enabled globally, they are turned on, else ignored
|
protectedvirtual |
if dof constraints are enabled globally, translation & hpr is constrained
|
protectedvirtual |
whether the dof has hpr limits (per dof->getLimitationFlags)
|
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.
|
protected |
|
protected |