VR-Forces 4.1 Class Documentation
DtCylinderStateVisualizer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
16 
17 class DtVector;
18 class DtTaitBryan;
19 
20 namespace makVrv
21 {
22  class DtCylinderModelAgent;
23  class DtArticulatingCylinderModelAgent;
24  class DtAttachableDeadReckonUpdaterAgent;
25  class DtAttachableUpdaterAgent;
26 
33  {
34  public:
37  DtStateListener& listener, int modelSet);
38 
40  virtual ~DtCylinderStateVisualizer();
41 
43  virtual void setDiameters(double length, double width, double height);
44 
46  virtual void setColor(float r,float g,float b,float a);
47 
49  virtual void setFlashing(bool flashing);
50 
52  virtual void setStartLocation(const DtVector& pos);
53 
55  virtual void setEndLocation(const DtVector& endpoint);
56 
59  virtual void setOrientation(const DtTaitBryan& orientation);
60 
66  virtual void setAttached(DtUniqueID id, int vtx, double percentage);
67 
69  virtual void setHostId(const std::string& id, int vtx, double percentage);
70 
72  virtual void setOffset(const DtVector& offset);
73 
76  virtual void setCylinderType(
78 
80  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
81 
83  static const DtStateVisualizer::TypeInfo& theTypeInfo();
84 
85  protected:
86  virtual void setVisible(bool yesNo);
87 
88  virtual void createModelAgents();
89 
90  virtual void destroyModelAgents();
91 
92  virtual void setModelDefinitionForAgents();
93 
94  virtual void setFixedAttached(DtUniqueID id, int vtx, double percentage);
95 
96  virtual void setArticulatedAttached(DtUniqueID id, int vtx,
97  double percentage);
98 
99  protected:
100  DtCylinderModelAgent* myFixedCylinderModelAgent;
102 
103  DtArticulatingCylinderModelAgent* myArticulatingCylinderModelAgent;
106 
107  DtAttachableUpdaterAgent* myUpdaterAgent;
108  DtAttachableDeadReckonUpdaterAgent* myDRUpdaterAgent;
111  };
112 
117 }
118 

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)