38 #ifdef CHECK_MEMORY_LEAKS 40 #endif // CHECK_MEMORY_LEAKS 51 : name(
""), antialiase(false), dither(false),
53 showGrid(false), gridXSize(100), gridYSize(100),
54 laneShowBorders(false), showLinkDecals(true),
55 showLinkRules(true), showRails(true),
56 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
57 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
58 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
59 streetName(false, 55,
RGBColor::YELLOW),
60 hideConnectors(false),
61 laneWidthExaggeration(1),
63 showLaneDirection(false),
65 vehicleQuality(0), showBlinker(true),
66 drawLaneChangePreference(false), drawMinGap(false),
67 showBTRange(false), vehicleSize(1),
68 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
71 personName(false, 50,
RGBColor(0, 153, 204, 255)),
74 containerName(false, 50,
RGBColor(0, 153, 204, 255)),
75 drawLinkTLIndex(false, 50,
RGBColor(128, 128, 255, 255)),
76 drawLinkJunctionIndex(false, 50,
RGBColor(128, 128, 255, 255)),
77 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
78 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
80 drawJunctionShape(true),
81 drawCrossingsAndWalkingareas(true),
85 addName(false, 50,
RGBColor(255, 0, 128, 255)),
86 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
87 poiType(false, 50,
RGBColor(255, 0, 128, 255)),
88 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
89 polyType(false, 50,
RGBColor(255, 0, 128, 255)),
93 drawForSelecting(false) {
103 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
434 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
441 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
444 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
447 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
602 scheme =
GUIScaleScheme(
"by current occupancy (streetwise, brutto)", 0);
GUIVisualizationSizeSettings junctionSize
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
bool showBlinker
Information whether vehicle blinkers shall be drawn.
GUIVisualizationTextSettings addName
GUIVisualizationTextSettings personName
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.
SUMOReal laneWidthExaggeration
The lane exaggeration (upscale thickness)
GUIColorer containerColorer
The container colorer.
Stores the information about how to visualize structures.
GUIColorer edgeColorer
The mesoscopic edge colorer.
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
bool showLaneDirection
Whether to show direction indicators for lanes.
void print(OutputDevice &dev, const std::string &name) const
GUIVisualizationTextSettings cwaEdgeName
bool laneShowBorders
Information whether lane borders shall be drawn.
static const RGBColor BLACK
const SVCPermissions SVCAll
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
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
int getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
void save(OutputDevice &dev) const
Writes the settings into an output device.
int addColor(const T &color, const SUMOReal threshold, const std::string &name="")
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
bool showSublanes
Whether to show sublane boundaries.
static const RGBColor MAGENTA
GUIVisualizationTextSettings drawLinkTLIndex
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
SUMOReal gridXSize
Information about the grid spacings.
GUIScaler edgeScaler
The mesoscopic edge scaler.
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.
void print(OutputDevice &dev, const std::string &name) const
GUIVisualizationSizeSettings poiSize
static const RGBColor YELLOW
static const RGBColor RED
GUIPropertyScheme< SUMOReal > GUIScaleScheme
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor CYAN
GUIVisualizationSizeSettings containerSize
GUIVisualizationSizeSettings personSize
int personQuality
The quality of person drawing.
bool showGrid
Information whether a grid shall be shown.
bool drawCrossingsAndWalkingareas
whether crosings and walkingareas shall be drawn
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.
GUIVisualizationSizeSettings vehicleSize
SUMOReal getExaggeration(const GUIVisualizationSettings &s, SUMOReal factor=20) const
return the drawing size including exaggeration and constantSize values
bool drawJunctionShape
whether the shape of the junction should be drawn
GUIPropertyScheme< RGBColor > GUIColorScheme
int getLaneEdgeScaleMode() const
Returns the number of the active lane (edge) scaling schme.
int vehicleQuality
The quality of vehicle drawing.
static bool UseMesoSim
this should be set at the same time as MSGlobals::gUseMesoSim
SUMOReal laneMinSize
The minimum visual lane width for drawing.
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
GUIScaler laneScaler
The lane scaler.
void save(OutputDevice &dev) const
GUIVisualizationTextSettings drawLinkJunctionIndex
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
void lf()
writes a line feed if applicable
GUIVisualizationTextSettings polyName
GUIVisualizationTextSettings containerName