SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIVisualizationSettings.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Stores the information about how to visualize structures
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef GUIVisualizationSettings_h
23 #define GUIVisualizationSettings_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <vector>
37 #include <map>
38 #include <utils/common/RGBColor.h>
39 #include <utils/common/ToString.h>
40 #include "GUIColorer.h"
41 
42 
43 // ===========================================================================
44 // class declarations
45 // ===========================================================================
46 class BaseSchemeInfoSource;
47 class OutputDevice;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
53 
54 // cannot declare this as inner class because it needs to be used in forward
55 // declaration (@todo fix inclusion order by removing references to guisim!)
57  GUIVisualizationTextSettings(bool _show, float _size, RGBColor _color) :
58  show(_show), size(_size), color(_color) {}
59 
60  bool show;
61  float size;
63 
65  return show == other.show &&
66  size == other.size &&
67  color == other.color;
68  }
70  return !((*this) == other);
71  }
72 
73  std::string print(const std::string& name) const {
74  return name + "_show=\"" + toString(show) + "\" " +
75  name + "_size=\"" + toString(size) + "\" " +
76  name + "_color=\"" + toString(color) + "\" ";
77  }
78 };
79 
85 public:
86 
89 
91  std::string name;
92 
94  bool antialiase;
96  bool dither;
97 
99 
100 
106  bool showGrid;
110 
111 
113 
114 
115 #ifdef HAVE_MESOSIM
116 
117  GUIColorer edgeColorer;
118 
120  static bool UseMesoSim;
121 #endif
122 
129  bool showRails;
130  // Setting bundles for optional drawing names with size and color
132 
135 
136 
138 
139 
154  // Setting bundles for optional drawing vehicle names
157 
158 
160 
161 
168  // Setting bundles for optional drawing junction names
171 
172 
175 
176 
178 
179 
181  int addMode;
183  float minAddSize;
186  // Setting bundles for optional drawing additional names
189 
190 
192 
193 
195  float minPOISize;
198  // Setting bundles for optional drawing poi names
201 
204 
207 
209  bool gaming;
210 
212  int editMode;
213 
216 
220  void save(OutputDevice& dev) const;
221 
225  size_t getLaneEdgeMode() const;
226 
231 
233  bool operator==(const GUIVisualizationSettings& vs2);
234 };
235 
236 
237 #endif
238 
239 /****************************************************************************/
240