39 #ifdef CHECK_MEMORY_LEAKS
41 #endif // CHECK_MEMORY_LEAKS
47 bool GUIVisualizationSettings::UseMesoSim =
false;
54 : name(
""), antialiase(false), dither(false),
56 showGrid(false), gridXSize(100), gridYSize(100),
57 laneShowBorders(false), showLinkDecals(true), showRails(true),
58 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
59 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
60 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
61 streetName(false, 55,
RGBColor::YELLOW),
62 hideConnectors(false), laneWidthExaggeration(1),
63 vehicleQuality(0), minVehicleSize(1), vehicleExaggeration(1), showBlinker(true),
64 drawLaneChangePreference(false), drawMinGap(false),
65 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
66 personQuality(0), minPersonSize(1), personExaggeration(1),
67 personName(false, 50,
RGBColor(0, 153, 204, 255)),
68 drawLinkTLIndex(false), drawLinkJunctionIndex(false),
69 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
70 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
71 showLane2Lane(false), drawJunctionShape(true), addMode(0), minAddSize(1), addExaggeration(1),
72 addName(false, 50,
RGBColor(255, 0, 128, 255)),
73 minPOISize(0), poiExaggeration(1), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
74 minPolySize(0), polyExaggeration(1), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
84 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(179, 179, 179, 255),
"unselected",
true);
270 edgeColorer.addScheme(scheme);
274 edgeColorer.addScheme(scheme);
277 edgeColorer.addScheme(scheme);
280 edgeColorer.addScheme(scheme);
283 edgeColorer.addScheme(scheme);
286 edgeColorer.addScheme(scheme);
289 edgeColorer.addScheme(scheme);
303 return edgeColorer.getActive();
314 return edgeColorer.getScheme();
323 dev <<
"<viewsettings>\n";
324 dev <<
" <scheme name=\"" <<
name <<
"\">\n";
325 dev <<
" <opengl antialiase=\"" <<
antialiase <<
"\" dither=\"" <<
dither <<
"\"/>\n";
340 edgeColorer.save(dev);
342 dev <<
" </edges>\n";
352 dev <<
" </vehicles>\n";
360 dev <<
" </persons>\n";
370 dev <<
" </junctions>\n";
372 dev <<
" <additionals addMode=\"" <<
addMode
388 dev <<
" <legend showSizeLegend=\"" <<
showSizeLegend <<
"\"/>\n";
389 dev <<
" </scheme>\n";
390 dev <<
"</viewsettings>\n";
416 if (!(edgeColorer == v2.edgeColorer)) {
float vehicleExaggeration
The vehicle exaggeration (upscale)
GUIVisualizationTextSettings junctionName
static const RGBColor BLUE
bool showSizeLegend
Information whether the size legend shall be drawn.
GUIVisualizationTextSettings streetName
float laneWidthExaggeration
The lane exaggeration (upscale thickness)
size_t getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
bool showBlinker
Information whether vehicle blinkers shall be drawn.
GUIVisualizationTextSettings addName
std::string print(const std::string &name) const
GUIVisualizationTextSettings personName
float minAddSize
The minimum size of additional structures to let them be drawn.
bool drawLinkTLIndex
Information whether a link's tls index shall be drawn.
GUIVisualizationTextSettings poiName
static const RGBColor WHITE
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring schme.
float polyExaggeration
The additional shapes (upscale)
GUIColorer laneColorer
The lane colorer.
Stores the information about how to visualize structures.
float poiExaggeration
The additional shapes (upscale)
vehicle is a small delivery vehicle
bool drawLaneChangePreference
Information whether the lane change preference shall be drawn.
bool showRails
Information whether rails shall be drawn.
GUIVisualizationTextSettings vehicleName
void addScheme(GUIColorScheme scheme)
bool operator==(const GUIVisualizationSettings &vs2)
Assignment operator.
GUIVisualizationSettings()
constructor
GUIVisualizationTextSettings cwaEdgeName
bool laneShowBorders
Information whether lane borders shall be drawn.
static const RGBColor BLACK
const SVCPermissions SVCAll
bool dither
Information whether dithering shall be enabled.
float personExaggeration
The person exaggeration (upscale)
GUIColorer vehicleColorer
The vehicle colorer.
GUIVisualizationTextSettings edgeName
static const RGBColor GREEN
static const RGBColor GREY
std::string name
The name of this setting.
float addExaggeration
The additional structures exaggeration (upscale)
GUIVisualizationTextSettings internalEdgeName
bool drawMinGap
Information whether the minimum gap shall be drawn.
int addMode
The additional structures visualization scheme.
static const RGBColor MAGENTA
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
void setAllowsNegativeValues(bool value)
SUMOReal gridXSize
Information about the grid spacings.
vehicle is a passenger car (a "normal" car)
RGBColor backgroundColor
The background color to use.
bool antialiase
Information whether antialiase shall be enabled.
float minPOISize
The minimum size of shapes to let them be drawn.
static const RGBColor YELLOW
static const RGBColor RED
float minPersonSize
The minimum size of persons to let them be drawn.
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor CYAN
static SUMOReal getDefaultDecel(const SUMOVehicleClass vc=SVC_IGNORING)
Returns the default deceleration for the given vehicle class This needs to be a function because the ...
GUIColorScheme & getScheme()
unsigned int addColor(const RGBColor &color, const SUMOReal threshold, const std::string &name="")
bool drawLinkJunctionIndex
Information whether a link's junction index shall be drawn.
int personQuality
The quality of person drawing.
bool showGrid
Information whether a grid shall be shown.
float minVehicleSize
The minimum size of vehicles to let them be drawn.
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
Static storage of an output device and its base (abstract) implementation.
void save(OutputDevice &dev) const
Writes the settings into an output device.
bool drawJunctionShape
whether the shape of the junction should be drawn
static SUMOReal getDefaultAccel(const SUMOVehicleClass vc=SVC_IGNORING)
Returns the default acceleration for the given vehicle class This needs to be a function because the ...
int vehicleQuality
The quality of vehicle drawing.
void save(OutputDevice &dev) const
float minPolySize
The minimum size of shapes to let them be drawn.
GUIVisualizationTextSettings polyName