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.org/sumo
3// Copyright (C) 2001-2022 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>
31
32
33// ===========================================================================
34// class declarations
35// ===========================================================================
36class BaseSchemeInfoSource;
37class OutputDevice;
39class GUIGlObject;
40
41
42// ===========================================================================
43// class definitions
44// ===========================================================================
45
46// cannot declare this as inner class because it needs to be used in forward
47// declaration (@todo fix inclusion order by removing references to guisim!)
49
51 GUIVisualizationTextSettings(bool _show, double _size, RGBColor _color, RGBColor _bgColor = RGBColor(128, 0, 0, 0), bool _constSize = true, bool _onlySelected = false);
52
55
58
60 void print(OutputDevice& dev, const std::string& name) const;
61
63 double scaledSize(double scale, double constFactor = 0.1) const;
64
66 bool show(const GUIGlObject* o) const;
67
70
72 double size;
73
76
79
82
85};
86
87
90
92 GUIVisualizationSizeSettings(double _minSize, double _exaggeration = 1.0, bool _constantSize = false, bool _constantSizeSelected = false);
93
95 double getExaggeration(const GUIVisualizationSettings& s, const GUIGlObject* o, double factor = 20) const;
96
99
101 bool operator!=(const GUIVisualizationSizeSettings& other);
102
104 void print(OutputDevice& dev, const std::string& name) const;
105
107 double minSize;
108
111
114
117};
118
119
122
125
127 bool operator==(const GUIVisualizationColorSettings& other);
128
130 bool operator!=(const GUIVisualizationColorSettings& other);
131
134
137
140
143
146
149
152
155
158
161
164
167
170
173
176
179
182
185
188
191
194
197
200
203
206
209
212
215
218
221
224
227
230
233
236
239
242
245
248
251
254
257
260
261};
262
263
266
268 static const RGBColor possible;
269
271 static const RGBColor source;
272
274 static const RGBColor target;
275
277 static const RGBColor special;
278
280 static const RGBColor conflict;
281};
282
285
287 static const double junctionBubbleRadius;
288
290 static const double junctionGeometryPointRadius;
291
293 static const double edgeGeometryPointRadius;
294
296 static const double laneGeometryPointRadius;
297
299 static const double connectionGeometryPointRadius;
300
302 static const double crossingGeometryPointRadius;
303
305 static const double polygonGeometryPointRadius;
306
308 static const double polygonContourWidth;
309
311 static const double polylineWidth;
312
314 static const double additionalGeometryPointRadius;
315};
316
319
321 static const double connectionWidth;
322};
323
324
327
330
332 static const double rerouterSize;
333
335 static const RGBColor VSSColor;
336
338 static const double VSSSize;
339
342
344 static const double calibratorWidth;
345
347 static const double calibratorHeight;
348
351
353 static const double routeProbeSize;
354
357
359 static const double vaporizerSize;
360
363
366
368 static const double tractionSubstationSize;
369
372
375
378
380 static const double arrowWidth;
381
383 static const double arrowLength;
384
386 static const double arrowOffset;
387
390};
391
392
395
397 static const RGBColor E1Color;
398
400 static const double E1Width;
401
403 static const double E1Height;
404
407
409 static const double E1InstantWidth;
410
412 static const double E1InstantHeight;
413
415 static const RGBColor E2Color;
416
418 static const double E2Width;
419
421 static const double E3Size;
422
424 static const RGBColor E3EntryColor;
425
427 static const RGBColor E3ExitColor;
428
430 static const double E3EntryExitWidth;
431
433 static const double E3EntryExitHeight;
434};
435
436
440 static const double stoppingPlaceSignOffset;
441
443 static const double busStopWidth;
444
446 static const double trainStopWidth;
447
449 static const double containerStopWidth;
450
452 static const double chargingStationWidth;
453};
454
455
458
460 static const double segmentWidthSmall;
461
463 static const double segmentWidthLarge;
464
466 static const double segmentLength;
467
470
473
476
479};
480
481
484
487
489 bool operator==(const GUIVisualizationWidthSettings& other);
490
492 bool operator!=(const GUIVisualizationWidthSettings& other);
493
495 double tripWidth;
496
499
501 double walkWidth;
502
504 double rideWidth;
505
508
511
513 static const double routeWidth;
514
516 static const double embeddedRouteWidth;
517};
518
519
522
524 static const double connectionsDemandMode;
525
527 static const double laneTextures;
528
530 static const double lockIcon;
531
533 static const double additionalTextures;
534
536 static const double geometryPointsDetails;
537
539 static const double geometryPointsText;
540
542 static const double stoppingPlaceDetails;
543
545 static const double stoppingPlaceText;
546
548 static const double detectorDetails;
549
551 static const double detectorText;
552
554 static const double calibratorText;
555
557 static const double stopsDetails;
558
560 static const double stopsText;
561
563 static const double vehicleTriangles;
564
566 static const double vehicleBoxes;
567
569 static const double vehicleShapes;
570
572 static const double personTriangles;
573
575 static const double personCircles;
576
578 static const double personShapes;
579
581 static const double personExaggeration;
582};
583
584
590
591public:
593 GUIVisualizationSettings(const std::string& _name, bool _netedit = false);
594
596 void copy(const GUIVisualizationSettings& s);
597
599 void initNeteditDefaults();
600 void initSumoGuiDefaults();
601
605 void save(OutputDevice& dev) const;
606
610 int getLaneEdgeMode() const;
611
615 int getLaneEdgeScaleMode() const;
616
621
626
628 bool operator==(const GUIVisualizationSettings& vs2);
629
631 static const RGBColor& getLinkColor(const LinkState& ls, bool realistic = false);
632
634 double getTextAngle(double objectAngle) const;
635
637 bool flippedTextAngle(double objectAngle) const;
638
640 bool drawAdditionals(const double exaggeration) const;
641
643 bool drawDetail(const double detail, const double exaggeration) const;
644
646 int getCircleResolution() const;
647
649 bool drawDottedContour(const double exaggeration) const;
650
652 bool drawMovingGeometryPoint(const double exaggeration, const double radius) const;
653
655 std::string name;
656
659
661 double angle;
662
664 bool dither;
665
667 bool fps;
668
671
674
677
681
684
687
690
692 static bool UseMesoSim;
693
696
699
702
705
708
711
714
717
718 // Setting bundles for optional drawing names with size and color
720
723
726
729
732
735
738
740 std::string edgeParam, laneParam;
742 std::string vehicleParam;
744 std::string vehicleScaleParam;
746 std::string vehicleTextParam;
747
749 std::string edgeData;
751 std::string edgeDataID;
752
756
761
764
767
770
773
776
779
782
785
788
791
794
797
798 // Setting bundles for controling the size of the drawn vehicles
800
801 // Setting bundles for optional drawing vehicle names or color value
803
805
806
809
812
815
816 // Setting bundles for controling the size of the drawn persons
818
819 // Setting bundles for optional drawing person names
822
823
826
829
832
833 // Setting bundles for controling the size of the drawn containers
835
836 // Setting bundles for optional drawing container names
839
840
843
846
847 // Setting bundles for optional drawing junction names and indices
849
856 // Setting bundles for controling the size of the drawn junction
859
860
863
865 // @todo decouple addExageration for POIs, Polygons, Triggers etc
867 // Setting bundles for controling the size of additional items
869 // Setting bundles for optional drawing additional names
871 // Setting bundles for optional drawing additional full names
874
875
878
881
882 // Setting bundles for controling the size of the drawn POIs
884
887
888 // Setting bundles for optional drawing poi names
890
891 // Setting bundles for optional drawing poi types
893
894 // Setting bundles for optional drawing poi text
896
898 std::string poiTextParam;
899
902
903 // Setting bundles for controling the size of the drawn polygons
905
906 // Setting bundles for optional drawing polygon names
908
909 // Setting bundles for optional drawing polygon types
912
913
919
922
925
927 std::string relDataAttr;
928
933
934
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
997
1003
1005 static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL;
1006 static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL;
1007 static const std::string SCHEME_NAME_PARAM_NUMERICAL;
1008 static const std::string SCHEME_NAME_EDGEDATA_NUMERICAL;
1010 static const std::string SCHEME_NAME_SELECTION;
1011 static const std::string SCHEME_NAME_TYPE;
1012 static const std::string SCHEME_NAME_PERMISSION_CODE;
1013 static const std::string SCHEME_NAME_EDGEDATA_LIVE;
1014
1015 static const double MISSING_DATA;
1017
1020
1023
1026
1029
1032
1035
1038
1041
1044
1047
1048private:
1051
1054};
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.
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
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.
bool dither
Information whether dithering shall be enabled.
GUIColorer vehicleColorer
The vehicle colorer.
GUIVisualizationSettings(const std::string &_name, bool _netedit=false)
constructor
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
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.
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
GUIColorer polyColorer
The polygon colorer.
int vehicleQuality
The quality of vehicle drawing.
GUIVisualizationTextSettings drawLinkJunctionIndex
bool drawForPositionSelection
whether drawing is performed for the purpose of selecting objects with a single click
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
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 drawAdditionals(const double exaggeration) const
check if additionals must be drawn
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
bool drawDottedContour(const double exaggeration) const
check if dotted contour can be drawn
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
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
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.
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 forceDrawForPositionSelection
flag to force draw for position selection (see drawForPositionSelection)
GUIVisualizationTextSettings personName
bool showColorLegend
Information whether the edge color legend shall be drawn.
std::string poiTextParam
key for rendering poi textual parameter
int getCircleResolution() const
function to calculate circle resolution for all circles drawn in drawGL(...) functions
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
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 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 laneTextures
details for lane textures
static const double additionalTextures
details for additional textures
static const double lockIcon
lock icons
static const double vehicleTriangles
details for draw person as triangles
static const double vehicleShapes
details for draw person as shapes
static const double detectorDetails
details for detectors
static const double personShapes
details for draw person as person shapes
static const double stoppingPlaceDetails
details for stopping places
static const double connectionsDemandMode
draw connections in demand mode
static const double detectorText
details for detector texts
static const double stoppingPlaceText
details for stopping place texts
static const double stopsText
details for stop texts
static const double personTriangles
details for draw person as triangles
static const double stopsDetails
details for stops
static const double geometryPointsDetails
details for Geometry Points
static const double vehicleBoxes
details for draw person as boxes
static const double calibratorText
details for calibrator text
static const double personCircles
details for draw person as circles
static const double personExaggeration
Exaggeration for persons (only used in NETEDIT)
static const double geometryPointsText
details for Geometry Points Texts
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 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 RGBColor secondInspectedColor
second color of dotted inspectedcontour
static const double segmentLength
length of dotted contour segments
static const double segmentWidthLarge
width of 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