VR-Forces 4.3 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 class DtVector;
18 class DtTaitBryan;
19 
20 namespace makVrv
21 {
22  class DtCylinderModelAgent;
23  class DtArticulatingCylinderModelAgent;
24  class DtAttachableUpdaterAgent;
25 
32  {
33  public:
36  DtStateListener& listener, int modelSet);
37 
39  virtual ~DtCylinderStateVisualizer();
40 
42  virtual void setDiameters(double length, double width, double height);
43 
45  virtual void setColor(float r,float g,float b,float a);
46 
48  virtual void setFlashing(bool flashing);
49 
51  virtual void setStartLocation(const DtVector& pos);
52 
54  virtual void setEndLocation(const DtVector& endpoint);
55 
58  virtual void setOrientation(const DtTaitBryan& orientation);
59 
65  virtual void setAttached(DtUniqueID id, int vtx, double percentage);
66 
68  virtual void setHostId(const std::string& id, int vtx, double percentage);
69 
71  virtual void setOffset(const DtVector& offset);
72 
75  virtual void setCylinderType(
77 
79  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
80 
82  static const DtStateVisualizer::TypeInfo& theTypeInfo();
83 
84  protected:
85  virtual void setVisible(bool yesNo);
86 
87  virtual void createModelAgents();
88 
89  virtual void destroyModelAgents();
90 
91  virtual void setModelDefinitionForAgents();
92 
93  virtual void setFixedAttached(DtUniqueID id, int vtx, double percentage);
94 
95  virtual void setArticulatedAttached(DtUniqueID id, int vtx,
96  double percentage);
97 
98  protected:
99  DtCylinderModelAgent* myFixedCylinderModelAgent;
101 
102  DtArticulatingCylinderModelAgent* myArticulatingCylinderModelAgent;
105 
106  DtAttachableUpdaterAgent* myAttachedUpdaterAgent;
109  };
110 
115 }
116 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)