VR-Forces 4.1 Class Documentation
DtSymbolDecorationVisualizer.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>
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 
67  virtual void setVisualizerDefinition(const DtVisualizerDefinition& visDef);
68 
71  virtual void setSelected( bool isSelected );
72 
74  virtual DtAttributeGroupWidgetAgent* widget();
75 
77  virtual DtSymbolDecorationUpdaterAgent* widgetUpdater();
78 
80  virtual unsigned int nextLabelIndex();
81 
83  virtual DtSceneObjectAgent* sceneObject();
84 
88  virtual void setDecorationsVisible(bool);
89 
91  virtual void slot_decorationEnabled(const std::string& decoration);
92 
94  virtual void slot_decorationDisabled(const std::string& decoration);
95 
97  virtual void slot_foregroundColorChanged( float r, float g, float b );
98 
100  virtual void slot_backgroundColorChanged( float r, float g, float b );
101 
103  virtual void slot_backgroundOpacityChanged( float a );
104 
106  virtual void slot_shadowTextChanged( bool enabled );
107 
109  virtual void slot_setScale(float scale);
110 
112  virtual void slot_setEnabled(bool enabled);
113 
115  virtual void setScale(float scale);
116 
118  void setShowBorder(bool b);
119 
121  virtual DtSymbolDecoration* findSymbolDecoration(
122  const std::string& decorationId);
123 
125  virtual void setOffset(double x, double y);
126 
128  const DtVector& offset() const;
129 
130  protected:
131 
133  virtual void setBorderState();
134 
135  protected:
136 
138  typedef boost::unordered_map<std::string, DtSymbolDecoration*>
140 
143 
146 
149 
151  DtAttributeGroupWidgetAgent* myWidget;
152 
155  DtProjectedWidgetModelAgent* myWidgetModel;
156 
159  DtSymbolDecorationUpdaterAgent* myWidgetUpdater;
160 
162  float myForegroundColor[3];
163 
165  float myBackgroundColor[4];
166 
168  float myScale;
169 
173 
176 
179 
182 
185 
187  std::string myFontFile;
188 
190  std::string myDecorationSetName;
191 
195  std::string myDecorationTag;
196 
198  float myTextR;
199 
201  float myTextG;
202 
204  float myTextB;
205 
207  float myTextA;
208 
210  unsigned int myNextLabelIndex;
211 
213  bool myEnabled;
214 
217 
219  unsigned int mySelectedGroupId;
220 
222  unsigned int mySelectedTextGroupId;
223 
226 
229 
230  private:
231 
232  void cleanup();
233 
234  };
235 
236 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)