VR-Forces 4.3 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 #include <matrix/vlTaitBryan.h>
20 
21 #include <map>
22 
23 namespace makVrv
24 {
25  class DtCigiConnection;
26  class DtAgentManagerInterface;
27 
28  class DtArticulatedModelAgent;
29 
33  {
34  public:
36  DtCigiEntity(DtCigiConnection& connection,
37  DtAgentManagerInterface& mySceneInterface,
38  int entityId, int entityType);
39 
41  virtual ~DtCigiEntity();
42 
44  virtual void setState(int stateId, int stateValue);
45 
47  virtual void setArtPartTranslation(int partId, float xOffset, float yOffset,
48  float zOffset, bool xEnable, bool yEnable, bool zEnable);
49 
51  virtual void setArtPartOrientation(int partId, float yaw, float pitch, float roll,
52  bool yawEnable, bool pitchEnable, bool rollEnable);
53 
55  virtual void setArtPartLinearRate(int partId, float xRate, float yRate,
56  float zRate);
57 
59  virtual void setArtPartAngularRate(int partId, float yawRate, float pitchRate,
60  float rollRate);
61 
63  virtual void setArtPartEnable(int partId, bool trueFalse);
64 
66  virtual void setAnimationSpeed(const std::string& animationName, double speed);
67 
69  virtual void setAnimationFrame(const std::string& animationName, int frame);
70 
72  virtual void setActiveRegionState( const std::string& regionName, bool state );
73 
75  virtual void setAnimationRange(const std::string& animationName,
76  int firstFrameIndex, int lastFrameIndex);
77 
78  protected:
79  DtArticulatedModelAgent* myArticulatedModel;
80 
81  std::map<int, DtTaitBryan> myLastArtPartOrientation;
82  std::map<int, DtVector> myLastArtPartTranslation;
83  std::map<int, DtVector> myArtPartAngularRate;
84  std::map<int, DtVector> myArtPartLinearRate;
85  };
86 
91 }
92 
93 #endif
94 
95 
96 
97 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)