78 showGrid(false), gridXSize(100), gridYSize(100),
79 laneShowBorders(false), showBikeMarkings(true), showLinkDecals(true),
80 showLinkRules(true), showRails(true),
81 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
82 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
83 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
84 streetName(false, 55,
RGBColor::YELLOW),
85 hideConnectors(false),
86 laneWidthExaggeration(1),
88 showLaneDirection(false),
90 spreadSuperposed(false),
91 vehicleQuality(0), showBlinker(true),
92 drawLaneChangePreference(false), drawMinGap(false),
93 showBTRange(false), vehicleSize(1),
94 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
97 personName(false, 50,
RGBColor(0, 153, 204, 255)),
100 containerName(false, 50,
RGBColor(0, 153, 204, 255)),
101 drawLinkTLIndex(false, 50,
RGBColor(128, 128, 255, 255)),
102 drawLinkJunctionIndex(false, 50,
RGBColor(128, 128, 255, 255)),
103 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
104 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
105 showLane2Lane(false),
106 drawJunctionShape(true),
107 drawCrossingsAndWalkingareas(true),
111 addName(false, 50,
RGBColor(255, 0, 128, 255)),
112 addFullName(false, 50,
RGBColor(255, 0, 128, 255)),
113 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
114 poiType(false, 50,
RGBColor(255, 0, 128, 255)),
115 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
116 polyType(false, 50,
RGBColor(255, 0, 128, 255)),
117 showSizeLegend(true),
120 drawForSelecting(false) {
143 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
520 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
525 scheme.
addColor(10, (
double)(150.0 / 3.6));
527 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
530 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
533 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
541 scheme.
addColor(10, (
double)(10. / 7.5 / 5.));
544 scheme.
addColor(10, (
double)(0.05 / 7.5 / 2.));
547 scheme.
addColor(10, (
double)(.005 / 7.5 / 5.));
550 scheme.
addColor(10, (
double)(.125 / 7.5 / 5.));
553 scheme.
addColor(10, (
double)(.02 / 7.5 / 4.));
556 scheme.
addColor(10, (
double)(.005 / 7.5 * 100.));
574 scheme.
addColor(-1000, (
double) - 1000);
575 scheme.
addColor(1000, (
double)1000);
579 scheme.
addColor(0.5, (
double) - 20);
584 scheme.
addColor(10, (
double)(150.0 / 3.6));
587 scheme.
addColor(0.5, (
double)(0.5));
592 scheme.
addColor(10, (
double)(1 / 7.5 / 5.));
686 scheme.
addColor(10, (
double)(150.0 / 3.6));
688 scheme =
GUIScaleScheme(
"by current occupancy (streetwise, brutto)", 0);
692 scheme.
addColor(10, (
double)(150.0 / 3.6));
721 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
1217 return (constantSize && !s.
drawForSelecting) ?
MAX2((
double)exaggeration, exaggeration * factor / s.
scale) : exaggeration;
1255 throw ProcessError(
"No color defined for LinkState '" + std::string(ls, 1) +
"'");
1261 double viewAngle = objectAngle -
angle;
1262 while (viewAngle < 0) {
1266 viewAngle = fmod(viewAngle, 360);
1267 if (viewAngle > 90 && viewAngle < 270) {
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
static const RGBColor SUMO_color_busStop_sign
color for busStops signs
bool showBlinker
Information whether vehicle blinkers shall be drawn.
static const RGBColor SUMO_color_chargingStation_charge
color for chargingStation during charging
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.
static const RGBColor SUMO_color_chargingStation_sign
color for chargingStation sign
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
static const RGBColor SUMO_color_chargingStation
color for chargingStations
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
GUIColorer poiColorer
The POI colorer.
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.
double getTextAngle(double objectAngle) const
return an angle that is suitable for reading text aligned with the given angle (degrees) ...
const RGBColor SUMO_color_MAJOR(255, 255, 255)
static const RGBColor SUMO_color_containerStop_sign
color for containerStop signs
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 polyColorer
The polygon colorer.
GUIColorer personColorer
The person colorer.
GUIVisualizationTextSettings internalJunctionName
GUIColorer junctionColorer
The junction colorer.
double angle
The current view rotation angle.
static const RGBColor SUMO_color_E3Entry
color for Entrys
static const RGBColor SUMO_color_busStop
color for busStops
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.
static const RGBColor SUMO_color_containerStop
color for containerStops
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.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
static const RGBColor SUMO_color_E3Exit
color for Exits
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.
bool spreadSuperposed
Whether to improve visualisation of superposed (rail) edges.
void save(OutputDevice &dev) const
static const RGBColor & getLinkColor(const LinkState &ls)
map from LinkState to color constants
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
bool showBikeMarkings
Information whether bicycle lane marking shall be drawn.
void initNeteditDefaults()
init default settings
GUIVisualizationTextSettings polyName
GUIVisualizationTextSettings containerName