16 #include <osgSim/DOFTransform>
18 #include <boost/utility/binary.hpp>
22 namespace DtIndirectAnimationFlags
51 virtual void updateAnimation(
const osg::FrameStamp* frameStamp);
60 virtual void setOrientation(
const Vector3_64& hprVel,
bool forceUpdate);
63 virtual osgSim::DOFTransform* dof(
void);
66 virtual bool hasVelocity(
void)
const;
69 virtual void setAnimationFlags(
int val);
72 virtual int animationFlags(
void)
const;
75 virtual bool update(
unsigned int previousTraversalNumber,
double newTime,
double previousTime);
78 virtual void adjustDofConstraintsIfNecessary();
81 virtual void constrainTranslationAndHprIfNecessary(
void);
84 virtual bool hasHprLimits(
void)
const;
116 bool myHasVelocity =
true;
118 int myAnimationFlags = 0;
const DtDe & myDe
reference to the internally held DtDe
Definition: DtIndirectAnimatingDof.h:87
float myLastUpdate
Frame time of the most recent animation update.
Definition: DtIndirectAnimatingDof.h:104
Vector3_64 myHpr
Current Heading/Pitch/Roll angles in radians.
Definition: DtIndirectAnimatingDof.h:98
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osgSim::DOFTransform > myDof
the reference to the dof that animates
Definition: DtIndirectAnimatingDof.h:90
Wrapper class for wrapping osgSim::DOFTransform animations. Allows to set a translation & translation...
Definition: DtIndirectAnimatingDof.h:33
const unsigned int DontDirtyBoundOnSet
Definition: DtIndirectAnimatingDof.h:25
float mySmoothCompleteTime
Frame time when smoothing is complete (if enabled). This will be the time the last update arrived fro...
Definition: DtIndirectAnimatingDof.h:108
Vector3_64 myTransVel
Definition: DtIndirectAnimatingDof.h:95
const unsigned int ClearAnimationOnFinish
Definition: DtIndirectAnimatingDof.h:24
Vector3_64 mySmoothTransVel
If actively smoothing, use this velocity instead for translation.
Definition: DtIndirectAnimatingDof.h:111
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:70
Vector3_64 mySmoothHprVel
If actively smoothing, use this velocity instead for rotation.
Definition: DtIndirectAnimatingDof.h:114
Vector3_64 myTrans
Current translation in meters.
Definition: DtIndirectAnimatingDof.h:93
Vector3_64 myHprVel
Current Heading/Pitch/Roll angular velocity in rad/s.
Definition: DtIndirectAnimatingDof.h:101