212 {
"classic", std::vector<RGBColor>({
RGBColor(255, 0, 0),
RGBColor(255, 128, 0),
RGBColor(255, 255, 0),
RGBColor(0, 255, 0),
RGBColor(0, 255, 255),
RGBColor(0, 0, 255),
RGBColor(255, 0, 255)})},
213 {
"YlOrRd", std::vector<RGBColor>({
RGBColor(255, 255, 178),
RGBColor(254, 217, 118),
RGBColor(254, 178, 76),
RGBColor(253, 141, 60),
RGBColor(252, 78, 42),
RGBColor(227, 26, 28),
RGBColor(177, 0, 38)})},
214 {
"RdBu", std::vector<RGBColor>({
RGBColor(178, 24, 43),
RGBColor(239, 138, 98),
RGBColor(253, 219, 199),
RGBColor(247, 247, 247),
RGBColor(209, 229, 240),
RGBColor(103, 169, 207),
RGBColor(33, 102, 172)})},
218#define COL_SCHEME_EMISSION RGBColor(255,255,210)
219#define COL_SCHEME_MISC RGBColor(210,220,255)
220#define COL_SCHEME_STATIC RGBColor(230,230,230)
221#define COL_SCHEME_DYNAMIC RGBColor(220,255,220)
236 constSize(_constSize),
237 onlySelected(_onlySelected) {
291 minThreshold(_minThreshold),
293 maxThreshold(_maxThreshold),
294 setNeutral(_setNeutral),
295 neutralThreshold(_neutralThreshold),
315 return !((*this) == other);
337 exaggeration(_exaggeration),
338 constantSize(_constantSize),
339 constantSizeSelected(_constantSizeSelected) {
346 double exaggerationFinal;
353 exaggerationFinal = 1;
359 return exaggerationFinal;
395 selectionColor(0, 0, 204, 255),
396 selectedEdgeColor(0, 0, 204, 255),
397 selectedLaneColor(0, 0, 128, 255),
398 selectedConnectionColor(0, 0, 100, 255),
399 selectedProhibitionColor(0, 0, 120, 255),
400 selectedCrossingColor(0, 100, 196, 255),
401 selectedAdditionalColor(0, 0, 150, 255),
402 selectedRouteColor(0, 0, 150, 255),
403 selectedVehicleColor(0, 0, 100, 255),
404 selectedPersonColor(0, 0, 120, 255),
405 selectedPersonPlanColor(0, 0, 130, 255),
406 selectedContainerColor(0, 0, 120, 255),
407 selectedContainerPlanColor(0, 0, 130, 255),
408 selectedEdgeDataColor(0, 0, 150, 255),
409 busStopColor(76, 170, 50),
410 busStopColorSign(255, 235, 0),
411 trainStopColor(76, 170, 50),
412 trainStopColorSign(255, 235, 0),
413 containerStopColor(83, 89, 172),
414 containerStopColorSign(177, 184, 186, 171),
415 chargingStationColor(114, 210, 252),
416 chargingStationColorSign(255, 235, 0),
417 chargingStationColorCharge(255, 180, 0),
418 parkingAreaColor(83, 89, 172),
419 parkingAreaColorSign(177, 184, 186),
420 parkingSpaceColorContour(0, 255, 0),
421 parkingSpaceColor(255, 200, 200),
422 stopColor(220, 20, 30),
423 waypointColor(0, 127, 14),
424 vehicleTripColor(255, 128, 0),
425 stopPersonColor(255, 0, 0),
426 personTripColor(200, 0, 255),
427 walkColor(0, 255, 0),
428 rideColor(0, 0, 255),
429 stopContainerColor(255, 0, 0),
430 transportColor(100, 200, 0),
431 transhipColor(100, 0, 200) {
522 personTripWidth(0.25),
525 transportWidth(0.25),
526 transhipWidth(0.25) {
563 showGrid(false), gridXSize(100), gridYSize(100),
564 laneShowBorders(false), showBikeMarkings(true), showLinkDecals(true),
565 realisticLinkRules(false),
568 edgeName(false, 60,
RGBColor::ORANGE),
569 internalEdgeName(false, 45,
RGBColor(128, 64, 0, 255)),
570 cwaEdgeName(false, 60,
RGBColor::MAGENTA),
571 streetName(false, 60,
RGBColor::YELLOW),
572 edgeValue(false, 100,
RGBColor::CYAN),
573 edgeScaleValue(false, 100,
RGBColor::BLUE),
574 hideConnectors(false),
575 laneWidthExaggeration(1),
577 showLaneDirection(false),
579 spreadSuperposed(false),
580 disableHideByZoom(false),
581 edgeParam(
"EDGE_KEY"),
582 laneParam(
"LANE_KEY"),
583 vehicleParam(
"PARAM_NUMERICAL"),
584 vehicleScaleParam(
"PARAM_NUMERICAL"),
585 vehicleTextParam(
"PARAM_TEXT"),
589 edgeValueRainBow(false, 0, false, 200, false, 0, false),
590 vehicleQuality(0), showBlinker(true),
591 drawLaneChangePreference(false),
595 showRouteIndex(false),
598 showParkingInfo(false),
599 showChargingInfo(false),
601 vehicleName(false, 60,
RGBColor(204, 153, 0, 255)),
602 vehicleValue(false, 80,
RGBColor::CYAN),
603 vehicleScaleValue(false, 80,
RGBColor::GREY),
604 vehicleText(false, 80,
RGBColor::RED),
605 personQuality(netedit ? 2 : 0),
607 personName(false, 60,
RGBColor(0, 153, 204, 255)),
608 personValue(false, 80,
RGBColor::CYAN),
609 showPedestrianNetwork(true),
610 pedestrianNetworkColor(
RGBColor(179, 217, 255)),
613 containerName(false, 60,
RGBColor(0, 153, 204, 255)),
614 drawLinkTLIndex(false, 65,
RGBColor(128, 128, 255, 255),
RGBColor::INVISIBLE, false),
615 drawLinkJunctionIndex(false, 65,
RGBColor(128, 128, 255, 255),
RGBColor::INVISIBLE, false),
616 junctionID(false, 60,
RGBColor(0, 255, 128, 255)),
617 junctionName(false, 60,
RGBColor(192, 255, 128, 255)),
618 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
619 tlsPhaseIndex(false, 150,
RGBColor::YELLOW),
620 tlsPhaseName(false, 150,
RGBColor::ORANGE),
621 showLane2Lane(false),
622 drawJunctionShape(true),
623 drawCrossingsAndWalkingareas(true),
625 junctionValueRainBow(false, 0, false, 100, false, 0, false),
628 addName(false, 60,
RGBColor(255, 0, 128, 255)),
629 addFullName(false, 60,
RGBColor(255, 0, 128, 255)),
632 poiName(false, 50,
RGBColor(0, 127, 70, 255)),
633 poiType(false, 60,
RGBColor(0, 127, 70, 255)),
634 poiText(false, 80,
RGBColor(140, 0, 255, 255)),
635 poiTextParam(
"PARAM_TEXT"),
636 poiUseCustomLayer(false),
638 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
639 polyType(false, 60,
RGBColor(255, 0, 128, 255)),
640 polyUseCustomLayer(false),
642 dataValue(false, 100,
RGBColor::CYAN),
643 tazRelWidthExaggeration(1),
644 edgeRelWidthExaggeration(1),
645 relDataAttr(
"count"),
646 dataValueRainBow(false, -100, false, 100, false, 0, false),
647 show3DTLSLinkMarkers(true),
648 show3DTLSDomes(true),
649 generate3DTLSModels(false),
650 show3DHeadUpDisplay(true),
654 showSizeLegend(true),
655 showColorLegend(false),
656 showVehicleColorLegend(false),
658 drawBoundaries(false),
659 selectorFrameScale(1.),
660 drawForViewObjectsHandler(false),
661 drawForRectangleSelection(false),
662 forceDrawForRectangleSelection(false),
663 disableDottedContours(false),
664 geometryIndices(false, 50,
RGBColor(255, 0, 128, 255)),
665 secondaryShape(false),
667 disableLaneIcons(false),
668 myIgnoreHideByZoom(false) {
864 }
else if ((w > 0) && (h > 0)) {
981 scheme =
GUIColorScheme(
"by current occupancy (lanewise, brutto)",
TL(
"by current occupancy (lanewise, brutto)"),
RGBColor(235, 235, 235),
"",
false, 0,
COL_SCHEME_DYNAMIC);
987 scheme =
GUIColorScheme(
"by current occupancy (lanewise, netto)",
TL(
"by current occupancy (lanewise, netto)"),
RGBColor(235, 235, 235),
"",
false, 0,
COL_SCHEME_DYNAMIC);
1151 scheme =
GUIColorScheme(
"by TAZ (streetwise)",
TL(
"by TAZ (streetwise)"),
RGBColor(204, 204, 204),
"no TAZ",
true);
1169 scheme =
GUIColorScheme(
"by abs distance (kilometrage)",
TL(
"by abs distance (kilometrage)"),
RGBColor(204, 204, 204));
1482 scheme.
addColor(
RGBColor(192, 255, 192), 11,
"traffic_light_right_on_red");
1519 laneScheme.
addColor(10, 150. / 3.6);
1535 laneScheme.
addColor(10, 10. / 7.5 / 5.);
1538 laneScheme.
addColor(10, 0.05 / 7.5 / 2.);
1541 laneScheme.
addColor(10, .005 / 7.5 / 5.);
1544 laneScheme.
addColor(10, .125 / 7.5 / 5.);
1547 laneScheme.
addColor(10, .02 / 7.5 / 4.);
1550 laneScheme.
addColor(10, .005 / 7.5 * 100.);
1568 laneScheme.
addColor(-1000, -1000.);
1578 laneScheme.
addColor(10, 150. / 3.6);
1586 laneScheme.
addColor(10, 1. / 7.5 / 5.);
1694 edgeScheme.
addColor(10, 150. / 3.6);
1700 edgeScheme.
addColor(10, 150. / 3.6);
1756 vehScheme.
addColor(5, -100,
TL(
"opposite lane"));
1945 scheme.
addColor(
RGBColor(192, 255, 192), 11,
"traffic_light_right_on_red");
2692 throw ProcessError(
TLF(
"No color defined for LinkState '%'", std::string(ls, 1)));
2699 double viewAngle = objectAngle -
angle;
2700 while (viewAngle < 0) {
2704 viewAngle = fmod(viewAngle, 360);
2705 if (viewAngle > 90 && viewAngle < 270) {
2715 double viewAngle = objectAngle -
angle;
2716 while (viewAngle < 0) {
2720 viewAngle = fmod(viewAngle, 360);
2721 return (viewAngle > 90 && viewAngle < 270);
2728 const auto factor = (
scale * exaggeration);
2731 }
else if (factor >= 5) {
2733 }
else if (factor >= 2.5) {
2735 }
else if (factor >= 1.25) {
2748 return ((
scale * exaggeration) >= detail);
2755 return (
scale * radius * exaggeration > 10);
GUISelectedStorage gSelected
A global holder of selected objects.
GUIPropertyScheme< RGBColor > GUIColorScheme
GUIPropertyScheme< double > GUIScaleScheme
const RGBColor SUMO_color_EQUAL(128, 128, 128)
const RGBColor SUMO_color_TL_YELLOW_MAJOR(255, 255, 128)
#define COL_SCHEME_DYNAMIC
const RGBColor SUMO_color_ALLWAY_STOP(0, 0, 192)
const RGBColor SUMO_color_TL_YELLOW_MINOR(255, 255, 0)
const RGBColor SUMO_color_TL_OFF_NOSIGNAL(0, 255, 255)
const RGBColor OSG_color_SKY(51, 51, 102, 255)
const RGBColor SUMO_color_TL_REDYELLOW(255, 128, 0)
const RGBColor SUMO_color_TL_RED(255, 0, 0)
const RGBColor OSG_color_AMBIENT(32, 32, 32, 255)
const RGBColor SUMO_color_MAJOR(255, 255, 255)
const RGBColor OSG_color_DIFFUSE(64, 64, 64, 255)
const RGBColor SUMO_color_TL_GREEN_MINOR(0, 179, 0)
const RGBColor SUMO_color_ZIPPER(192, 128, 64)
const RGBColor SUMO_color_TL_OFF_BLINKING(128, 64, 0)
#define COL_SCHEME_EMISSION
const RGBColor SUMO_color_DEADEND(0, 0, 0)
const RGBColor SUMO_color_MINOR(51, 51, 51)
const RGBColor SUMO_color_TL_GREEN_MAJOR(0, 255, 0)
const RGBColor SUMO_color_STOP(128, 0, 128)
const SVCPermissions SVCAll
all VClasses are allowed
@ SVC_SHIP
is an arbitrary ship
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_NON_ROAD
classes which (normally) do not drive on normal roads
@ SVC_DELIVERY
vehicle is a small delivery vehicle
@ SVC_MOPED
vehicle is a moped
@ SVC_TAXI
vehicle is a taxi
@ SVC_BUS
vehicle is a bus
@ SVC_PEDESTRIAN
pedestrian
@ SUMO_TAG_VIEWSETTINGS_POIS
@ SUMO_TAG_VIEWSETTINGS_3D
@ SUMO_TAG_VIEWSETTINGS_BACKGROUND
@ SUMO_TAG_VIEWSETTINGS_LEGEND
@ SUMO_TAG_VIEWSETTINGS_OPENGL
@ SUMO_TAG_VIEWSETTINGS_ADDITIONALS
@ SUMO_TAG_VIEWSETTINGS_PERSONS
@ SUMO_TAG_VIEWSETTINGS_JUNCTIONS
@ SUMO_TAG_VIEWSETTINGS_VEHICLES
@ SUMO_TAG_VIEWSETTINGS_EDGES
@ SUMO_TAG_VIEWSETTINGS_SCHEME
@ SUMO_TAG_VIEWSETTINGS_POLYS
@ SUMO_TAG_VIEWSETTINGS_CONTAINERS
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
@ LINKSTATE_TL_REDYELLOW
The link has red light (must brake) but indicates upcoming green.
@ LINKSTATE_ALLWAY_STOP
This is an uncontrolled, all-way stop link.
@ LINKSTATE_MAJOR
This is an uncontrolled, major link, may pass.
@ LINKSTATE_STOP
This is an uncontrolled, minor link, has to stop.
@ LINKSTATE_TL_YELLOW_MAJOR
The link has yellow light, may pass.
@ LINKSTATE_TL_GREEN_MAJOR
The link has green light, may pass.
@ LINKSTATE_EQUAL
This is an uncontrolled, right-before-left link.
@ LINKSTATE_DEADEND
This is a dead end link.
@ LINKSTATE_ZIPPER
This is an uncontrolled, zipper-merge link.
@ LINKSTATE_TL_OFF_BLINKING
The link is controlled by a tls which is off and blinks, has to brake.
@ LINKSTATE_TL_YELLOW_MINOR
The link has yellow light, has to brake anyway.
@ LINKSTATE_TL_RED
The link has red light (must brake)
@ LINKSTATE_TL_GREEN_MINOR
The link has green light, has to brake.
@ LINKSTATE_MINOR
This is an uncontrolled, minor link, has to brake.
@ LINKSTATE_TL_OFF_NOSIGNAL
The link is controlled by a tls which is off, not blinking, may pass.
const double INVALID_DOUBLE
invalid double
A class that stores a 2D geometrical boundary.
double getHeight() const
Returns the height of the boundary (y-axis)
double getWidth() const
Returns the width of the boudary (x-axis)
void setAllowsNegativeValues(bool value)
int addColor(const T &color, const double threshold, const std::string &name="")
void save(OutputDevice &dev, const std::string &prefix="") const
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
Stores the information about how to visualize structures.
GUIVisualizationTextSettings addName
GUIVisualizationTextSettings tlsPhaseIndex
bool poiUseCustomLayer
whether the rendering layer of POIs should be overriden
GUIVisualizationTextSettings vehicleName
GUIVisualizationTextSettings junctionName
void initNeteditDefaults()
init default settings
bool operator==(const GUIVisualizationSettings &vs2)
Comparison operator.
RGBColor backgroundColor
The background color to use.
GUIVisualizationSizeSettings vehicleSize
GUIVisualizationSizeSettings containerSize
bool showBlinker
Information whether vehicle blinkers shall be drawn.
GUIVisualizationTextSettings internalEdgeName
bool showPedestrianNetwork
Flag for visualizing the pedestrian network generated for JuPedSim.
RGBColor skyColor
sky background color
double polyCustomLayer
the custom layer for polygons
GUIVisualizationSizeSettings junctionSize
static const std::string SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL
static const double MISSING_DATA
bool drawBoundaries
enable or disable draw boundaries
static const std::string SCHEME_NAME_EDGEDATA_NUMERICAL
bool showBikeMarkings
Information whether bicycle lane marking shall be drawn.
std::string edgeDataID
id for coloring by live edgeData
GUIScaler laneScaler
The lane scaler.
GUIVisualizationTextSettings edgeScaleValue
double BoundarySizeDrawing
constant for boundary size drawing (20 for slow computers, 10 for quick computers)
bool dither
Information whether dithering shall be enabled.
GUIColorer vehicleColorer
The vehicle colorer.
GUIVisualizationSettings(const std::string &_name, bool _netedit=false)
constructor
bool disableHideByZoom
disable hide by zoom
static const std::string SCHEME_NAME_EDGEDATA_LIVE
GUIVisualizationTextSettings personValue
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
GUIVisualizationTextSettings poiType
GUIVisualizationSizeSettings addSize
static const std::string SCHEME_NAME_SELECTION
std::string name
The name of this setting.
GUIColorer edgeColorer
The mesoscopic edge colorer.
int containerQuality
The quality of container drawing.
bool checkDrawAdditional(Detail d, const bool selected) const
check if draw additionals
RGBColor pedestrianNetworkColor
The color of the pedestrian network generated for JuPedSim.
GUIVisualizationTextSettings internalJunctionName
GUIVisualizationTextSettings vehicleScaleValue
GUIVisualizationSizeSettings poiSize
bool drawJunctionShape
whether the shape of the junction should be drawn
std::string edgeData
key for coloring by edgeData
GUIVisualizationTextSettings geometryIndices
GUIVisualizationTextSettings dataValue
bool show3DTLSDomes
whether the semi-transparent domes around 3D TL models should be drawn
bool flippedTextAngle(double objectAngle) const
return wether the text was flipped for reading at the given angle
bool realisticLinkRules
Information whether link rules (colored bars) shall be drawn with a realistic color scheme.
bool trueZ
drawl all objects according to their z data
bool myIgnoreHideByZoom
flag for ignore hide by zoom (used if we're drawing elements with constant size, their ID/name/etc....
int personQuality
The quality of person drawing.
GUIColorer poiColorer
The POI colorer.
GUIVisualizationWidthSettings widthSettings
width settings
GUIVisualizationTextSettings poiName
std::string vehicleScaleParam
key for scaling by vehicle parameter
bool showParkingInfo
Set whether parking related information should be shown.
GUIVisualizationTextSettings vehicleValue
bool disableDottedContours
flag for disable dotted contours in netedit
GUIColorer polyColorer
The polygon colorer.
int vehicleQuality
The quality of vehicle drawing.
GUIVisualizationTextSettings drawLinkJunctionIndex
bool checkDrawPoly(const Boundary &b, const bool selected) const
check if draw polygon
bool generate3DTLSModels
whether 3D TLS models should be generated automatically
static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL
GUIVisualizationTextSettings addFullName
GUIVisualizationTextSettings edgeValue
bool checkDrawVehicle(Detail d, const bool selected) const
check if draw vehicle
bool checkDrawPOI(const double w, const double h, const Detail d, const bool selected) const
check if draw POI
bool fps
Information whether frames-per-second should be drawn.
std::string vehicleParam
key for coloring by vehicle parameter
Detail getDetailLevel(const double exaggeration) const
return the detail level
bool showRails
Information whether rails shall be drawn.
GUIVisualizationSizeSettings personSize
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
GUIVisualizationTextSettings cwaEdgeName
GUIVisualizationTextSettings junctionID
std::string vehicleTextParam
key for rendering vehicle textual parameter
bool drawMovingGeometryPoint(const double exaggeration, const double radius) const
check if moving geometry point can be draw
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
GUIVisualizationColorSettings colorSettings
color settings
bool showSublanes
Whether to show sublane boundaries.
GUIVisualizationRainbowSettings edgeValueRainBow
checks and thresholds for rainbow coloring
bool showGrid
Information whether a grid shall be shown.
bool scaleLength
Whether vehicle length shall be scaled with length/geometry factor.
static const std::string SCHEME_NAME_TYPE
bool showVehicleColorLegend
Information whether the vehicle color legend shall be drawn.
double edgeRelWidthExaggeration
The edgeRelation exaggeration (upscale thickness)
bool hideConnectors
flag to show or hide connectors
GUIScaler vehicleScaler
The size scaling settings for vehicles.
static bool UseMesoSim
this should be set at the same time as MSGlobals::gUseMesoSim
GUIColorer personColorer
The person colorer.
void save(OutputDevice &dev) const
Writes the settings into an output device.
bool show3DTLSLinkMarkers
bool checkDrawContainer(Detail d, const bool selected) const
check if draw container
GUIScaleScheme & getLaneEdgeScaleScheme()
Returns the current lane (edge) scaling schme.
static const RGBColor & getLinkColor(const LinkState &ls, bool realistic=false)
map from LinkState to color constants
bool polyUseCustomLayer
whether the rendering layer of polygons should be overriden
int getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
double poiCustomLayer
the custom layer for POIs
bool showChargingInfo
Set whether the charging search related information should be shown.
RGBColor ambient3DLight
3D material light components
GUIVisualizationRainbowSettings junctionValueRainBow
double scale
information about a lane's width (temporary, used for a single view)
bool forceDrawForRectangleSelection
flag to force draw for rectangle selection (see drawForRectangleSelection)
bool netedit
Whether the settings are for Netedit.
bool showLaneDirection
Whether to show direction indicators for lanes.
GUIVisualizationRainbowSettings dataValueRainBow
value below which edgeData and edgeRelation data value should not be rendered
void updateIgnoreHideByZoom()
update ignore hide by zoom (call BEFORE drawing all elements).
bool secondaryShape
whether secondary lane shape shall be drawn
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring schme.
bool checkDrawJunction(const Boundary &b, const bool selected) const
check if draw junction
GUIScaler edgeScaler
The mesoscopic edge scaler.
bool drawDetail(const double detail, const double exaggeration) const
check if details can be drawn for the given GUIVisualizationDetailSettings and current scale and exxa...
static RGBColor COL_MISSING_DATA
bool drawMinGap
Information whether the minimum gap shall be drawn.
GUIVisualizationTextSettings streetName
bool drawForViewObjectsHandler
whether drawing is performed for the purpose of selecting objects in view using ViewObjectsHandler
GUIVisualizationTextSettings poiText
GUIVisualizationTextSettings vehicleText
bool checkDrawPerson(Detail d, const bool selected) const
check if draw person
int getLaneEdgeScaleMode() const
Returns the number of the active lane (edge) scaling schme.
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
bool show3DHeadUpDisplay
whether to draw the head up display items
GUIColorer laneColorer
The lane colorer.
GUIVisualizationTextSettings polyName
double tazRelWidthExaggeration
The tazRelation exaggeration (upscale thickness)
void initSumoGuiDefaults()
bool laneShowBorders
Information whether lane borders shall be drawn.
GUIVisualizationTextSettings tlsPhaseName
GUIVisualizationTextSettings edgeName
Setting bundles for optional drawing names with size and color.
bool showSizeLegend
Information whether the size legend shall be drawn.
double laneMinSize
The minimum visual lane width for drawing.
GUIVisualizationTextSettings drawLinkTLIndex
GUIVisualizationTextSettings containerName
static std::map< std::string, std::vector< RGBColor > > RAINBOW_SCHEMES
GUIVisualizationSizeSettings polySize
GUIColorer containerColorer
The container colorer.
bool checkDrawEdge(const Boundary &b) const
check if draw edge
double gridXSize
Information about the grid spacings.
bool showBTRange
Information whether the communication range shall be drawn.
bool drawReversed
Whether to draw reversed vehicles in their reversed state.
GUIVisualizationTextSettings personName
bool showColorLegend
Information whether the edge color legend shall be drawn.
std::string poiTextParam
key for rendering poi textual parameter
bool showRouteIndex
Information whether the route index should be shown.
bool drawCrossingsAndWalkingareas
whether crosings and walkingareas shall be drawn
static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL
scheme names
double selectorFrameScale
the current selection scaling in netedit (set in SelectorFrame)
bool spreadSuperposed
Whether to improve visualisation of superposed (rail) edges.
int addMode
The additional structures visualization scheme.
std::string relDataAttr
key for coloring by edgeRelation / tazRelation attribute
GUIColorer junctionColorer
The junction colorer.
void copy(const GUIVisualizationSettings &s)
copy all content from another GUIVisualizationSettings (note: DON'T USE in DrawGL functions!...
static const std::string SCHEME_NAME_PERMISSION_CODE
static const std::string SCHEME_NAME_PARAM_NUMERICAL
std::string edgeParam
key for coloring by edge parameter
bool drawBrakeGap
Information whether the brake gap shall be drawn.
bool drawLaneChangePreference
Information whether the lane change preference shall be drawn.
double getTextAngle(double objectAngle) const
return an angle that is suitable for reading text aligned with the given angle (degrees)
GUIVisualizationTextSettings polyType
int poiDetail
The detail level for drawing POIs.
std::string edgeDataScaling
key for scaling by edgeData
double angle
The current view rotation angle.
Static storage of an output device and its base (abstract) implementation.
void lf()
writes a line feed if applicable
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
static const RGBColor BLUE
static const RGBColor GREY
static const RGBColor YELLOW
static const RGBColor INVISIBLE
static const RGBColor ORANGE
static const RGBColor CYAN
static const RGBColor GREEN
static const RGBColor BLACK
static const RGBColor MAGENTA
static const RGBColor RED
named colors
static const double routeProbeSize
RouteProbe size.
static const RGBColor calibratorColor
color for Calibrators
static const double calibratorWidth
Calibrator width.
static const double vaporizerSize
Vaporizer size.
static const double arrowLength
arrow length
static const double rerouterSize
rerouter size
static const double calibratorHeight
Calibrator height.
static const RGBColor VSSColor
color for VSS
static const RGBColor overheadWireColorBot
overhead wire color bot
static const double arrowWidth
arrow width
static const RGBColor connectionColor
connection color
static const RGBColor overheadWireColorTop
overhead wire color top
static const double arrowOffset
arrow offset
static const RGBColor TLSConnectionColor
connection color between E1/junctions and TLS
static const double tractionSubstationSize
tractionSubstation size
static const RGBColor vaporizerColor
color for vaporizers
static const RGBColor overheadWireColorSelected
overhead wire color selected
static const RGBColor rerouterColor
color for rerouters
static const double stopEdgeSize
stopEdges size
static const RGBColor connectionColorSelected
connection color selected
static const RGBColor routeProbeColor
color for route probes
static const double VSSSize
VSS size.
static const RGBColor special
color for selected special candidate element (Usually selected using shift+click)
static const RGBColor conflict
color for selected conflict candidate element (Usually selected using ctrl+click)
static const RGBColor invalid
color for invalid elements
static const RGBColor target
color for selected candidate target
static const RGBColor possible
color for possible candidate element
static const RGBColor source
color for selected candidate source
struct for color settings
RGBColor vehicleTripColor
color for vehicle trips
RGBColor parkingSpaceColorContour
color for parkingSpace contour
RGBColor selectionColor
basic selection color
RGBColor walkColor
color for walks
static const RGBColor childConnectionColor
color for child connections between parents and child elements
RGBColor rideColor
color for rides
RGBColor selectedEdgeColor
edge selection color
RGBColor selectedPersonPlanColor
person plan selection color (Rides, Walks, stopPersons...)
static const RGBColor SUMO_color_DEADEND_SHOW
color for highlighthing deadends
RGBColor stopPersonColor
color for stopPersons
RGBColor selectedCrossingColor
crossings selection color
static const RGBColor crossingPriorityColor
color for priority crossing
RGBColor chargingStationColor
color for chargingStations
RGBColor parkingSpaceColor
color for parkingSpace innen
RGBColor selectedLaneColor
lane selection color
static const RGBColor crossingInvalidColor
color for invalid crossing
RGBColor selectedRouteColor
route selection color (used for routes and vehicle stops)
RGBColor selectedEdgeDataColor
edge data selection color
bool operator==(const GUIVisualizationColorSettings &other)
equality comparator
RGBColor trainStopColorSign
color for trainStops signs
RGBColor transhipColor
color for tranships
RGBColor waypointColor
color for Waypoints
static const RGBColor crossingColor
color for crossings
static const RGBColor editShapeColor
color for edited shapes (Junctions, crossings and connections)
RGBColor containerStopColor
color for containerStops
RGBColor selectedProhibitionColor
prohibition selection color
GUIVisualizationColorSettings()
constructor
RGBColor selectedConnectionColor
connection selection color
RGBColor busStopColorSign
color for busStops signs
RGBColor selectedContainerColor
container selection color
RGBColor containerStopColorSign
color for containerStop signs
RGBColor selectedAdditionalColor
additional selection color (busStops, Detectors...)
RGBColor parkingAreaColorSign
color for parkingArea sign
RGBColor transportColor
color for transport
RGBColor busStopColor
color for busStops
bool operator!=(const GUIVisualizationColorSettings &other)
inequality comparator
RGBColor selectedVehicleColor
vehicle selection color
RGBColor chargingStationColorCharge
color for chargingStation during charging
RGBColor parkingAreaColor
color for parkingAreas
RGBColor selectedPersonColor
person selection color
RGBColor selectedContainerPlanColor
container plan selection color (Rides, Walks, containerStops...)
RGBColor personTripColor
color for stopPersons
RGBColor stopContainerColor
color for containerStops
RGBColor trainStopColor
color for trainStops
RGBColor stopColor
color for Stops
RGBColor chargingStationColorSign
color for chargingStation sign
static const double connectionWidth
connection width
static const double tmp
draw connections in demand mode
static const double E3EntryExitWidth
E3 Entry/Exit detector width.
static const RGBColor E2Color
color for E2 detectors
static const double E1InstantHeight
E1 Instant detector heights.
static const double E2Width
E2 detector widths.
static const RGBColor E3ExitColor
color for Exits
static const double E3Size
E3 detector size.
static const RGBColor E1Color
color for E1 detectors
static const double E1Width
E1 detector widths.
static const RGBColor E3EntryColor
color for Entrys
static const double E1InstantWidth
E1 Instant detector widths.
static const double E3EntryExitHeight
E3 Entry/Exit detector height.
static const RGBColor E1InstantColor
color for E1 Instant detectors
static const double E1Height
E1 Instant detector heights.
static const double segmentWidthSmall
width of small dotted contour segments
static const RGBColor firstFrontColor
first color of dotted front contour
static const RGBColor firstInspectedColor
first color of dotted inspected contour
static const RGBColor secondFrontColor
second color of dotted front contour
static const double segmentWidth
width of dotted contour segments
static const RGBColor secondInspectedColor
second color of dotted inspectedcontour
static const double segmentLength
length of dotted contour segments
static const double segmentWidthLarge
width of large dotted contour segments
static const double crossingGeometryPointRadius
moving crossing geometry point radius
static const double polygonGeometryPointRadius
moving geometry point radius
static const double connectionGeometryPointRadius
moving connection geometry point radius
static const double additionalGeometryPointRadius
moving additional geometry point radius
static const double junctionGeometryPointRadius
moving junction geometry point radius
static const double laneGeometryPointRadius
moving lane geometry point radius
static const double junctionBubbleRadius
junction bubble radius
static const double polygonContourWidth
polygon contour width
static const double polylineWidth
poly line width
static const double edgeGeometryPointRadius
moving edge geometry point radius
bool hideMax
whether data above threshold should not be colored
bool operator==(const GUIVisualizationRainbowSettings &other)
equality comparator
bool setNeutral
whether the scale should be centered at a specific value
bool fixRange
whether the color scale should be fixed to the given min/max values
double minThreshold
threshold below which value should not be colored
void print(OutputDevice &dev, const std::string &name) const
print values in output device
bool operator!=(const GUIVisualizationRainbowSettings &other)
inequality comparator
GUIVisualizationRainbowSettings(bool _hideMin, double _minThreshold, bool _hideMax, double _maxThreshold, bool _setNeutral, double _neutralThreshold, bool _fixRange)
constructor
bool hideMin
whether data below threshold should not be colored
double neutralThreshold
neutral point of scale
double maxThreshold
threshold above which value should not be colored
bool operator!=(const GUIVisualizationSizeSettings &other)
inequality comparator
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
GUIVisualizationSizeSettings(double _minSize, double _exaggeration=1.0, bool _constantSize=false, bool _constantSizeSelected=false)
constructor
double exaggeration
The size exaggeration (upscale)
bool constantSize
whether the object shall be drawn with constant size regardless of zoom
void print(OutputDevice &dev, const std::string &name) const
print values in output device
double minSize
The minimum size to draw this object.
bool operator==(const GUIVisualizationSizeSettings &other)
equality comparator
bool constantSizeSelected
whether only selected objects shall be drawn with constant
static const double stoppingPlaceSignOffset
busStop offset
static const double symbolInternalRadius
symbol internal radius
static const double chargingStationWidth
chargingStation width
static const double busStopWidth
busStop width
static const double symbolExternalRadius
symbol external radius
static const double symbolInternalTextSize
symbol internal text size
static const double containerStopWidth
containerStop width
static const double trainStopWidth
trainStop width
void print(OutputDevice &dev, const std::string &name) const
print values in output device
bool operator==(const GUIVisualizationTextSettings &other)
equality comparator
bool show(const GUIGlObject *o) const
whether to show the text
RGBColor bgColor
background text color
bool operator!=(const GUIVisualizationTextSettings &other)
inequality comparator
GUIVisualizationTextSettings(bool _show, double _size, RGBColor _color, RGBColor _bgColor=RGBColor(128, 0, 0, 0), bool _constSize=true, bool _onlySelected=false)
constructor
bool onlySelected
whether only selected objects shall have text drawn
double scaledSize(double scale, double constFactor=0.1) const
get scale size
bool constSize
@brif flag to avoid size changes
struct for width settings
double tripWidth
width for trips
double transportWidth
width for rides
bool operator!=(const GUIVisualizationWidthSettings &other)
inequality comparator
double walkWidth
width for walks
GUIVisualizationWidthSettings()
constructor
bool operator==(const GUIVisualizationWidthSettings &other)
equality comparator
double personTripWidth
width for person trips
static const double embeddedRouteWidth
width for embeddedroutes
double transhipWidth
width for rides
static const double routeWidth
width for routes
double rideWidth
width for rides