VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSymbolDecorationVisualizer.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  **************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
17 
19 
20 #include <boost/unordered_map.hpp>
21 
22 namespace makVrv
23 {
24 
25  class DtAttributeGroupWidgetAgent;
26  class DtProjectedWidgetModelAgent;
27  class DtSymbolDecorationUpdaterAgent;
28  class DtOverlayDirectionLineModelAgent;
29  class DtHeadingLineUpdaterAgent;
30  class DtSignalConnectionManager;
31  class DtLocationSymbolDecoration;
32  class DtAccelerationSymbolDecoration;
33  class DtVelocitySymbolDecoration;
34  class DtOrientationSymbolDecoration;
35 
39  : public DtStateVisualizer
40  {
41  public:
42 
49  DtStateListener& listener, int modelSet,
50  const std::string& decorationTag );
51 
55 
57  virtual void createModelAgents();
58 
60  virtual void destroyModelAgents();
61 
63  virtual void setModelDefinitionForAgents();
64 
66  virtual void setOrigin(const DtVector&);
67 
70  virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
71 
74  virtual void setSelected( bool isSelected );
75 
77  virtual DtAttributeGroupWidgetAgent* widget();
78 
80  virtual DtSymbolDecorationUpdaterAgent* widgetUpdater();
81 
83  virtual unsigned int nextLabelIndex();
84 
86  virtual DtSceneObjectAgent* sceneObject();
87 
91  virtual void setDecorationsVisible(bool);
92 
97  virtual void setForceColor(float r, float g, float b, float a);
98 
100  virtual void slot_decorationEnabled(const std::string& decoration);
101 
103  virtual void slot_decorationDisabled(const std::string& decoration);
104 
106  virtual void slot_foregroundColorChanged( float r, float g, float b );
107 
109  virtual void slot_backgroundColorChanged( float r, float g, float b );
110 
112  virtual void slot_backgroundOpacityChanged( float a );
113 
115  virtual void slot_shadowTextChanged( bool enabled );
116 
119  virtual void slot_symbolDecorationSetChanged(const std::string& setId);
120 
122  virtual void slot_setScale(float scale);
123 
125  virtual void slot_setEnabled(bool enabled);
126 
128  virtual void slot_colorByForceChanged(bool enabled);
129 
131  virtual void setScale(float scale);
132 
134  virtual void setShowBorder(bool b);
135 
137 
138 
139  virtual bool useHighestTerrainLod() const;
140  virtual void setUseHighestTerrainLod( bool trueOrFalse );
142 
144  virtual DtSymbolDecoration* findSymbolDecoration(
145  const std::string& decorationId);
146 
148  virtual void setOffset(double x, double y);
149 
151  const DtVector& offset() const;
152 
153  protected:
154 
156  virtual void setBorderState();
157 
159  virtual void updateColor();
160 
161  protected:
162 
164  typedef boost::unordered_map<std::string, DtSymbolDecoration*>
166 
170 
173 
176 
178  DtAttributeGroupWidgetAgent* myWidget;
179 
182  DtProjectedWidgetModelAgent* myWidgetModel;
183 
186  DtSymbolDecorationUpdaterAgent* myWidgetUpdater;
187 
189  float myForegroundColor[3];
190 
192  float myBackgroundColor[4];
193 
196  float myForceColor[3];
197 
199  float myScale;
200 
204 
207 
210 
213 
216 
218  std::string myFontFile;
219 
221  std::string myDecorationSetName;
222 
226  std::string myDecorationTag;
227 
229  float myTextR;
230 
232  float myTextG;
233 
235  float myTextB;
236 
238  float myTextA;
239 
241  unsigned int myNextLabelIndex;
242 
244  bool myEnabled;
245 
248 
251 
253  unsigned int mySelectedGroupId;
254 
256  unsigned int mySelectedTextGroupId;
257 
260 
263 
266 
270 
271  private:
272 
273  void cleanup();
274 
275  };
276 
277 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)