75 showGrid(false), gridXSize(100), gridYSize(100),
76 laneShowBorders(false), showLinkDecals(true),
77 showLinkRules(true), showRails(true),
78 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
79 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
80 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
81 streetName(false, 55,
RGBColor::YELLOW),
82 hideConnectors(false),
83 laneWidthExaggeration(1),
85 showLaneDirection(false),
87 vehicleQuality(0), showBlinker(true),
88 drawLaneChangePreference(false), drawMinGap(false),
89 showBTRange(false), vehicleSize(1),
90 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
93 personName(false, 50,
RGBColor(0, 153, 204, 255)),
96 containerName(false, 50,
RGBColor(0, 153, 204, 255)),
97 drawLinkTLIndex(false, 50,
RGBColor(128, 128, 255, 255)),
98 drawLinkJunctionIndex(false, 50,
RGBColor(128, 128, 255, 255)),
99 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
100 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
101 showLane2Lane(false),
102 drawJunctionShape(true),
103 drawCrossingsAndWalkingareas(true),
107 addName(false, 50,
RGBColor(255, 0, 128, 255)),
108 addFullName(false, 50,
RGBColor(255, 0, 128, 255)),
109 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
110 poiType(false, 50,
RGBColor(255, 0, 128, 255)),
111 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
112 polyType(false, 50,
RGBColor(255, 0, 128, 255)),
113 showSizeLegend(true),
116 drawForSelecting(false) {
138 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
497 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
502 scheme.
addColor(10, (
double)(150.0 / 3.6));
504 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
507 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
510 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
518 scheme.
addColor(10, (
double)(10. / 7.5 / 5.));
521 scheme.
addColor(10, (
double)(0.05 / 7.5 / 2.));
524 scheme.
addColor(10, (
double)(.005 / 7.5 / 5.));
527 scheme.
addColor(10, (
double)(.125 / 7.5 / 5.));
530 scheme.
addColor(10, (
double)(.02 / 7.5 / 4.));
533 scheme.
addColor(10, (
double)(.005 / 7.5 * 100.));
551 scheme.
addColor(-1000, (
double) - 1000);
552 scheme.
addColor(1000, (
double)1000);
556 scheme.
addColor(0.5, (
double) - 20);
561 scheme.
addColor(10, (
double)(150.0 / 3.6));
564 scheme.
addColor(0.5, (
double)(0.5));
569 scheme.
addColor(10, (
double)(1 / 7.5 / 5.));
663 scheme.
addColor(10, (
double)(150.0 / 3.6));
665 scheme =
GUIScaleScheme(
"by current occupancy (streetwise, brutto)", 0);
669 scheme.
addColor(10, (
double)(150.0 / 3.6));
697 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
1162 return (constantSize && !s.
drawForSelecting) ?
MAX2((
double)exaggeration, exaggeration * factor / s.
scale) : exaggeration;
1200 throw ProcessError(
"No color defined for LinkState '" + std::string(ls, 1) +
"'");
GUIVisualizationSizeSettings junctionSize
GUIVisualizationTextSettings junctionName
The link has green light, may pass.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
static const RGBColor BLUE
const RGBColor SUMO_color_TL_GREEN_MAJOR(0, 255, 0)
const RGBColor SUMO_color_TL_RED(255, 0, 0)
bool showSizeLegend
Information whether the size legend shall be drawn.
double scale
information about a lane's width (temporary, used for a single view)
GUIVisualizationTextSettings poiType
GUIVisualizationTextSettings streetName
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
GUIPropertyScheme< double > GUIScaleScheme
bool showBlinker
Information whether vehicle blinkers shall be drawn.
GUIVisualizationTextSettings addName
GUIVisualizationTextSettings personName
void initSumoGuiDefaults()
void setAllowsNegativeValues(bool value)
const RGBColor SUMO_color_TL_GREEN_MINOR(0, 179, 0)
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.
GUIColorer containerColorer
The container colorer.
The link has green light, has to brake.
Stores the information about how to visualize structures.
This is an uncontrolled, minor link, has to stop.
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
const RGBColor SUMO_color_MINOR(51, 51, 51)
bool operator==(const GUIVisualizationSettings &vs2)
Comparison operator.
static const RGBColor ORANGE
bool showLaneDirection
Whether to show direction indicators for lanes.
void print(OutputDevice &dev, const std::string &name) const
GUIVisualizationTextSettings cwaEdgeName
const RGBColor SUMO_color_EQUAL(128, 128, 128)
bool laneShowBorders
Information whether lane borders shall be drawn.
This is an uncontrolled, right-before-left link.
bool netedit
Whether the settings are for Netedit.
static const RGBColor BLACK
const SVCPermissions SVCAll
all VClasses are allowed
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
The link is controlled by a tls which is off, not blinking, may pass.
This is an uncontrolled, all-way stop link.
bool dither
Information whether dithering shall be enabled.
const RGBColor SUMO_color_STOP(128, 0, 128)
This is an uncontrolled, zipper-merge link.
GUIVisualizationSettings(bool _netedit=false)
constructor
GUIVisualizationSizeSettings polySize
const RGBColor SUMO_color_ZIPPER(192, 128, 64)
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.
static const RGBColor GREEN
static const RGBColor GREY
int addColor(const T &color, const double threshold, const std::string &name="")
std::string name
The name of this setting.
double gridXSize
Information about the grid spacings.
const RGBColor SUMO_color_MAJOR(255, 255, 255)
GUIVisualizationTextSettings internalEdgeName
This is an uncontrolled, minor link, has to brake.
bool drawMinGap
Information whether the minimum gap shall be drawn.
int addMode
The additional structures visualization scheme.
const RGBColor SUMO_color_ALLWAY_STOP(0, 0, 192)
GUIVisualizationTextSettings polyType
bool showSublanes
Whether to show sublane boundaries.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
const RGBColor SUMO_color_TL_OFF_BLINKING(128, 64, 0)
static const RGBColor MAGENTA
GUIVisualizationTextSettings drawLinkTLIndex
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
static const RGBColor SUMO_color_E3Entry
double laneMinSize
The minimum visual lane width for drawing.
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.
const RGBColor SUMO_color_TL_YELLOW_MAJOR(255, 255, 0)
void print(OutputDevice &dev, const std::string &name) const
GUIVisualizationSizeSettings poiSize
static const RGBColor YELLOW
static const RGBColor RED
named colors
const RGBColor SUMO_color_TL_REDYELLOW(255, 128, 0)
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor CYAN
The link has yellow light, may pass.
GUIVisualizationSizeSettings containerSize
The link is controlled by a tls which is off and blinks, has to brake.
GUIVisualizationTextSettings addFullName
The link has red light (must brake)
const RGBColor SUMO_color_TL_OFF_NOSIGNAL(0, 255, 255)
This is an uncontrolled, major link, may pass.
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
const RGBColor SUMO_color_TL_YELLOW_MINOR(255, 255, 0)
double getExaggeration(const GUIVisualizationSettings &s, double factor=20) const
return the drawing size including exaggeration and constantSize values
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
Static storage of an output device and its base (abstract) implementation.
static const RGBColor SUMO_color_E3Exit
bool closeTag()
Closes the most recently opened tag.
GUIVisualizationSizeSettings vehicleSize
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
The link has yellow light, has to brake anyway.
const RGBColor SUMO_color_DEADEND(0, 0, 0)
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
GUIScaler laneScaler
The lane scaler.
void save(OutputDevice &dev) const
static const RGBColor & getLinkColor(const LinkState &ls)
The link has red light (must brake) but indicates upcoming green.
GUIVisualizationTextSettings drawLinkJunctionIndex
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
void lf()
writes a line feed if applicable
void initNeteditDefaults()
init default settings
GUIVisualizationTextSettings polyName
GUIVisualizationTextSettings containerName