VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectAnimatingDof.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osgSim/DOFTransform>
17 
18 namespace makVrv
19 {
27  {
28  public:
30  DtIndirectAnimatingDof(DtDe& de, osgSim::DOFTransform* dof);
31 
33  virtual ~DtIndirectAnimatingDof();
34  private:
36  DtIndirectAnimatingDof() = delete;
40  DtIndirectAnimatingDof& operator=(const DtIndirectAnimatingDof& rhs) = delete;
41  public:
44  virtual void updateAnimation(const osg::FrameStamp* frameStamp);
45 
47  virtual void setTranslation(const Vector3_64& trans, const Vector3_64& transVel);
48 
50  virtual void setOrientation(const Vector3_64& hpr, const Vector3_64& hprVel);
51 
53  virtual void setOrientation(const Vector3_64& hprVel, bool forceUpdate);
54 
56  virtual osgSim::DOFTransform* dof(void);
57 
58  protected:
60  virtual bool update(unsigned int previousTraversalNumber, double newTime, double previousTime);
61 
62  protected:
64  const DtDe& myDe;
65 
68 
71 
73 
76 
79 
81  float myLastUpdate;
82 
86 
89 
92  };
93 }
const DtDe & myDe
reference to the internally held DtDe
Definition: DtIndirectAnimatingDof.h:64
float myLastUpdate
Frame time of the most recent animation update.
Definition: DtIndirectAnimatingDof.h:81
Vector3_64 myHpr
Current Heading/Pitch/Roll angles in radians.
Definition: DtIndirectAnimatingDof.h:75
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osgSim::DOFTransform > myDof
the reference to the dof that animates
Definition: DtIndirectAnimatingDof.h:67
Wrapper class for wrapping osgSim::DOFTransform animations.
Definition: DtIndirectAnimatingDof.h:26
3 dimensional vector
float mySmoothCompleteTime
Frame time when smoothing is complete (if enabled).
Definition: DtIndirectAnimatingDof.h:85
Vector3_64 myTransVel
Definition: DtIndirectAnimatingDof.h:72
Vector3_64 mySmoothTransVel
If actively smoothing, use this velocity instead for translation.
Definition: DtIndirectAnimatingDof.h:88
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Vector3_64 mySmoothHprVel
If actively smoothing, use this velocity instead for rotation.
Definition: DtIndirectAnimatingDof.h:91
Vector3_64 myTrans
Current translation in meters.
Definition: DtIndirectAnimatingDof.h:70
Vector3_64 myHprVel
Current Heading/Pitch/Roll angular velocity in rad/s.
Definition: DtIndirectAnimatingDof.h:78

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)