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)),
71 containerName(false, 50,
RGBColor(0, 153, 204, 255)),
72 drawLinkTLIndex(false), drawLinkJunctionIndex(false),
73 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
74 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
75 showLane2Lane(false), drawJunctionShape(true), addMode(0),
77 addName(false, 50,
RGBColor(255, 0, 128, 255)),
78 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
79 poiType(false, 50,
RGBColor(255, 0, 128, 255)),
80 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
81 polyType(false, 50,
RGBColor(255, 0, 128, 255)),
85 drawForSelecting(false) {
94 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
392 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
399 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
402 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
405 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
471 edgeColorer.addScheme(scheme);
475 edgeColorer.addScheme(scheme);
482 edgeColorer.addScheme(scheme);
485 edgeColorer.addScheme(scheme);
488 edgeColorer.addScheme(scheme);
491 edgeColorer.addScheme(scheme);
494 edgeColorer.addScheme(scheme);
501 edgeScaler.addScheme(scheme);
504 edgeScaler.addScheme(scheme);
507 edgeScaler.addScheme(scheme);
510 edgeScaler.addScheme(scheme);
513 edgeScaler.addScheme(scheme);
516 edgeScaler.addScheme(scheme);
527 return edgeColorer.getActive();
538 return edgeScaler.getActive();
549 return edgeColorer.getScheme();
560 return edgeScaler.getScheme();
604 edgeColorer.save(dev);
605 edgeScaler.save(dev);
705 if (!(edgeColorer == v2.edgeColorer)) {
708 if (!(edgeScaler == v2.edgeScaler)) {
GUIVisualizationTextSettings junctionName
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
static const RGBColor BLUE
bool showSizeLegend
Information whether the size legend shall be drawn.
GUIVisualizationTextSettings poiType
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
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.
void print(OutputDevice &dev, const std::string &name) const
bool showBTRange
Information whether the communication range shall be drawn.
GUIColorer laneColorer
The lane colorer.
GUIColorer containerColorer
The container 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
classes which (normally) do not drive on normal roads
bool operator==(const GUIVisualizationSettings &vs2)
Comparison operator.
GUIVisualizationSettings()
constructor
static const RGBColor ORANGE
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.
GUIVisualizationTextSettings polyType
static const RGBColor MAGENTA
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
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.
int containerQuality
The quality of container drawing.
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)
GUIPropertyScheme< SUMOReal > GUIScaleScheme
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor CYAN
GUIVisualizationSizeSettings containerSize
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.
bool closeTag()
Closes the most recently opened tag.
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
GUIPropertyScheme< RGBColor > GUIColorScheme
void print(OutputDevice &dev, const std::string &name) const
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
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
void lf()
writes a line feed if applicable
GUIVisualizationTextSettings polyName
GUIVisualizationTextSettings containerName