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.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!)
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
showBackgroundDecals
;
106
bool
showGrid
;
108
SUMOReal
gridXSize
,
gridYSize
;
110
111
113
114
115
#ifdef HAVE_INTERNAL
116
117
GUIColorer
edgeColorer;
118
120
static
bool
UseMesoSim;
121
#endif
122
123
GUIColorer
laneColorer
;
125
bool
laneShowBorders
;
127
bool
showLinkDecals
;
129
bool
showRails
;
130
// Setting bundles for optional drawing names with size and color
131
GUIVisualizationTextSettings
edgeName
,
internalEdgeName
,
streetName
;
132
133
bool
hideConnectors
;
135
float
laneWidthExaggeration
;
137
138
140
141
143
GUIColorer
vehicleColorer
;
145
int
vehicleQuality
;
147
float
minVehicleSize
;
149
float
vehicleExaggeration
;
151
bool
showBlinker
;
153
bool
drawLaneChangePreference
;
155
bool
drawMinGap
;
156
// Setting bundles for optional drawing vehicle names
157
GUIVisualizationTextSettings
vehicleName
;
159
160
162
163
165
int
junctionMode
;
167
bool
drawLinkTLIndex
;
169
bool
drawLinkJunctionIndex
;
170
// Setting bundles for optional drawing junction names
171
GUIVisualizationTextSettings
junctionName
,
internalJunctionName
;
173
174
176
bool
showLane2Lane
;
177
178
180
181
183
int
addMode
;
185
float
minAddSize
;
187
float
addExaggeration
;
188
// Setting bundles for optional drawing additional names
189
GUIVisualizationTextSettings
addName
;
191
192
194
195
197
float
minPOISize
;
199
float
poiExaggeration
;
200
// Setting bundles for optional drawing poi names
201
GUIVisualizationTextSettings
poiName
;
203
205
bool
showSizeLegend
;
206
208
SUMOReal
scale
;
209
211
bool
gaming
;
212
214
int
editMode
;
215
217
SUMOReal
selectionScale
;
218
222
void
save
(
OutputDevice
& dev)
const
;
223
227
size_t
getLaneEdgeMode
()
const
;
228
232
GUIColorScheme
&
getLaneEdgeScheme
();
233
235
bool
operator==
(
const
GUIVisualizationSettings
& vs2);
236
};
237
238
239
#endif
240
241
/****************************************************************************/
242
build
buildd
sumo-0.16.0~dfsg
src
utils
gui
settings
GUIVisualizationSettings.h
Generated on Tue Apr 16 2013 01:32:17 for SUMO - Simulation of Urban MObility by
1.8.3.1