69 antialiase(false), dither(false),
71 showGrid(false), gridXSize(100), gridYSize(100),
72 laneShowBorders(false), showLinkDecals(true),
73 showLinkRules(true), showRails(true),
74 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
75 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
76 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
77 streetName(false, 55,
RGBColor::YELLOW),
78 hideConnectors(false),
79 laneWidthExaggeration(1),
81 showLaneDirection(false),
83 vehicleQuality(0), showBlinker(true),
84 drawLaneChangePreference(false), drawMinGap(false),
85 showBTRange(false), vehicleSize(1),
86 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
89 personName(false, 50,
RGBColor(0, 153, 204, 255)),
92 containerName(false, 50,
RGBColor(0, 153, 204, 255)),
93 drawLinkTLIndex(false, 50,
RGBColor(128, 128, 255, 255)),
94 drawLinkJunctionIndex(false, 50,
RGBColor(128, 128, 255, 255)),
95 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
96 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
98 drawJunctionShape(true),
99 drawCrossingsAndWalkingareas(true),
103 addName(false, 50,
RGBColor(255, 0, 128, 255)),
104 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
105 poiType(false, 50,
RGBColor(255, 0, 128, 255)),
106 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
107 polyType(false, 50,
RGBColor(255, 0, 128, 255)),
108 showSizeLegend(true),
111 drawForSelecting(false) {
133 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
478 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
483 scheme.
addColor(10, (
double)(150.0 / 3.6));
485 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
488 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
491 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
499 scheme.
addColor(10, (
double)(10. / 7.5 / 5.));
502 scheme.
addColor(10, (
double)(0.05 / 7.5 / 2.));
505 scheme.
addColor(10, (
double)(.005 / 7.5 / 5.));
508 scheme.
addColor(10, (
double)(.125 / 7.5 / 5.));
511 scheme.
addColor(10, (
double)(.02 / 7.5 / 4.));
514 scheme.
addColor(10, (
double)(.005 / 7.5 * 100.));
532 scheme.
addColor(-1000, (
double) - 1000);
533 scheme.
addColor(1000, (
double)1000);
537 scheme.
addColor(0.5, (
double) - 20);
542 scheme.
addColor(10, (
double)(150.0 / 3.6));
545 scheme.
addColor(0.5, (
double)(0.5));
550 scheme.
addColor(10, (
double)(1 / 7.5 / 5.));
644 scheme.
addColor(10, (
double)(150.0 / 3.6));
646 scheme =
GUIScaleScheme(
"by current occupancy (streetwise, brutto)", 0);
650 scheme.
addColor(10, (
double)(150.0 / 3.6));
678 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
1135 return (constantSize && !s.
drawForSelecting) ?
MAX2((
double)exaggeration, exaggeration * factor / s.
scale) : exaggeration;
1173 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.
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.
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.
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
void save(OutputDevice &dev) const
static const RGBColor GREEN
static const RGBColor GREY
double getExaggeration(const GUIVisualizationSettings &s, double factor=20) const
return the drawing size including exaggeration and constantSize values
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 getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
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.
int getLaneEdgeScaleMode() const
Returns the number of the active lane (edge) scaling schme.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
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.
bool antialiase
Information whether antialiase shall be enabled.
const RGBColor SUMO_color_TL_YELLOW_MAJOR(255, 255, 0)
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.
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)
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.
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.
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