VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Dt3DLineStateVisualizer.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 
12 #include <vrvCore/vrvCore.h>
15 #include <matrix/vlVector.h>
16 #include <vrvCore/Dt3DSegmentedLineModelAgent.hpp>
18 
19 namespace makVrv
20 {
21  class DtAttachableUpdaterAgent;
22 
27  {
28  public:
31  DtStateListener& listener, int modelSet);
32 
34  virtual ~Dt3DLineStateVisualizer();
35 
37  virtual void setStartLocation(const DtVector& pos);
38 
40  virtual void setEndLocation(const DtVector& endpoint);
41 
43  virtual void setFlashing(bool flashing);
44 
46  virtual void setStyleSegments(const std::vector<double>& segmentPercentages);
47 
49  virtual void setSegmentColor(unsigned int segmentIndex, float r,
50  float g, float b, float a);
51 
53  virtual void setSegmentLightningStyle(unsigned int segmentIndex,
54  bool enableLightningStyle);
55 
57  virtual void setSegmentStartArrow(unsigned int segmentIndex,
58  bool enableArrow);
59 
61  virtual void setSegmentEndArrow(unsigned int segmentIndex,
62  bool enableArrow);
63 
65  virtual void setSegmentStipplePattern(unsigned int segmentIndex,
66  unsigned int stipplePattern);
67 
69  virtual void setSegmentWidth(unsigned int segmentIndex,double width);
70 
73  virtual void setStopOnTerrainIntersection(bool enabled);
74 
80  virtual void setAttached(DtUniqueID id, int vtx, double percentage);
81 
83  virtual void setHostId(const std::string& id, int vtx, double percentage);
84 
86  virtual void setOffset(const DtVector& offset);
87 
89  virtual void setProjected(bool projected);
90 
92  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
93 
95  static const DtStateVisualizer::TypeInfo& theTypeInfo();
96 
97  protected:
101  virtual void setVisible(bool yesNo);
102 
104  virtual void createModelAgents();
105 
113  virtual void destroyModelAgents();
114 
116  virtual void setModelDefinitionForAgents();
117 
118  protected:
119  Dt3DSegmentedLineModelAgent* myLineModelAgent;
120  DtAttachableUpdaterAgent* myUpdaterAgent;
124  };
125 
130 }
131 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)