VR-Forces 4.1 Class Documentation
DtVrlinkAggregateKinStateVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrlinkAggregateKinStateVisualizer.h,v $ $Revision: 1.43 $ $SceneObject: Exp $
7 ******************************************************************************/
8 
13 
14 #pragma once
15 
18 
19 namespace makVrv
20 {
21  namespace DT_PROTOCOL_NAMESPACE
22  {
28  {
29  protected:
30  enum DirtyBits
31  {
32  DirtyLocation = 1 << 0,
33  DirtyVelocity = 1 << 1,
34  DirtyAcceleration = 1 << 2,
35  DirtyOrientation = 1 << 3,
36  DirtyRotationalVelocity = 1 << 4,
37  };
38 
39  public:
40  DtVrlinkAggregateKinStateVisualizer(DtBaseConnection& simulation, DtStateListener& listener, int modelSet);
41 
43 
44  public:
45 
47  virtual void createModelAgents();
48 
50  virtual void setLocation(const DtVector&);
51 
53  virtual void setOrientation(const DtTaitBryan&);
54 
56  virtual void setVelocity(const DtVector&);
57 
59  virtual void setAngularVelocity(const DtVector&);
60 
62  virtual void setAcceleration(const DtVector&);
63 
65  bool anythingDirty() const;
66 
67  protected:
69  virtual void postUpdate();
70 
71  void flagLocationDirty();
72  void flagVelocityDirty();
73  void flagAccelerationDirty();
74  void flagOrientationDirty();
75  void flagRotationalVelocityDirty();
76 
77  void flagAllSpatialDirty();
78 
79  void makeClean();
80 
82  virtual void setHostGlobalId(const std::string& id);
83 
86  virtual void slot_aggregateCreated(DtVrlinkAggregateStateListener& esl);
87 
89  virtual void resetSpatialAttributes();
90 
92  virtual void setAlgorithm();
93 
95  virtual void setEntityType(const std::string& type);
96 
97  virtual void setSmoothingEnabled(bool b);
98 
99  protected:
100  unsigned int myDirtyBits;
101 
104 
107 
109  DtGlobalObjectDesignator myHostId;
110  };
111 
113  }
114 }

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)