16 #include <osgSim/DOFTransform>
18 #include <boost/utility/binary.hpp>
22 namespace DtIndirectAnimationFlags
52 virtual void updateAnimation(
const osg::FrameStamp* frameStamp);
61 virtual void setOrientation(
const Vector3_64& hprVel,
bool forceUpdate);
64 virtual osgSim::DOFTransform* dof(
void);
67 virtual bool hasVelocity(
void)
const;
70 virtual void setAnimationFlags(
int val);
73 virtual int animationFlags(
void)
const;
76 virtual bool update(
unsigned int previousTraversalNumber,
double newTime,
double previousTime);
79 virtual void adjustDofConstraintsIfNecessary();
82 virtual void constrainTranslationAndHprIfNecessary(
void);
85 virtual bool hasHprLimits(
void)
const;
117 bool myHasVelocity =
true;
119 int myAnimationFlags = 0;
const DtDe & myDe
reference to the internally held DtDe
Definition: DtIndirectAnimatingDof.h:88
float myLastUpdate
Frame time of the most recent animation update.
Definition: DtIndirectAnimatingDof.h:105
Vector3_64 myHpr
Current Heading/Pitch/Roll angles in radians.
Definition: DtIndirectAnimatingDof.h:99
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osgSim::DOFTransform > myDof
the reference to the dof that animates
Definition: DtIndirectAnimatingDof.h:91
Wrapper class for wrapping osgSim::DOFTransform animations. Allows to set a translation & translation...
Definition: DtIndirectAnimatingDof.h:34
const unsigned int DontDirtyBoundOnSet
Definition: DtIndirectAnimatingDof.h:25
const unsigned int FreezeAnimation
Definition: DtIndirectAnimatingDof.h:26
float mySmoothCompleteTime
Frame time when smoothing is complete (if enabled). This will be the time the last update arrived fro...
Definition: DtIndirectAnimatingDof.h:109
Vector3_64 myTransVel
Definition: DtIndirectAnimatingDof.h:96
const unsigned int ClearAnimationOnFinish
Definition: DtIndirectAnimatingDof.h:24
Vector3_64 mySmoothTransVel
If actively smoothing, use this velocity instead for translation.
Definition: DtIndirectAnimatingDof.h:112
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Vector3_64 mySmoothHprVel
If actively smoothing, use this velocity instead for rotation.
Definition: DtIndirectAnimatingDof.h:115
Vector3_64 myTrans
Current translation in meters.
Definition: DtIndirectAnimatingDof.h:94
Vector3_64 myHprVel
Current Heading/Pitch/Roll angular velocity in rad/s.
Definition: DtIndirectAnimatingDof.h:102