Eclipse SUMO - Simulation of Urban MObility
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-2024 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>
28 #include <utils/common/RGBColor.h>
29 #include <utils/common/ToString.h>
30 
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class BaseSchemeInfoSource;
38 class OutputDevice;
40 class 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 
55  bool operator==(const GUIVisualizationTextSettings& other);
56 
58  bool operator!=(const GUIVisualizationTextSettings& other);
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 
70  bool showText;
71 
73  double size;
74 
77 
80 
82  bool constSize;
83 
86 };
87 
88 
91 
93  GUIVisualizationSizeSettings(double _minSize, double _exaggeration = 1.0, bool _constantSize = false, bool _constantSizeSelected = false);
94 
96  double getExaggeration(const GUIVisualizationSettings& s, const GUIGlObject* o, double factor = 20) const;
97 
99  bool operator==(const GUIVisualizationSizeSettings& other);
100 
102  bool operator!=(const GUIVisualizationSizeSettings& other);
103 
105  void print(OutputDevice& dev, const std::string& name) const;
106 
108  double minSize;
109 
111  double exaggeration;
112 
115 
118 };
119 
120 
123 
126 
128  bool operator==(const GUIVisualizationColorSettings& other);
129 
131  bool operator!=(const GUIVisualizationColorSettings& other);
132 
135 
138 
141 
144 
147 
150 
153 
156 
159 
162 
165 
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 
251  static const RGBColor editShapeColor;
252 
254  static const RGBColor crossingColor;
255 
258 
261 
262 };
263 
264 
267 
269  static const RGBColor possible;
270 
272  static const RGBColor source;
273 
275  static const RGBColor target;
276 
278  static const RGBColor special;
279 
281  static const RGBColor conflict;
282 
284  static const RGBColor invalid;
285 };
286 
289 
291  static const double junctionBubbleRadius;
292 
294  static const double junctionGeometryPointRadius;
295 
297  static const double edgeGeometryPointRadius;
298 
300  static const double laneGeometryPointRadius;
301 
303  static const double connectionGeometryPointRadius;
304 
306  static const double crossingGeometryPointRadius;
307 
309  static const double polygonGeometryPointRadius;
310 
312  static const double polygonContourWidth;
313 
315  static const double polylineWidth;
316 
318  static const double additionalGeometryPointRadius;
319 };
320 
323 
325  static const double connectionWidth;
326 };
327 
328 
331 
333  static const RGBColor rerouterColor;
334 
336  static const double rerouterSize;
337 
339  static const RGBColor VSSColor;
340 
342  static const double VSSSize;
343 
345  static const RGBColor calibratorColor;
346 
348  static const double calibratorWidth;
349 
351  static const double calibratorHeight;
352 
354  static const RGBColor routeProbeColor;
355 
357  static const double routeProbeSize;
358 
360  static const RGBColor vaporizerColor;
361 
363  static const double vaporizerSize;
364 
366  static const RGBColor connectionColor;
367 
370 
372  static const double tractionSubstationSize;
373 
376 
379 
382 
384  static const double arrowWidth;
385 
387  static const double arrowLength;
388 
390  static const double arrowOffset;
391 
394 };
395 
396 
399 
401  static const RGBColor E1Color;
402 
404  static const double E1Width;
405 
407  static const double E1Height;
408 
410  static const RGBColor E1InstantColor;
411 
413  static const double E1InstantWidth;
414 
416  static const double E1InstantHeight;
417 
419  static const RGBColor E2Color;
420 
422  static const double E2Width;
423 
425  static const double E3Size;
426 
428  static const RGBColor E3EntryColor;
429 
431  static const RGBColor E3ExitColor;
432 
434  static const double E3EntryExitWidth;
435 
437  static const double E3EntryExitHeight;
438 };
439 
440 
444  static const double stoppingPlaceSignOffset;
445 
447  static const double busStopWidth;
448 
450  static const double trainStopWidth;
451 
453  static const double containerStopWidth;
454 
456  static const double chargingStationWidth;
457 };
458 
459 
462 
464  static const double segmentWidth;
465 
467  static const double segmentWidthSmall;
468 
470  static const double segmentWidthLarge;
471 
473  static const double segmentLength;
474 
477 
480 
482  static const RGBColor firstFrontColor;
483 
486 };
487 
488 
491 
494 
496  bool operator==(const GUIVisualizationWidthSettings& other);
497 
499  bool operator!=(const GUIVisualizationWidthSettings& other);
500 
502  double tripWidth;
503 
506 
508  double walkWidth;
509 
511  double rideWidth;
512 
515 
518 
520  static const double routeWidth;
521 
523  static const double embeddedRouteWidth;
524 };
525 
526 
529 
531  static const double tmp;
532 };
533 
534 
540 
541 public:
542 
543  enum class Detail : int {
544  Level0 = 0,
545  CircleResolution32 = 0, // circle resolution = 32
546  DrawPolygonTesselation = 0, // draw polygons tesselated
547  LaneDetails = 0, // offset, icons, indicators...
548  Text = 0, // draw text (E2, routes...)
549  VehiclePoly = 0, // draw vehicles as polygons
550  JunctionElementDetails = 0, // draw junction elements with high detail (crossings, connections..)
551  LockedIcons = 0, // draw lock icons
552 
553  Level1 = 1,
554  CircleResolution16 = 1, // circle resolution = 16
555  VehicleBox = 1, // vehicles as boxes
556  AdditionalDetails = 1, // stoppingPlace signs, EntryExit arrows...
557  GeometryPoint = 1, // draw geometry points
558  JunctionElement = 1, // crossings, walking area, connections and internal lanes
559  DottedContoursResampled = 1, // resample dotted contours
560  PreciseSelection = 1, // precise selection using boundaries
561 
562  Level2 = 2,
563  CircleResolution8 = 2, // circle resolution = 8
564  DrawPolygonSquare = 2, // draw polygons as squares
565  VehicleTriangle = 2, // draw vehicles as triangles
566  Additionals = 2, // draw additional elements
567  DottedContours = 2, // draw dotted contours
568  GeometryBoxLines = 2, // draw lines instead boxes in GUIGeometry::drawGeometry
569 
570  Level3 = 3,
571  CircleResolution4 = 3, // draw circle resolution as squares
572  TLSIcon = 3, // draw TLS icons
573 
574  Level4 = 4,
575  GeometryBoxSimpleLine = 4, // draw lines with width = 1 instead boxes in GUIGeometry::drawGeometry
576  };
577 
579  GUIVisualizationSettings(const std::string& _name, bool _netedit = false);
580 
582  void copy(const GUIVisualizationSettings& s);
583 
585  void initNeteditDefaults();
586  void initSumoGuiDefaults();
587 
591  void save(OutputDevice& dev) const;
592 
596  int getLaneEdgeMode() const;
597 
601  int getLaneEdgeScaleMode() const;
602 
607 
612 
614  bool operator==(const GUIVisualizationSettings& vs2);
615 
617  static const RGBColor& getLinkColor(const LinkState& ls, bool realistic = false);
618 
620  double getTextAngle(double objectAngle) const;
621 
623  bool flippedTextAngle(double objectAngle) const;
624 
626  bool checkBoundarySizeDrawing(const double w, const double h) const;
627 
629  Detail getDetailLevel(const double exaggeration) const;
630 
632  bool drawDetail(const double detail, const double exaggeration) const;
633 
635  bool drawMovingGeometryPoint(const double exaggeration, const double radius) const;
636 
638  std::string name;
639 
641  bool netedit;
642 
644  double angle;
645 
647  bool dither;
648 
650  bool fps;
651 
654 
657 
659  bool showGrid;
660 
664 
667 
670 
673 
675  static bool UseMesoSim;
676 
679 
682 
685 
688 
691 
694 
697 
699  bool showRails;
700 
701  // Setting bundles for optional drawing names with size and color
703 
706 
709 
711  double laneMinSize;
712 
715 
718 
721 
724 
726  std::string edgeParam, laneParam;
728  std::string vehicleParam;
730  std::string vehicleScaleParam;
732  std::string vehicleTextParam;
733 
735  std::string edgeData;
737  std::string edgeDataID;
739  std::string edgeDataScaling;
740 
744 
749 
752 
755 
758 
761 
764 
767 
770 
773 
776 
779 
782 
785 
788 
789  // Setting bundles for controling the size of the drawn vehicles
791 
792  // Setting bundles for optional drawing vehicle names or color value
794 
796 
797 
800 
803 
806 
807  // Setting bundles for controling the size of the drawn persons
809 
810  // Setting bundles for optional drawing person names
812 
815 
819 
820 
823 
826 
829 
830  // Setting bundles for controling the size of the drawn containers
832 
833  // Setting bundles for optional drawing container names
836 
837 
840 
843 
844  // Setting bundles for optional drawing junction names and indices
846 
853  // Setting bundles for controling the size of the drawn junction
856 
857 
860 
862  // @todo decouple addExageration for POIs, Polygons, Triggers etc
863  int addMode;
864  // Setting bundles for controling the size of additional items
866  // Setting bundles for optional drawing additional names
868  // Setting bundles for optional drawing additional full names
871 
872 
875 
878 
879  // Setting bundles for controling the size of the drawn POIs
881 
884 
885  // Setting bundles for optional drawing poi names
887 
888  // Setting bundles for optional drawing poi types
890 
891  // Setting bundles for optional drawing poi text
893 
895  std::string poiTextParam;
896 
899 
900  // Setting bundles for controling the size of the drawn polygons
902 
903  // Setting bundles for optional drawing polygon names
905 
906  // Setting bundles for optional drawing polygon types
909 
910 
916 
919 
922 
924  std::string relDataAttr;
925 
930 
931 
936 
939 
942 
945 
949 
952 
954 
955 
958 
961 
964 
966  double scale;
967 
969  bool gaming;
970 
973 
976 
979 
982 
985 
988 
989  // Setting bundles for optional drawing geometry point indices
991 
994 
999  bool lefthand;
1000 
1006 
1008  static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL;
1009  static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL;
1010  static const std::string SCHEME_NAME_PARAM_NUMERICAL;
1011  static const std::string SCHEME_NAME_EDGEDATA_NUMERICAL;
1012  static const std::string SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL;
1013  static const std::string SCHEME_NAME_SELECTION;
1014  static const std::string SCHEME_NAME_TYPE;
1015  static const std::string SCHEME_NAME_PERMISSION_CODE;
1016  static const std::string SCHEME_NAME_EDGEDATA_LIVE;
1017 
1018  static const double MISSING_DATA;
1020 
1023 
1026 
1029 
1032 
1035 
1038 
1041 
1044 
1047 
1050 
1052  bool altKeyPressed = false;
1053 
1054 private:
1057 
1060 };
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
Stores the information about how to visualize structures.
GUIVisualizationTextSettings addName
GUIVisualizationTextSettings tlsPhaseIndex
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
GUIVisualizationSizeSettings junctionSize
static const std::string SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL
bool drawBoundaries
enable or disable draw boundaries
bool dataValueHideCheck
value below which relation data value should not be rendered
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
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 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.
GUIVisualizationTextSettings poiType
GUIVisualizationSizeSettings addSize
bool altKeyPressed
alt key pressed (only used for draw polygons under other elements in SUMO-GUI, store is not needed)
static const std::string SCHEME_NAME_SELECTION
std::string name
The name of this setting.
GUIColorer edgeColorer
The mesoscopic edge colorer.
GUIVisualizationSettings & operator=(const GUIVisualizationSettings &)=default
set assignment operator private
int containerQuality
The quality of container drawing.
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.
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 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 fps
Information whether frames-per-second should be drawn.
bool edgeValueHideCheck2
threshold above which edge data value should not be rendered
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
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.
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
int getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
RGBColor ambient3DLight
3D material light components
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.
bool edgeValueHideCheck
threshold below which edge data value should not be rendered
bool secondaryShape
whether secondary lane shape shall be drawn
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring schme.
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
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
bool showSizeLegend
Information whether the size legend shall be drawn.
double laneMinSize
The minimum visual lane width for drawing.
GUIVisualizationTextSettings drawLinkTLIndex
GUIVisualizationTextSettings containerName
GUIVisualizationSizeSettings polySize
GUIColorer containerColorer
The container colorer.
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 checkBoundarySizeDrawing(const double w, const double h) const
check if draw element depending of boundarySize
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.
Definition: OutputDevice.h:61
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 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 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
struct for stoppingPlace settings
static const double stoppingPlaceSignOffset
busStop offset
static const double chargingStationWidth
chargingStation width
static const double busStopWidth
busStop width
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
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