Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GUIVisualizationSettings.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
20// Stores the information about how to visualize structures
21/****************************************************************************/
22#pragma once
23#include <config.h>
24
25#include <string>
26#include <vector>
27#include <map>
30
32
33
34// ===========================================================================
35// class declarations
36// ===========================================================================
37class BaseSchemeInfoSource;
38class OutputDevice;
40class GUIGlObject;
41
42
43// ===========================================================================
44// class definitions
45// ===========================================================================
46
47// cannot declare this as inner class because it needs to be used in forward
48// declaration (@todo fix inclusion order by removing references to guisim!)
50
52 GUIVisualizationTextSettings(bool _show, double _size, RGBColor _color, RGBColor _bgColor = RGBColor(128, 0, 0, 0), bool _constSize = true, bool _onlySelected = false);
53
56
59
61 void print(OutputDevice& dev, const std::string& name) const;
62
64 double scaledSize(double scale, double constFactor = 0.1) const;
65
67 bool show(const GUIGlObject* o) const;
68
71
73 double size;
74
77
80
83
86};
87
88
90
92 GUIVisualizationRainbowSettings(bool _hideMin, double _minThreshold, bool _hideMax, double _maxThreshold, bool _setNeutral,
93 double _neutralThreshold, bool _fixRange, int _rainboScheme);
94
97
100
102 void print(OutputDevice& dev, const std::string& name) const;
103
121 std::vector<RGBColor> colors;
122};
123
124
127
129 GUIVisualizationSizeSettings(double _minSize, double _exaggeration = 1.0, bool _constantSize = false, bool _constantSizeSelected = false);
130
132 double getExaggeration(const GUIVisualizationSettings& s, const GUIGlObject* o, double factor = 20) const;
133
135 bool operator==(const GUIVisualizationSizeSettings& other);
136
138 bool operator!=(const GUIVisualizationSizeSettings& other);
139
141 void print(OutputDevice& dev, const std::string& name) const;
142
144 double minSize;
145
148
151
154};
155
156
159
162
164 bool operator==(const GUIVisualizationColorSettings& other);
165
167 bool operator!=(const GUIVisualizationColorSettings& other);
168
171
174
177
180
183
186
189
192
195
198
201
204
207
210
213
216
219
222
225
228
231
234
237
240
243
246
249
252
255
258
261
264
267
270
273
276
279
282
285
288
291
294
297
298};
299
300
303
305 static const RGBColor possible;
306
308 static const RGBColor source;
309
311 static const RGBColor target;
312
314 static const RGBColor special;
315
317 static const RGBColor conflict;
318
320 static const RGBColor invalid;
321};
322
325
327 static const double junctionBubbleRadius;
328
330 static const double junctionGeometryPointRadius;
331
333 static const double edgeGeometryPointRadius;
334
336 static const double laneGeometryPointRadius;
337
339 static const double connectionGeometryPointRadius;
340
342 static const double crossingGeometryPointRadius;
343
345 static const double polygonGeometryPointRadius;
346
348 static const double polygonContourWidth;
349
351 static const double polylineWidth;
352
354 static const double additionalGeometryPointRadius;
355};
356
359
361 static const double connectionWidth;
362};
363
364
367
370
372 static const double rerouterSize;
373
375 static const RGBColor VSSColor;
376
378 static const double VSSSize;
379
382
384 static const double calibratorWidth;
385
387 static const double calibratorHeight;
388
391
393 static const double routeProbeSize;
394
397
399 static const double vaporizerSize;
400
402 static const double stopEdgeSize;
403
406
409
411 static const double tractionSubstationSize;
412
415
418
421
423 static const double arrowWidth;
424
426 static const double arrowLength;
427
429 static const double arrowOffset;
430
433};
434
435
438
440 static const RGBColor E1Color;
441
443 static const double E1Width;
444
446 static const double E1Height;
447
450
452 static const double E1InstantWidth;
453
455 static const double E1InstantHeight;
456
458 static const RGBColor E2Color;
459
461 static const double E2Width;
462
464 static const double E3Size;
465
467 static const RGBColor E3EntryColor;
468
470 static const RGBColor E3ExitColor;
471
473 static const double E3EntryExitWidth;
474
476 static const double E3EntryExitHeight;
477};
478
479
483 static const double stoppingPlaceSignOffset;
484
486 static const double busStopWidth;
487
489 static const double trainStopWidth;
490
492 static const double containerStopWidth;
493
495 static const double chargingStationWidth;
496
498 static const double symbolExternalRadius;
499
501 static const double symbolInternalRadius;
502
504 static const double symbolInternalTextSize;
505};
506
507
510
512 static const double segmentWidth;
513
515 static const double segmentWidthSmall;
516
518 static const double segmentWidthLarge;
519
521 static const double segmentLength;
522
525
528
531
534};
535
536
539
542
544 bool operator==(const GUIVisualizationWidthSettings& other);
545
547 bool operator!=(const GUIVisualizationWidthSettings& other);
548
550 double tripWidth;
551
554
556 double walkWidth;
557
559 double rideWidth;
560
563
566
568 static const double routeWidth;
569
571 static const double embeddedRouteWidth;
572};
573
574
577
579 static const double tmp;
580};
581
582
588
589public:
590
591 enum class Detail : int {
592 Level0 = 0,
593 CircleResolution32 = 0, // circle resolution = 32
594 DrawPolygonTesselation = 0, // draw polygons tesselated
595 LaneDetails = 0, // offset, icons, indicators...
596 Text = 0, // draw text (E2, routes...)
597 VehiclePoly = 0, // draw vehicles as polygons
598 JunctionElementDetails = 0, // draw junction elements with high detail (crossings, connections..)
599 LockedIcons = 0, // draw lock icons
600
601 Level1 = 1,
602 CircleResolution16 = 1, // circle resolution = 16
603 VehicleBox = 1, // vehicles as boxes
604 AdditionalDetails = 1, // stoppingPlace signs, EntryExit arrows...
605 GeometryPoint = 1, // draw geometry points
606 JunctionElement = 1, // crossings, walking area, connections and internal lanes
607 DottedContoursResampled = 1, // resample dotted contours
608 PreciseSelection = 1, // precise selection using boundaries
609 DottedContours = 1, // draw dotted contours
610
611 Level2 = 2,
612 CircleResolution8 = 2, // circle resolution = 8
613 DrawPolygonSquare = 2, // draw polygons as squares
614 VehicleTriangle = 2, // draw vehicles as triangles
615 Additionals = 2, // draw additional elements
616 GeometryBoxLines = 2, // draw lines instead boxes in GUIGeometry::drawGeometry
617
618 Level3 = 3,
619 CircleResolution4 = 3, // draw circle resolution as squares
620 TLSIcon = 3, // draw TLS icons
621
622 Level4 = 4,
623 GeometryBoxSimpleLine = 4, // draw lines with width = 1 instead boxes in GUIGeometry::drawGeometry
624 };
625
627 GUIVisualizationSettings(const std::string& _name, bool _netedit = false);
628
630 bool checkDrawJunction(const Boundary& b, const bool selected) const;
631
633 bool checkDrawEdge(const Boundary& b) const;
634
637
639 bool checkDrawAdditional(Detail d, const bool selected) const;
640
642 bool checkDrawPoly(const Boundary& b, const bool selected) const;
643
645 bool checkDrawPOI(const double w, const double h, const Detail d, const bool selected) const;
646
648 bool checkDrawVehicle(Detail d, const bool selected) const;
649
651 bool checkDrawPerson(Detail d, const bool selected) const;
652
654 bool checkDrawContainer(Detail d, const bool selected) const;
655
657 void copy(const GUIVisualizationSettings& s);
658
660 void initNeteditDefaults();
661 void initSumoGuiDefaults();
662
666 void save(OutputDevice& dev) const;
667
671 int getLaneEdgeMode() const;
672
676 int getLaneEdgeScaleMode() const;
677
682
687
689 bool operator==(const GUIVisualizationSettings& vs2);
690
692 static const RGBColor& getLinkColor(const LinkState& ls, bool realistic = false);
693
695 double getTextAngle(double objectAngle) const;
696
698 bool flippedTextAngle(double objectAngle) const;
699
701 Detail getDetailLevel(const double exaggeration) const;
702
704 bool drawDetail(const double detail, const double exaggeration) const;
705
707 bool drawMovingGeometryPoint(const double exaggeration, const double radius) const;
708
710 std::string name;
711
714
716 double angle;
717
719 bool dither;
720
722 bool fps;
723
725 bool trueZ;
726
729
732
735
739
742
745
748
750 static bool UseMesoSim;
751
754
757
760
763
766
769
772
775
778
781
784
787
790
793
796
799
801 std::string edgeParam, laneParam;
803 std::string vehicleParam;
805 std::string vehicleScaleParam;
807 std::string vehicleTextParam;
808
810 std::string edgeData;
812 std::string edgeDataID;
814 std::string edgeDataScaling;
815
819
822
825
828
831
834
837
840
843
846
849
852
855
858
861
862 // Setting bundles for controling the size of the drawn vehicles
864
865 // Setting bundles for optional drawing vehicle names or color value
867
870
871
874
877
880
881 // Setting bundles for controling the size of the drawn persons
883
884 // Setting bundles for optional drawing person names
886
889
893
894
897
900
903
904 // Setting bundles for controling the size of the drawn containers
906
907 // Setting bundles for optional drawing container names
910
911
914
917
918 // Setting bundles for optional drawing junction names and indices
920
927 // Setting bundles for controling the size of the drawn junction
929
932
933
936
938 // @todo decouple addExageration for POIs, Polygons, Triggers etc
940 // Setting bundles for controling the size of additional items
942 // Setting bundles for optional drawing additional names
944 // Setting bundles for optional drawing additional full names
947
948
951
954
955 // Setting bundles for controling the size of the drawn POIs
957
960
961 // Setting bundles for optional drawing poi names
963
964 // Setting bundles for optional drawing poi types
966
967 // Setting bundles for optional drawing poi text
969
971 std::string poiTextParam;
972
975
978
981
982 // Setting bundles for controling the size of the drawn polygons
984
985 // Setting bundles for optional drawing polygon names
987
988 // Setting bundles for optional drawing polygon types
990
993
997
998
1004
1007
1010
1012 std::string relDataAttr;
1013
1017
1018
1023
1026
1029
1032
1035
1039
1042
1044
1045
1048
1051
1054
1056 double scale;
1057
1060
1063
1066
1069
1072
1075
1078
1079 // Setting bundles for optional drawing geometry point indices
1081
1084
1090
1096
1098 static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL;
1099 static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL;
1100 static const std::string SCHEME_NAME_PARAM_NUMERICAL;
1101 static const std::string SCHEME_NAME_EDGEDATA_NUMERICAL;
1103 static const std::string SCHEME_NAME_SELECTION;
1104 static const std::string SCHEME_NAME_TYPE;
1105 static const std::string SCHEME_NAME_PERMISSION_CODE;
1106 static const std::string SCHEME_NAME_EDGEDATA_LIVE;
1107
1108 static const double MISSING_DATA;
1110
1111 static std::map<std::string, std::vector<RGBColor> > RAINBOW_SCHEMES;
1112
1115
1118
1121
1124
1127
1130
1133
1136
1139
1142
1145
1146protected:
1149
1150private:
1153
1156};
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
A class that stores a 2D geometrical boundary.
Definition Boundary.h:39
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.
GUIVisualizationSettings & operator=(const GUIVisualizationSettings &)=default
set assignment operator private
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
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.
bool disableHideByZoom
disable hide by zoom
static const std::string SCHEME_NAME_EDGEDATA_LIVE
GUIVisualizationTextSettings personValue
bool drawForRectangleSelection
whether drawing is performed for the purpose of selecting objects using a rectangle
GUIVisualizationDetailSettings detailSettings
detail settings
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
GUIVisualizationRainbowSettings vehicleValueRainBow
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 disableLaneIcons
whether drawing is performed in left-hand networks
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 gaming
whether the application is in gaming mode or not
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.
GUIVisualizationCandidateColorSettings candidateColorSettings
candidate color settings
GUIVisualizationSizeSettings personSize
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
GUIVisualizationTextSettings cwaEdgeName
bool lefthand
whether drawing is performed in left-hand networks
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.
GUIVisualizationConnectionSettings connectionSettings
connection settings
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
whether the TLS link markers should be drawn
bool checkDrawContainer(Detail d, const bool selected) const
check if draw container
GUIVisualizationDottedContourSettings dottedContourSettings
dotted contour settings
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.
GUIVisualizationStoppingPlaceSettings stoppingPlaceSettings
StoppingPlace settings.
bool drawDetail(const double detail, const double exaggeration) const
check if details can be drawn for the given GUIVisualizationDetailSettings and current scale and exxa...
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
GUIVisualizationSettings(const GUIVisualizationSettings &)=default
set copy constructor private
GUIColorer laneColorer
The lane colorer.
GUIVisualizationTextSettings polyName
double tazRelWidthExaggeration
The tazRelation exaggeration (upscale thickness)
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.
GUIVisualizationAdditionalSettings additionalSettings
Additional settings.
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
GUIVisualizationDetectorSettings detectorSettings
Detector settings.
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.
GUIVisualizationNeteditSizeSettings neteditSizeSettings
netedit size settings
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.
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
struct for candidate color settings
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
RGBColor vehicleTripColor
color for vehicle trips
RGBColor parkingSpaceColorContour
color for parkingSpace contour
RGBColor selectionColor
basic selection color
static const RGBColor childConnectionColor
color for child connections between parents and child elements
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
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 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.
struct for dotted contour settings
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
std::vector< RGBColor > colors
color steps for the rainbow;
int rainbowScheme
index in the list of color schemes
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
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
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
bool operator!=(const GUIVisualizationWidthSettings &other)
inequality comparator
bool operator==(const GUIVisualizationWidthSettings &other)
equality comparator
double personTripWidth
width for person trips
static const double embeddedRouteWidth
width for embeddedroutes
static const double routeWidth
width for routes