223#define COL_SCHEME_EMISSION RGBColor(255,255,210)
224#define COL_SCHEME_MISC RGBColor(210,220,255)
225#define COL_SCHEME_STATIC RGBColor(230,230,230)
226#define COL_SCHEME_DYNAMIC RGBColor(220,255,220)
241 constSize(_constSize),
242 onlySelected(_onlySelected) {
296 exaggeration(_exaggeration),
297 constantSize(_constantSize),
298 constantSizeSelected(_constantSizeSelected) {
305 double exaggerationFinal;
312 exaggerationFinal = 1;
318 return exaggerationFinal;
354 selectionColor(0, 0, 204, 255),
355 selectedEdgeColor(0, 0, 204, 255),
356 selectedLaneColor(0, 0, 128, 255),
357 selectedConnectionColor(0, 0, 100, 255),
358 selectedProhibitionColor(0, 0, 120, 255),
359 selectedCrossingColor(0, 100, 196, 255),
360 selectedAdditionalColor(0, 0, 150, 255),
361 selectedRouteColor(0, 0, 150, 255),
362 selectedVehicleColor(0, 0, 100, 255),
363 selectedPersonColor(0, 0, 120, 255),
364 selectedPersonPlanColor(0, 0, 130, 255),
365 selectedContainerColor(0, 0, 120, 255),
366 selectedContainerPlanColor(0, 0, 130, 255),
367 selectedEdgeDataColor(0, 0, 150, 255),
368 busStopColor(76, 170, 50),
369 busStopColorSign(255, 235, 0),
370 trainStopColor(76, 170, 50),
371 trainStopColorSign(255, 235, 0),
372 containerStopColor(83, 89, 172),
373 containerStopColorSign(177, 184, 186, 171),
374 chargingStationColor(114, 210, 252),
375 chargingStationColorSign(255, 235, 0),
376 chargingStationColorCharge(255, 180, 0),
377 parkingAreaColor(83, 89, 172),
378 parkingAreaColorSign(177, 184, 186),
379 parkingSpaceColorContour(0, 255, 0),
380 parkingSpaceColor(255, 200, 200),
381 stopColor(220, 20, 30),
382 waypointColor(0, 127, 14),
383 vehicleTripColor(255, 128, 0),
384 stopPersonColor(255, 0, 0),
385 personTripColor(200, 0, 255),
386 walkColor(0, 255, 0),
387 rideColor(0, 0, 255),
388 stopContainerColor(255, 0, 0),
389 transportColor(100, 200, 0),
390 transhipColor(100, 0, 200) {
481 personTripWidth(0.25),
484 transportWidth(0.25),
485 transhipWidth(0.25) {
521 showGrid(false), gridXSize(100), gridYSize(100),
522 laneShowBorders(false), showBikeMarkings(true), showLinkDecals(true),
523 realisticLinkRules(false),
524 showLinkRules(true), showRails(true),
525 edgeName(false, 60,
RGBColor(255, 128, 0, 255)),
526 internalEdgeName(false, 45,
RGBColor(128, 64, 0, 255)),
527 cwaEdgeName(false, 60,
RGBColor::MAGENTA),
528 streetName(false, 60,
RGBColor::YELLOW),
529 edgeValue(false, 100,
RGBColor::CYAN),
530 hideConnectors(false),
531 laneWidthExaggeration(1),
533 showLaneDirection(false),
535 spreadSuperposed(false),
536 edgeParam(
"EDGE_KEY"),
537 laneParam(
"LANE_KEY"),
538 vehicleParam(
"PARAM_NUMERICAL"),
539 vehicleScaleParam(
"PARAM_NUMERICAL"),
540 vehicleTextParam(
"PARAM_TEXT"),
543 edgeValueHideCheck(false),
544 edgeValueHideThreshold(0),
545 edgeValueHideCheck2(false),
546 edgeValueHideThreshold2(200),
547 vehicleQuality(0), showBlinker(true),
548 drawLaneChangePreference(false),
552 showRouteIndex(false),
554 showParkingInfo(false),
556 vehicleName(false, 60,
RGBColor(204, 153, 0, 255)),
557 vehicleValue(false, 80,
RGBColor::CYAN),
558 vehicleScaleValue(false, 80,
RGBColor::GREY),
559 vehicleText(false, 80,
RGBColor::RED),
560 personQuality(netedit ? 2 : 0),
562 personName(false, 60,
RGBColor(0, 153, 204, 255)),
563 personValue(false, 80,
RGBColor::CYAN),
566 containerName(false, 60,
RGBColor(0, 153, 204, 255)),
567 drawLinkTLIndex(false, 65,
RGBColor(128, 128, 255, 255),
RGBColor::INVISIBLE, false),
568 drawLinkJunctionIndex(false, 65,
RGBColor(128, 128, 255, 255),
RGBColor::INVISIBLE, false),
569 junctionID(false, 60,
RGBColor(0, 255, 128, 255)),
570 junctionName(false, 60,
RGBColor(192, 255, 128, 255)),
571 internalJunctionName(false, 50,
RGBColor(0, 204, 128, 255)),
572 tlsPhaseIndex(false, 150,
RGBColor::YELLOW),
573 tlsPhaseName(false, 150,
RGBColor::ORANGE),
574 showLane2Lane(false),
575 drawJunctionShape(true),
576 drawCrossingsAndWalkingareas(true),
580 addName(false, 60,
RGBColor(255, 0, 128, 255)),
581 addFullName(false, 60,
RGBColor(255, 0, 128, 255)),
584 poiName(false, 50,
RGBColor(255, 0, 128, 255)),
585 poiType(false, 60,
RGBColor(255, 0, 128, 255)),
586 poiText(false, 80,
RGBColor(140, 0, 255, 255)),
587 poiTextParam(
"PARAM_TEXT"),
588 polySize(0), polyName(false, 50,
RGBColor(255, 0, 128, 255)),
589 polyType(false, 60,
RGBColor(255, 0, 128, 255)),
590 dataValue(false, 100,
RGBColor::CYAN),
591 tazRelWidthExaggeration(1),
592 edgeRelWidthExaggeration(1),
593 relDataAttr(
"count"),
594 dataValueHideCheck(false),
595 dataValueHideThreshold(0),
596 show3DTLSLinkMarkers(true),
597 show3DTLSDomes(true),
598 generate3DTLSModels(false),
602 showSizeLegend(true),
603 showColorLegend(false),
604 showVehicleColorLegend(false),
606 drawBoundaries(false),
607 selectorFrameScale(1.),
608 drawForPositionSelection(false),
609 drawForRectangleSelection(false),
610 forceDrawForPositionSelection(false),
611 forceDrawForRectangleSelection(false),
612 geometryIndices(false, 50,
RGBColor(255, 0, 128, 255)),
614 disableLaneIcons(false) {
1152 scheme.
addColor(
RGBColor(192, 255, 192), 11,
"traffic_light_right_on_red");
1185 laneScheme.
addColor(5, 1,
"selected");
1189 laneScheme.
addColor(10, 150. / 3.6);
1205 laneScheme.
addColor(10, 10. / 7.5 / 5.);
1208 laneScheme.
addColor(10, 0.05 / 7.5 / 2.);
1211 laneScheme.
addColor(10, .005 / 7.5 / 5.);
1214 laneScheme.
addColor(10, .125 / 7.5 / 5.);
1217 laneScheme.
addColor(10, .02 / 7.5 / 4.);
1220 laneScheme.
addColor(10, .005 / 7.5 * 100.);
1234 laneScheme =
GUIScaleScheme(
"by given length/geometrical length", 0);
1238 laneScheme.
addColor(-1000, -1000.);
1248 laneScheme.
addColor(10, 150. / 3.6);
1256 laneScheme.
addColor(10, 1. / 7.5 / 5.);
1354 edgeScheme.
addColor(5, 1.,
"selected");
1357 edgeScheme.
addColor(10, 150. / 3.6);
1363 edgeScheme.
addColor(10, 150. / 3.6);
1382 vehScheme.
addColor(5, 1.,
"selected");
1411 vehScheme.
addColor(5, -100,
"opposite lane");
1599 scheme.
addColor(
RGBColor(192, 255, 192), 11,
"traffic_light_right_on_red");
2301 throw ProcessError(
"No color defined for LinkState '" + std::string(ls, 1) +
"'");
2308 double viewAngle = objectAngle -
angle;
2309 while (viewAngle < 0) {
2313 viewAngle = fmod(viewAngle, 360);
2314 if (viewAngle > 90 && viewAngle < 270) {
2323 double viewAngle = objectAngle -
angle;
2324 while (viewAngle < 0) {
2328 viewAngle = fmod(viewAngle, 360);
2329 return (viewAngle > 90 && viewAngle < 270);
2336 return (
scale * exaggeration) > 1.;
2345 return ((
scale * exaggeration) >= detail);
2354 }
else if (
scale >= 10) {
2356 }
else if (
scale >= 5) {
2369 return (
scale * exaggeration) > 3.;
2376 return (
scale * radius * exaggeration > 10);
GUISelectedStorage gSelected
A global holder of selected objects.
GUIPropertyScheme< RGBColor > GUIColorScheme
GUIPropertyScheme< double > GUIScaleScheme
const RGBColor SUMO_color_EQUAL(128, 128, 128)
const RGBColor SUMO_color_TL_YELLOW_MAJOR(255, 255, 128)
#define COL_SCHEME_DYNAMIC
const RGBColor SUMO_color_ALLWAY_STOP(0, 0, 192)
const RGBColor SUMO_color_TL_YELLOW_MINOR(255, 255, 0)
const RGBColor SUMO_color_TL_OFF_NOSIGNAL(0, 255, 255)
const RGBColor OSG_color_SKY(51, 51, 102, 255)
const RGBColor SUMO_color_TL_REDYELLOW(255, 128, 0)
const RGBColor SUMO_color_TL_RED(255, 0, 0)
const RGBColor OSG_color_AMBIENT(32, 32, 32, 255)
const RGBColor SUMO_color_MAJOR(255, 255, 255)
const RGBColor OSG_color_DIFFUSE(64, 64, 64, 255)
const RGBColor SUMO_color_TL_GREEN_MINOR(0, 179, 0)
const RGBColor SUMO_color_ZIPPER(192, 128, 64)
const RGBColor SUMO_color_TL_OFF_BLINKING(128, 64, 0)
#define COL_SCHEME_EMISSION
const RGBColor SUMO_color_DEADEND(0, 0, 0)
const RGBColor SUMO_color_MINOR(51, 51, 51)
const RGBColor SUMO_color_TL_GREEN_MAJOR(0, 255, 0)
const RGBColor SUMO_color_STOP(128, 0, 128)
const SVCPermissions SVCAll
all VClasses are allowed
@ SVC_SHIP
is an arbitrary ship
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_NON_ROAD
classes which (normally) do not drive on normal roads
@ SVC_DELIVERY
vehicle is a small delivery vehicle
@ SVC_MOPED
vehicle is a moped
@ SVC_TAXI
vehicle is a taxi
@ SVC_BUS
vehicle is a bus
@ SVC_PEDESTRIAN
pedestrian
@ SUMO_TAG_VIEWSETTINGS_POIS
@ SUMO_TAG_VIEWSETTINGS_3D
@ SUMO_TAG_VIEWSETTINGS_BACKGROUND
@ SUMO_TAG_VIEWSETTINGS_LEGEND
@ SUMO_TAG_VIEWSETTINGS_OPENGL
@ SUMO_TAG_VIEWSETTINGS_ADDITIONALS
@ SUMO_TAG_VIEWSETTINGS_PERSONS
@ SUMO_TAG_VIEWSETTINGS_JUNCTIONS
@ SUMO_TAG_VIEWSETTINGS_VEHICLES
@ SUMO_TAG_VIEWSETTINGS_EDGES
@ SUMO_TAG_VIEWSETTINGS_SCHEME
@ SUMO_TAG_VIEWSETTINGS_POLYS
@ SUMO_TAG_VIEWSETTINGS_CONTAINERS
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
@ LINKSTATE_TL_REDYELLOW
The link has red light (must brake) but indicates upcoming green.
@ LINKSTATE_ALLWAY_STOP
This is an uncontrolled, all-way stop link.
@ LINKSTATE_MAJOR
This is an uncontrolled, major link, may pass.
@ LINKSTATE_STOP
This is an uncontrolled, minor link, has to stop.
@ LINKSTATE_TL_YELLOW_MAJOR
The link has yellow light, may pass.
@ LINKSTATE_TL_GREEN_MAJOR
The link has green light, may pass.
@ LINKSTATE_EQUAL
This is an uncontrolled, right-before-left link.
@ LINKSTATE_DEADEND
This is a dead end link.
@ LINKSTATE_ZIPPER
This is an uncontrolled, zipper-merge link.
@ LINKSTATE_TL_OFF_BLINKING
The link is controlled by a tls which is off and blinks, has to brake.
@ LINKSTATE_TL_YELLOW_MINOR
The link has yellow light, has to brake anyway.
@ LINKSTATE_TL_RED
The link has red light (must brake)
@ LINKSTATE_TL_GREEN_MINOR
The link has green light, has to brake.
@ LINKSTATE_MINOR
This is an uncontrolled, minor link, has to brake.
@ LINKSTATE_TL_OFF_NOSIGNAL
The link is controlled by a tls which is off, not blinking, may pass.
const double INVALID_DOUBLE
void setAllowsNegativeValues(bool value)
int addColor(const T &color, const double threshold, const std::string &name="")
void save(OutputDevice &dev, const std::string &prefix="") const
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
Stores the information about how to visualize structures.
GUIVisualizationTextSettings addName
GUIVisualizationTextSettings tlsPhaseIndex
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
RGBColor skyColor
sky background color
GUIVisualizationSizeSettings junctionSize
static const std::string SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL
static const double MISSING_DATA
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
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.
double edgeValueHideThreshold
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 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 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.
GUIVisualizationSizeSettings personSize
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
GUIVisualizationTextSettings cwaEdgeName
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.
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.
bool show3DTLSLinkMarkers
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.
bool drawDetail(const double detail, const double exaggeration) const
check if details can be drawn for the given GUIVisualizationDetailSettings and current scale and exxa...
static RGBColor COL_MISSING_DATA
bool drawMinGap
Information whether the minimum gap shall be drawn.
GUIVisualizationTextSettings streetName
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.
double edgeValueHideThreshold2
GUIColorer laneColorer
The lane colorer.
GUIVisualizationTextSettings polyName
double tazRelWidthExaggeration
The tazRelation exaggeration (upscale thickness)
void initSumoGuiDefaults()
bool laneShowBorders
Information whether lane borders shall be drawn.
GUIVisualizationTextSettings tlsPhaseName
GUIVisualizationTextSettings edgeName
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 dataValueHideThreshold
double gridXSize
Information about the grid spacings.
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
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.
double angle
The current view rotation angle.
Static storage of an output device and its base (abstract) implementation.
void lf()
writes a line feed if applicable
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
static const RGBColor BLUE
static const RGBColor GREY
static const RGBColor YELLOW
static const RGBColor INVISIBLE
static const RGBColor ORANGE
static const RGBColor CYAN
static const RGBColor GREEN
static const RGBColor BLACK
static const RGBColor MAGENTA
static const RGBColor RED
named colors
static const double routeProbeSize
RouteProbe size.
static const RGBColor calibratorColor
color for Calibrators
static const double calibratorWidth
Calibrator width.
static const double vaporizerSize
Vaporizer size.
static const double arrowLength
arrow length
static const double rerouterSize
rerouter size
static const double calibratorHeight
Calibrator height.
static const RGBColor VSSColor
color for VSS
static const RGBColor overheadWireColorBot
overhead wire color bot
static const double arrowWidth
arrow width
static const RGBColor connectionColor
connection color
static const RGBColor overheadWireColorTop
overhead wire color top
static const double arrowOffset
arrow offset
static const RGBColor TLSConnectionColor
connection color between E1/junctions and TLS
static const double tractionSubstationSize
tractionSubstation size
static const RGBColor vaporizerColor
color for vaporizers
static const RGBColor overheadWireColorSelected
overhead wire color selected
static const RGBColor rerouterColor
color for rerouters
static const RGBColor connectionColorSelected
connection color selected
static const RGBColor routeProbeColor
color for route probes
static const double VSSSize
VSS size.
static const RGBColor special
color for selected special candidate element (Usually selected using shift+click)
static const RGBColor conflict
color for selected conflict candidate element (Usually selected using ctrl+click)
static const RGBColor target
color for selected candidate target
static const RGBColor possible
color for possible candidate element
static const RGBColor source
color for selected candidate source
struct for color settings
RGBColor vehicleTripColor
color for vehicle trips
RGBColor parkingSpaceColorContour
color for parkingSpace contour
RGBColor selectionColor
basic selection color
RGBColor walkColor
color for walks
static const RGBColor childConnectionColor
color for child connections between parents and child elements
RGBColor rideColor
color for rides
RGBColor selectedEdgeColor
edge selection color
RGBColor selectedPersonPlanColor
person plan selection color (Rides, Walks, stopPersons...)
static const RGBColor SUMO_color_DEADEND_SHOW
color for highlighthing deadends
RGBColor stopPersonColor
color for stopPersons
RGBColor selectedCrossingColor
crossings selection color
static const RGBColor crossingPriorityColor
color for priority crossing
RGBColor chargingStationColor
color for chargingStations
RGBColor parkingSpaceColor
color for parkingSpace innen
RGBColor selectedLaneColor
lane selection color
static const RGBColor crossingInvalidColor
color for invalid crossing
RGBColor selectedRouteColor
route selection color (used for routes and vehicle stops)
RGBColor selectedEdgeDataColor
edge data selection color
bool operator==(const GUIVisualizationColorSettings &other)
equality comparator
RGBColor trainStopColorSign
color for trainStops signs
RGBColor transhipColor
color for tranships
RGBColor waypointColor
color for Waypoints
static const RGBColor crossingColor
color for crossings
static const RGBColor editShapeColor
color for edited shapes (Junctions, crossings and connections)
RGBColor containerStopColor
color for containerStops
RGBColor selectedProhibitionColor
prohibition selection color
GUIVisualizationColorSettings()
constructor
RGBColor selectedConnectionColor
connection selection color
RGBColor busStopColorSign
color for busStops signs
RGBColor selectedContainerColor
container selection color
RGBColor containerStopColorSign
color for containerStop signs
RGBColor selectedAdditionalColor
additional selection color (busStops, Detectors...)
RGBColor parkingAreaColorSign
color for parkingArea sign
RGBColor transportColor
color for transport
RGBColor busStopColor
color for busStops
bool operator!=(const GUIVisualizationColorSettings &other)
inequality comparator
RGBColor selectedVehicleColor
vehicle selection color
RGBColor chargingStationColorCharge
color for chargingStation during charging
RGBColor parkingAreaColor
color for parkingAreas
RGBColor selectedPersonColor
person selection color
RGBColor selectedContainerPlanColor
container plan selection color (Rides, Walks, containerStops...)
RGBColor personTripColor
color for stopPersons
RGBColor stopContainerColor
color for containerStops
RGBColor trainStopColor
color for trainStops
RGBColor stopColor
color for Stops
RGBColor chargingStationColorSign
color for chargingStation sign
static const double connectionWidth
connection width
static const double 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.
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
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
struct for width settings
double tripWidth
width for trips
double transportWidth
width for rides
bool operator!=(const GUIVisualizationWidthSettings &other)
inequality comparator
double walkWidth
width for walks
GUIVisualizationWidthSettings()
constructor
bool operator==(const GUIVisualizationWidthSettings &other)
equality comparator
double personTripWidth
width for person trips
static const double embeddedRouteWidth
width for embeddedroutes
double transhipWidth
width for rides
static const double routeWidth
width for routes
double rideWidth
width for rides