VR-Forces 4.1 Class Documentation
DtEntityKinStateVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
14 
15 class DtVector;
16 class DtTaitBryan;
17 
18 namespace makVrv
19 {
20  class DtEntityStateListener;
21 
22  class DtDeadReckonGroundClampUpdaterAgent;
23  class DtAttachableDeadReckonUpdaterAgent;
24 
30  {
31  public:
34  DtStateListener& listener, int modelSet);
35 
37  virtual ~DtEntityKinStateVisualizer();
38 
40  virtual void setLocation(const DtVector&);
41 
43  virtual void setOrientation(const DtTaitBryan&);
44 
46  virtual void setVelocity(const DtVector&);
47 
49  virtual void setAngularVelocity(const DtVector&);
50 
52  virtual void setAcceleration(const DtVector&);
53 
54  virtual void setDeadReckoning(bool position, bool velocity,
55  bool orientation);
56 
58  virtual void setEmbarked(const DtUniqueID& id);
59 
61  virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
62 
64  void setSmoothingEnabled(bool enabled);
65 
67  void setSmoothingPeriod(float scale);
68 
70 
72  virtual void setGroundClampingCullingEnabled(bool enabled);
73 
75  virtual void setGroundClampingScale(float scale);
76 
78  virtual void setGroundClamping(bool enabled);
79 
82  virtual void setGroundClampingMode(
84 
86  virtual void setPossibleGroundClampingModes(
88 
90  virtual DtGroundClampingUpdater::GroundClampingMode groundClampingMode();
91 
92  void setAutoEnableGroundClamping(bool b)
93  {
94  myAutoEnableGroundClamping = b;
95  }
96 
97  bool autoEnableGroundClamping() const
98  {
99  return myAutoEnableGroundClamping;
100  }
101 
102  virtual void resetSpatialAttributes();
103 
104  DtEntityStateListener& entityStateListener()
105  {
106  return *myEntityListener;
107  }
108 
110  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
111 
113  static const DtStateVisualizer::TypeInfo& theTypeInfo();
114 
115  protected:
116 
117  virtual void createModelAgents();
118  virtual void destroyModelAgents();
119  virtual void setModelDefinitionForAgents();
120  virtual void embarkedStateChanged();
121 
122  void createEmbarkedUpdater();
123  void createUpdater();
124 
125  virtual void initializeObjectAgent();
126 
127  protected:
128 
129  DtDeadReckonGroundClampUpdaterAgent* myDeadReckonGroundClampUpdaterAgent;
130  DtAttachableDeadReckonUpdaterAgent* myEmbarkedUpdaterAgent;
131 
134 
140 
143 
144  std::string myMotionModel;
145 
148  bool myDRPos;
149  bool myDRVel;
150  bool myDROri;
151 
154  };
155 
156 
161 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)