VR-Forces Development_Version 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) 2016 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 DtSceneObjectAgent;
22  class DtSurfaceClampingUpdaterAgent;
23  class DtWaterClampingUpdaterAgent;
24 
28  {
29  public:
32  DtAgentManagerInterface& sceneInterface, int entityId, int entityType);
33 
35  virtual ~DtCigiCharacterEntity();
36 
40  virtual void setPosition(const DtGeodeticCoord& pos, bool force=false);
41 
45  virtual void setOrientation(const DtTaitBryan& orientation, bool force=false);
46 
48  virtual void setCharacterPaused( bool paused );
49 
51  virtual void setCharacterActionSpeed( float speed );
52 
56  virtual void unforceAction();
57 
59  virtual void setCharacterAction( const std::string& action );
60 
62  virtual void setCharacterAction( const std::string& action, bool paused, double speed );
63 
65  virtual void setCharacterPosture( DtCharacterModel::Posture posture );
66 
69  virtual void setWeaponDeployed(bool deployed);
70 
72  virtual bool weaponDeployed() const;
73 
77  virtual void setAlive( bool alive );
78 
80  virtual bool alive() const;
81 
84  virtual void setWaterlineOriginOffset( float offset );
85 
87  virtual void startEmbarked();
88 
90  virtual void endEmbarked();
91 
93  virtual void setArtPartTranslation(int partId, float xOffset, float yOffset,
94  float zOffset, bool xEnable, bool yEnable, bool zEnable);
95 
97  virtual void setArtPartOrientation(int partId, float yaw, float pitch, float roll,
98  bool yawEnable, bool pitchEnable, bool rollEnable);
99 
101  virtual void setArtPartLinearRate(int partId, float xRate, float yRate,
102  float zRate);
103 
105  virtual void setArtPartAngularRate(int partId, float yawRate, float pitchRate,
106  float rollRate);
107 
109  virtual void setArtPartEnable(int partId, bool trueFalse);
110 
111  protected:
113  virtual void startDeadReckoning();
114 
116  virtual void endDeadReckoning();
117 
120  virtual void startGroundClamping();
121 
123  virtual void endGroundClamping();
124 
125  protected:
126  DtCharacterModelAgent* myCharacterModel;
130  bool myAlive;
131  std::string myCharacterAction;
133 
134  DtSurfaceClampingUpdaterAgent* mySurfaceClampingUpdaterAgent;
135  DtWaterClampingUpdaterAgent* myWaterClampingUpdaterAgent;
136  };
137 
142 }
143 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)