SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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-sim.org/
12
// Copyright (C) 2001-2014 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!)
56
struct
GUIVisualizationTextSettings
{
57
GUIVisualizationTextSettings
(
bool
_show,
float
_size,
RGBColor
_color) :
58
show
(_show),
size
(_size),
color
(_color) {}
59
60
bool
show
;
61
float
size
;
62
RGBColor
color
;
63
64
bool
operator==
(
const
GUIVisualizationTextSettings
& other) {
65
return
show
== other.
show
&&
66
size
== other.
size
&&
67
color
== other.
color
;
68
}
69
bool
operator!=
(
const
GUIVisualizationTextSettings
& other) {
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
84
class
GUIVisualizationSettings
{
85
public
:
86
88
GUIVisualizationSettings
();
89
91
std::string
name
;
92
94
bool
antialiase
;
96
bool
dither
;
97
99
100
102
RGBColor
backgroundColor
;
104
bool
showGrid
;
106
SUMOReal
gridXSize
,
gridYSize
;
108
109
111
112
113
#ifdef HAVE_INTERNAL
114
115
GUIColorer
edgeColorer;
116
118
static
bool
UseMesoSim;
119
#endif
120
121
GUIColorer
laneColorer
;
123
bool
laneShowBorders
;
125
bool
showLinkDecals
;
127
bool
showRails
;
128
// Setting bundles for optional drawing names with size and color
129
GUIVisualizationTextSettings
edgeName
,
internalEdgeName
,
cwaEdgeName
,
streetName
;
130
131
bool
hideConnectors
;
133
float
laneWidthExaggeration
;
135
136
138
139
141
GUIColorer
vehicleColorer
;
143
int
vehicleQuality
;
145
float
minVehicleSize
;
147
float
vehicleExaggeration
;
149
bool
showBlinker
;
151
bool
drawLaneChangePreference
;
153
bool
drawMinGap
;
154
// Setting bundles for optional drawing vehicle names
155
GUIVisualizationTextSettings
vehicleName
;
157
158
160
161
163
GUIColorer
personColorer
;
165
int
personQuality
;
167
float
minPersonSize
;
169
float
personExaggeration
;
170
// Setting bundles for optional drawing person names
171
GUIVisualizationTextSettings
personName
;
173
174
176
177
179
GUIColorer
junctionColorer
;
181
bool
drawLinkTLIndex
;
183
bool
drawLinkJunctionIndex
;
184
// Setting bundles for optional drawing junction names
185
GUIVisualizationTextSettings
junctionName
,
internalJunctionName
;
187
bool
showLane2Lane
;
189
bool
drawJunctionShape
;
191
192
194
195
197
// @todo decouple addExageration for POIs, Polygons, Triggers etc
198
int
addMode
;
200
float
minAddSize
;
202
float
addExaggeration
;
203
// Setting bundles for optional drawing additional names
204
GUIVisualizationTextSettings
addName
;
206
207
209
210
212
float
minPOISize
;
214
float
poiExaggeration
;
215
// Setting bundles for optional drawing poi names
216
GUIVisualizationTextSettings
poiName
;
217
219
float
minPolySize
;
221
float
polyExaggeration
;
222
// Setting bundles for optional drawing poi names
223
GUIVisualizationTextSettings
polyName
;
225
227
bool
showSizeLegend
;
228
230
SUMOReal
scale
;
231
233
bool
gaming
;
234
236
int
editMode
;
237
239
SUMOReal
selectionScale
;
240
244
void
save
(
OutputDevice
& dev)
const
;
245
249
size_t
getLaneEdgeMode
()
const
;
250
254
GUIColorScheme
&
getLaneEdgeScheme
();
255
257
bool
operator==
(
const
GUIVisualizationSettings
& vs2);
258
};
259
260
261
#endif
262
263
/****************************************************************************/
264
tmp
buildd
sumo-0.21.0+dfsg
src
utils
gui
settings
GUIVisualizationSettings.h
Generated on Thu Nov 20 2014 19:49:54 for SUMO - Simulation of Urban MObility by
1.8.1.2