85 showGrid(false), gridXSize(100), gridYSize(100),
86 laneShowBorders(false), showBikeMarkings(true), showLinkDecals(true),
87 showLinkRules(true), showRails(true),
88 edgeName(false, 50,
RGBColor(255, 128, 0, 255)),
89 internalEdgeName(false, 40,
RGBColor(128, 64, 0, 255)),
90 cwaEdgeName(false, 50,
RGBColor::MAGENTA),
91 streetName(false, 55,
RGBColor::YELLOW),
92 edgeValue(false, 100,
RGBColor::CYAN),
93 hideConnectors(false),
94 laneWidthExaggeration(1),
96 showLaneDirection(false),
98 spreadSuperposed(false),
99 edgeParam(
"EDGE_KEY"),
100 laneParam(
"LANE_KEY"),
101 vehicleQuality(0), showBlinker(true),
102 drawLaneChangePreference(false), drawMinGap(false),
103 showBTRange(false), vehicleSize(1),
104 vehicleName(false, 50,
RGBColor(204, 153, 0, 255)),
105 vehicleValue(false, 80,
RGBColor::CYAN),
108 personName(false, 50,
RGBColor(0, 153, 204, 255)),
109 personValue(false, 80,
RGBColor::CYAN),
112 containerName(false, 50,
RGBColor(0, 153, 204, 255)),
113 drawLinkTLIndex(false, 50,
RGBColor(128, 128, 255, 255)),
114 drawLinkJunctionIndex(false, 50,
RGBColor(128, 128, 255, 255)),
115 junctionName(false, 50,
RGBColor(0, 255, 128, 255)),
116 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
117 showLane2Lane(false),
118 drawJunctionShape(true),
119 drawCrossingsAndWalkingareas(true),
123 addName(false, 50,
RGBColor(255, 0, 128, 255)),
124 addFullName(false, 50,
RGBColor(255, 0, 128, 255)),
125 poiSize(0), poiName(false, 50,
RGBColor(255, 0, 128, 255)),
126 poiType(false, 50,
RGBColor(255, 0, 128, 255)),
127 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
128 polyType(false, 50,
RGBColor(255, 0, 128, 255)),
129 showSizeLegend(true),
131 selectionColor(0, 0, 204, 255),
132 selectedEdgeColor(0, 0, 204, 255),
133 selectedLaneColor(0, 0, 128, 255),
134 selectedConnectionColor(0, 0, 100, 255),
135 selectedAdditionalColor(0, 0, 150, 255),
137 drawForSelecting(false) {
160 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
545 scheme =
GUIScaleScheme(
"by selection (lane-/streetwise)", 0.5,
"unselected",
true);
550 scheme.
addColor(10, (
double)(150.0 / 3.6));
552 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, brutto)", 0);
555 scheme =
GUIScaleScheme(
"by current occupancy (lanewise, netto)", 0);
558 scheme =
GUIScaleScheme(
"by first vehicle waiting time (lanewise)", 0);
566 scheme.
addColor(10, (
double)(10. / 7.5 / 5.));
569 scheme.
addColor(10, (
double)(0.05 / 7.5 / 2.));
572 scheme.
addColor(10, (
double)(.005 / 7.5 / 5.));
575 scheme.
addColor(10, (
double)(.125 / 7.5 / 5.));
578 scheme.
addColor(10, (
double)(.02 / 7.5 / 4.));
581 scheme.
addColor(10, (
double)(.005 / 7.5 * 100.));
599 scheme.
addColor(-1000, (
double) - 1000);
600 scheme.
addColor(1000, (
double)1000);
604 scheme.
addColor(0.5, (
double) - 20);
609 scheme.
addColor(10, (
double)(150.0 / 3.6));
612 scheme.
addColor(0.5, (
double)(0.5));
617 scheme.
addColor(10, (
double)(1 / 7.5 / 5.));
713 scheme.
addColor(10, (
double)(150.0 / 3.6));
715 scheme =
GUIScaleScheme(
"by current occupancy (streetwise, brutto)", 0);
719 scheme.
addColor(10, (
double)(150.0 / 3.6));
748 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
1293 ?
MAX2((
double)exaggeration, exaggeration * factor / s.
scale)
1332 throw ProcessError(
"No color defined for LinkState '" + std::string(ls, 1) +
"'");
1338 double viewAngle = objectAngle -
angle;
1339 while (viewAngle < 0) {
1343 viewAngle = fmod(viewAngle, 360);
1344 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
RGBColor selectedEdgeColor
GUIVisualizationTextSettings personValue
RGBColor selectedConnectionColor
GUIVisualizationTextSettings personName
void initSumoGuiDefaults()
static const RGBColor SUMO_color_E1
color for E1 detectors
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.
GUIVisualizationTextSettings edgeValue
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.
static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL
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 isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
RGBColor selectedLaneColor
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.
static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL
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
static const RGBColor SUMO_color_E2
color for E2 detectors
GUIVisualizationSizeSettings polySize
const RGBColor SUMO_color_ZIPPER(192, 128, 64)
GUIColorer vehicleColorer
The vehicle colorer.
std::string edgeParam
key for coloring by edge parameter
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
GUIVisualizationTextSettings vehicleValue
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.
RGBColor selectionColor
NETEDIT special colors.
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
static const RGBColor SUMO_color_E1Instant
color for E1 Instant detectors
double laneMinSize
The minimum visual lane width for drawing.
GUIScaler edgeScaler
The mesoscopic edge scaler.
vehicle is a passenger car (a "normal" car)
RGBColor selectedAdditionalColor
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)
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
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
GUIScaler laneScaler
The lane scaler.
bool spreadSuperposed
Whether to improve visualisation of superposed (rail) edges.
GUISelectedStorage gSelected
A global holder of selected objects.
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