VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCylinderStateVisualizer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
16 
17 #include <matrix/vlVector.h>
18 
19 class DtTaitBryan;
20 
21 namespace makVrv
22 {
23  class DtCylinderModelAgent;
24  class DtArticulatingCylinderModelAgent;
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 DtVector32& 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* myAttachedUpdaterAgent;
110  };
111 
116 }
117 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)