VR-Forces 4.3.1 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  void setShowBorder(bool b);
135 
137  virtual DtSymbolDecoration* findSymbolDecoration(
138  const std::string& decorationId);
139 
141  virtual void setOffset(double x, double y);
142 
144  const DtVector& offset() const;
145 
146  protected:
147 
149  virtual void setBorderState();
150 
152  virtual void updateColor();
153 
154  protected:
155 
157  typedef boost::unordered_map<std::string, DtSymbolDecoration*>
159 
162 
165 
168 
170  DtAttributeGroupWidgetAgent* myWidget;
171 
174  DtProjectedWidgetModelAgent* myWidgetModel;
175 
178  DtSymbolDecorationUpdaterAgent* myWidgetUpdater;
179 
181  float myForegroundColor[3];
182 
184  float myBackgroundColor[4];
185 
188  float myForceColor[3];
189 
191  float myScale;
192 
196 
199 
202 
205 
208 
210  std::string myFontFile;
211 
213  std::string myDecorationSetName;
214 
218  std::string myDecorationTag;
219 
221  float myTextR;
222 
224  float myTextG;
225 
227  float myTextB;
228 
230  float myTextA;
231 
233  unsigned int myNextLabelIndex;
234 
236  bool myEnabled;
237 
240 
243 
245  unsigned int mySelectedGroupId;
246 
248  unsigned int mySelectedTextGroupId;
249 
252 
255 
258 
259  private:
260 
261  void cleanup();
262 
263  };
264 
265 }

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)