VR-Forces 4.1.1 Class Documentation
DtCigiEntity.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtCigiEntity.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
12 
13 
14 #ifndef DtCigiEntity_H_
15 #define DtCigiEntity_H_
16 
17 #include <vrvCigi/vrvCigi.h>
18 
20 
21 #include <matrix/geodCoord.h>
22 #include <matrix/vlTaitBryan.h>
23 
24 #include <map>
25 
26 namespace makVrv
27 {
28  class DtCigiConnection;
29  class DtAgentManagerInterface;
30 
31  class DtArticulatedModelAgent;
32 
36  {
37  public:
39  DtCigiEntity(DtCigiConnection& connection,
40  DtAgentManagerInterface& mySceneInterface,
41  int entityId, int entityType);
42 
44  virtual ~DtCigiEntity();
45 
47  virtual void setState(int stateId, int stateValue);
48 
50  virtual void setArtPartTranslation(int partId, float xOffset, float yOffset,
51  float zOffset, bool xEnable, bool yEnable, bool zEnable);
52 
54  virtual void setArtPartOrientation(int partId, float yaw, float pitch, float roll,
55  bool yawEnable, bool pitchEnable, bool rollEnable);
56 
58  virtual void setArtPartLinearRate(int partId, float xRate, float yRate,
59  float zRate);
60 
62  virtual void setArtPartAngularRate(int partId, float yawRate, float pitchRate,
63  float rollRate);
64 
66  virtual void setArtPartEnable(int partId, bool trueFalse);
67 
69  virtual void setAnimationSpeed(const std::string& animationName, double speed);
70 
72  virtual void setAnimationFrame(const std::string& animationName, int frame);
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 }
87 
88 #endif
89 
90 
91 
92 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)