38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
46 bool GUIVisualizationSettings::UseMesoSim =
false;
53 : name(
""), antialiase(false), dither(false),
55 showGrid(false), gridXSize(100), gridYSize(100),
56 laneShowBorders(false), showLinkDecals(true), showRails(true),
57 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
58 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
59 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
60 streetName(false, 55,
RGBColor::YELLOW),
61 hideConnectors(false), laneWidthExaggeration(1),
62 vehicleQuality(0), showBlinker(true),
63 drawLaneChangePreference(false), drawMinGap(false),
64 showBTRange(false), vehicleSize(1),
65 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
68 personName(false, 50,
RGBColor(0, 153, 204, 255)),
69 drawLinkTLIndex(false), drawLinkJunctionIndex(false),
70 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
71 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
72 showLane2Lane(false), drawJunctionShape(true), addMode(0),
74 addName(false, 50,
RGBColor(255, 0, 128, 255)),
75 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
76 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
80 drawForSelecting(false) {
87 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(179, 179, 179, 255),
"unselected",
true);
309 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
316 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
319 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
322 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
380 edgeColorer.addScheme(scheme);
384 edgeColorer.addScheme(scheme);
391 edgeColorer.addScheme(scheme);
394 edgeColorer.addScheme(scheme);
397 edgeColorer.addScheme(scheme);
400 edgeColorer.addScheme(scheme);
403 edgeColorer.addScheme(scheme);
410 edgeScaler.addScheme(scheme);
413 edgeScaler.addScheme(scheme);
416 edgeScaler.addScheme(scheme);
419 edgeScaler.addScheme(scheme);
422 edgeScaler.addScheme(scheme);
425 edgeScaler.addScheme(scheme);
436 return edgeColorer.getActive();
447 return edgeScaler.getActive();
458 return edgeColorer.getScheme();
469 return edgeScaler.getScheme();
477 dev <<
"<viewsettings>\n";
478 dev <<
" <scheme name=\"" <<
name <<
"\">\n";
479 dev <<
" <opengl antialiase=\"" <<
antialiase <<
"\" dither=\"" <<
dither <<
"\"/>\n";
496 edgeColorer.save(dev);
497 edgeScaler.save(dev);
499 dev <<
" </edges>\n";
508 dev <<
" </vehicles>\n";
515 dev <<
" </persons>\n";
525 dev <<
" </junctions>\n";
527 dev <<
" <additionals addMode=\"" <<
addMode <<
"\" "
542 dev <<
" <legend showSizeLegend=\"" <<
showSizeLegend <<
"\"/>\n";
543 dev <<
" </scheme>\n";
544 dev <<
"</viewsettings>\n";
570 if (!(edgeColorer == v2.edgeColorer)) {
573 if (!(edgeScaler == v2.edgeScaler)) {
GUIVisualizationTextSettings junctionName
static const RGBColor BLUE
bool showSizeLegend
Information whether the size legend shall be drawn.
GUIPropertyScheme< SUMOReal > GUIScaleScheme
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
bool drawLinkTLIndex
Information whether a link's tls index shall be drawn.
void setAllowsNegativeValues(bool value)
GUIVisualizationTextSettings poiName
static const RGBColor WHITE
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring schme.
bool showBTRange
Information whether the communication range shall be drawn.
GUIColorer laneColorer
The lane colorer.
Stores the information about how to visualize structures.
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
bool operator==(const GUIVisualizationSettings &vs2)
Comparison 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.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
GUIVisualizationSizeSettings polySize
GUIColorer vehicleColorer
The vehicle colorer.
GUIVisualizationTextSettings edgeName
GUIVisualizationSizeSettings addSize
void save(OutputDevice &dev) const
static const RGBColor GREEN
static const RGBColor GREY
std::string name
The name of this setting.
GUIVisualizationTextSettings internalEdgeName
bool drawMinGap
Information whether the minimum gap shall be drawn.
int addMode
The additional structures visualization scheme.
std::string print(const std::string &name) const
static const RGBColor MAGENTA
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
GUIPropertyScheme< RGBColor > GUIColorScheme
SUMOReal gridXSize
Information about the grid spacings.
unsigned int addColor(const T &color, const SUMOReal threshold, const std::string &name="")
vehicle is a passenger car (a "normal" car)
GUIScaleScheme & getLaneEdgeScaleScheme()
Returns the current lane (edge) scaling schme.
RGBColor backgroundColor
The background color to use.
bool antialiase
Information whether antialiase shall be enabled.
GUIVisualizationSizeSettings poiSize
static const RGBColor YELLOW
static const RGBColor RED
float exaggeration
The size exaggeration (upscale)
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor CYAN
bool drawLinkJunctionIndex
Information whether a link's junction index shall be drawn.
GUIVisualizationSizeSettings personSize
int personQuality
The quality of person drawing.
bool showGrid
Information whether a grid shall be shown.
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.
GUIVisualizationSizeSettings vehicleSize
bool drawJunctionShape
whether the shape of the junction should be drawn
int vehicleQuality
The quality of vehicle drawing.
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
GUIScaler laneScaler
The lane scaler.
size_t getLaneEdgeScaleMode() const
Returns the number of the active lane (edge) scaling schme.
SUMOReal getExaggeration(const GUIVisualizationSettings &s) const
return the drawing size including exaggeration and constantSize values
GUIVisualizationTextSettings polyName