VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCigiCharacterEntity.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2017 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
17 
18 namespace makVrv
19 {
20  class DtCharacterModelAgent;
21  class DtCharacterModel;
22  class DtSceneObjectAgent;
23  class DtSurfaceClampingUpdaterAgent;
24  class DtWaterClampingUpdaterAgent;
25 
29  {
30  public:
33  DtAgentManagerInterface& sceneInterface, int entityId, int entityType);
34 
36  virtual ~DtCigiCharacterEntity();
37 
44  virtual void init();
45 
48  virtual void uninit();
49 
52  virtual void restart();
53 
57  virtual void setPosition(const DtGeodeticCoord& pos, bool force=false);
58 
62  virtual void setOrientation(const DtTaitBryan& orientation, bool force=false);
63 
65  virtual void setCharacterPaused( bool paused );
66 
68  virtual void setCharacterActionSpeed( float speed );
69 
73  virtual void unforceAction();
74 
76  virtual void setCharacterAction( const std::string& action );
77 
79  virtual void setCharacterAction( const std::string& action, bool paused, double speed );
80 
82  virtual void setCharacterPosture( DtCharacterModel::Posture posture );
83 
86  virtual void setWeaponDeployed(bool deployed);
87 
89  virtual bool weaponDeployed() const;
90 
94  virtual void setAlive( bool alive );
95 
97  virtual bool alive() const;
98 
101  virtual void setWaterlineOriginOffset( float offset );
102 
104  virtual void startEmbarked();
105 
107  virtual void endEmbarked();
108 
110  virtual void setArtPartTranslation(int partId, float xOffset, float yOffset,
111  float zOffset, bool xEnable, bool yEnable, bool zEnable);
112 
114  virtual void setArtPartOrientation(int partId, float yaw, float pitch, float roll,
115  bool yawEnable, bool pitchEnable, bool rollEnable);
116 
118  virtual void setArtPartLinearRate(int partId, float xRate, float yRate,
119  float zRate);
120 
122  virtual void setArtPartAngularRate(int partId, float yawRate, float pitchRate,
123  float rollRate);
124 
126  virtual void setArtPartEnable(int partId, bool trueFalse);
127 
128  protected:
130  virtual void startDeadReckoning();
131 
133  virtual void endDeadReckoning();
134 
137  virtual void startGroundClamping();
138 
140  virtual void endGroundClamping();
141 
142  protected:
143  DtCharacterModelAgent* myCharacterModel;
147  bool myAlive;
148  std::string myCharacterAction;
151 
152  DtSurfaceClampingUpdaterAgent* mySurfaceClampingUpdaterAgent;
153  DtWaterClampingUpdaterAgent* myWaterClampingUpdaterAgent;
154  };
155 
160 }
161 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)