VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCigiEntity.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2014 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 
11 #ifndef DtCigiEntity_H_
12 #define DtCigiEntity_H_
13 
14 #include <vrvCigi/vrvCigi.h>
15 
17 
18 #include <matrix/geodeticCoord.h>
19 
20 #include <map>
21 
22 namespace makVrv
23 {
24  class DtCigiConnection;
25  class DtAgentManagerInterface;
26 
27  class DtArticulatedModelAgent;
28 
32  {
33  public:
35  DtCigiEntity(DtCigiConnection& connection,
36  DtAgentManagerInterface& mySceneInterface,
37  int entityId, int entityType);
38 
40  virtual ~DtCigiEntity();
41 
43  virtual void setState(int stateId, int stateValue);
44 
46  virtual void setArtPartTranslation(int partId, float xOffset, float yOffset,
47  float zOffset, bool xEnable, bool yEnable, bool zEnable);
48 
50  virtual void setArtPartOrientation(int partId, float yaw, float pitch, float roll,
51  bool yawEnable, bool pitchEnable, bool rollEnable);
52 
54  virtual void setArtPartLinearRate(int partId, float xRate, float yRate,
55  float zRate);
56 
58  virtual void setArtPartAngularRate(int partId, float yawRate, float pitchRate,
59  float rollRate);
60 
62  virtual void setArtPartEnable(int partId, bool trueFalse);
63 
65  virtual void setAnimationSpeed(const std::string& animationName, double speed);
66 
68  virtual void setAnimationFrame(const std::string& animationName, int frame);
69 
71  virtual void setActiveRegionState( const std::string& regionName, bool state );
72 
74  virtual void setAnimationRange(const std::string& animationName,
75  int firstFrameIndex, int lastFrameIndex);
76 
77  protected:
78  DtArticulatedModelAgent* myArticulatedModel;
79 
80  std::map<int, DtTaitBryan> myLastArtPartOrientation;
81  std::map<int, DtVector> myLastArtPartTranslation;
82  std::map<int, DtVector> myArtPartAngularRate;
83  std::map<int, DtVector> myArtPartLinearRate;
84  };
85 
90 }
91 
92 #endif
93 
94 
95 
96 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)