 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef GUIVisualizationSettings_h
20 #define GUIVisualizationSettings_h
39 class BaseSchemeInfoSource;
66 double scaledSize(
double scale,
double constFactor = 0.1)
const;
89 GUIVisualizationSizeSettings(
double _minSize,
double _exaggeration = 1.0,
bool _constantSize =
false,
bool _constantSizeSelected =
false);
391 bool drawDetail(
const double detail,
const double exaggeration)
const;
static const double vehicleBoxes
details for draw person as boxes
GUIVisualizationSizeSettings polySize
std::string name
The name of this setting.
GUIColorer edgeColorer
The mesoscopic edge colorer.
int getLaneEdgeScaleMode() const
Returns the number of the active lane (edge) scaling schme.
bool fps
Information whether frames-per-second should be drawn.
RGBColor selectedEdgeColor
edge selection color
static bool UseMesoSim
this should be set at the same time as MSGlobals::gUseMesoSim
bool hideConnectors
flag to show or hidde connectors
static const RGBColor busStop
color for busStops
bool operator==(const GUIVisualizationColorSettings &other)
equality comparator
static const double personShapes
details for draw person as person shapes
bool laneShowBorders
Information whether lane borders shall be drawn.
std::string edgeParam
key for coloring by edge parameter
struct for width settings
static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL
GUIVisualizationSizeSettings(double _minSize, double _exaggeration=1.0, bool _constantSize=false, bool _constantSizeSelected=false)
constructor
double laneMinSize
The minimum visual lane width for drawing.
static const double stoppingPlaceDetails
details for stopping places
GUIVisualizationSizeSettings junctionSize
GUIVisualizationTextSettings vehicleValue
GUIVisualizationTextSettings tlsPhaseIndex
double getTextAngle(double objectAngle) const
return an angle that is suitable for reading text aligned with the given angle (degrees)
RGBColor bgColor
background text color
int getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring schme.
Static storage of an output device and its base (abstract) implementation.
bool operator==(const GUIVisualizationSizeSettings &other)
equality comparator
bool operator!=(const GUIVisualizationTextSettings &other)
inequality comparator
double angle
The current view rotation angle.
bool drawBoundaries
enable or disable draw boundaries
bool constantSizeSelected
whether only selected objects shall be drawn with constant
GUIVisualizationTextSettings containerName
static const double route
width for routes
static const RGBColor E2
color for E2 detectors
static const std::string SCHEME_NAME_PERMISSION_CODE
static const double stopsText
details for stop texts
bool showGrid
Information whether a grid shall be shown.
bool forceDrawForSelecting
flag to force draw to selecting (see drawForSelecting)
GUIVisualizationWidthSettings widthSettings
width settings
static const double personTriangles
details for draw person as triangles
GUIVisualizationSettings(bool _netedit=false)
constructor
bool netedit
Whether the settings are for Netedit.
static const double ride
width for rides
GUIColorer personColorer
The person colorer.
static const RGBColor crossing
color for crossings
struct for detail settings
RGBColor selectedRouteColor
route selection color (used for routes and vehicle stops)
GUIVisualizationSizeSettings containerSize
static const RGBColor childConnections
color for child connections between parents and child elements
GUIVisualizationTextSettings drawLinkJunctionIndex
GUIVisualizationSizeSettings vehicleSize
bool showRails
Information whether rails shall be drawn.
GUIColorer vehicleColorer
The vehicle colorer.
static const double additionalTextures
details for additional textures
RGBColor selectedConnectionColor
connection selection color
GUIScaler edgeScaler
The mesoscopic edge scaler.
static const RGBColor containerStop
color for containerStops
GUIVisualizationTextSettings polyName
void print(OutputDevice &dev, const std::string &name) const
print values in output device
bool drawMinGap
Information whether the minimum gap shall be drawn.
GUIColorer polyColorer
The polygon colorer.
static const RGBColor crossingPriority
color for priority crossing
static const double vehicleShapes
details for draw person as shapes
static const RGBColor chargingStation
color for chargingStations
static const double detectorDetails
details for detectors
void initNeteditDefaults()
init default settings
static const double geometryPointsText
details for Geometry Points Texts
double scaledSize(double scale, double constFactor=0.1) const
get scale size
RGBColor selectedProhibitionColor
prohibition selection color
GUIVisualizationTextSettings junctionName
void initSumoGuiDefaults()
GUIVisualizationTextSettings(bool _show, double _size, RGBColor _color, RGBColor _bgColor=RGBColor(128, 0, 0, 0), bool _constSize=true)
constructor
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring schme.
GUIColorer junctionColorer
The junction colorer.
GUIVisualizationTextSettings polyType
static const RGBColor containerStop_sign
color for containerStop signs
bool drawCrossingsAndWalkingareas
whether crosings and walkingareas shall be drawn
static const RGBColor E1Instant
color for E1 Instant detectors
double gridXSize
Information about the grid spacings.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
RGBColor backgroundColor
The background color to use.
GUIVisualizationTextSettings internalEdgeName
GUIVisualizationTextSettings addName
static const double lockIcon
lock icons
void save(OutputDevice &dev) const
Writes the settings into an output device.
bool showBikeMarkings
Information whether bicycle lane marking shall be drawn.
GUIVisualizationSizeSettings poiSize
GUIVisualizationDetailSettings detailSettings
detail settings
bool constSize
@brif flag to avoid size changes
RGBColor selectedAdditionalColor
additional selection color (busStops, Detectors...)
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
static const RGBColor parkingAreaSign
color for parkingArea sign
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
static const double calibratorText
details for calibrator text
bool showColorLegend
Information whether the colo legend shall be drawn.
GUIScaler laneScaler
The lane scaler.
static const std::string SCHEME_NAME_SELECTION
bool constantSize
whether the object shall be drawn with constant size regardless of zoom
static const double geometryPointsDetails
details for Geometry Points
int vehicleQuality
The quality of vehicle drawing.
static const RGBColor E3Entry
color for Entrys
bool showSublanes
Whether to show sublane boundaries.
static const RGBColor routeProbe
color for route probes
static const std::string SCHEME_NAME_EDGEDATA_NUMERICAL
RGBColor selectedPersonColor
person selection color
static const double personTrip
width for person trips
static const RGBColor personTrip
color for personStops
double scale
information about a lane's width (temporary, used for a single view)
GUIVisualizationTextSettings vehicleName
static const double personExaggeration
Exaggeration for persons (only used in NETEDIT)
static const RGBColor vaporizer
color for vaporizers
int containerQuality
The quality of container drawing.
static const double trip
width for trips
double selectionScale
the current selection scaling in NETEDIT (temporary)
bool dither
Information whether dithering shall be enabled.
bool operator!=(const GUIVisualizationColorSettings &other)
inequality comparator
GUIVisualizationTextSettings addFullName
GUIVisualizationTextSettings drawLinkTLIndex
GUIVisualizationSizeSettings personSize
static const double laneTextures
details for lane textures
static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL
scheme names
static const RGBColor parkingArea
color for parkingAreas
GUIVisualizationTextSettings internalJunctionName
static const RGBColor crossingInvalid
color for invalid crossing
double minSize
The minimum size to draw this object.
GUIScaleScheme & getLaneEdgeScaleScheme()
Returns the current lane (edge) scaling schme.
static const RGBColor calibrator
color for Calibrators
GUIVisualizationTextSettings streetName
GUIVisualizationColorSettings colorSettings
color settings
static const std::string SCHEME_NAME_TYPE
RGBColor selectionColor
basic selection color
int getCircleResolution() const
function to calculate circle resolution for all circles drawn in drawGL(...) functions
static const RGBColor & getLinkColor(const LinkState &ls)
map from LinkState to color constants
static const RGBColor chargingStation_sign
color for chargingStation sign
static const double vehicleTriangles
details for draw person as triangles
bool showSizeLegend
Information whether the size legend shall be drawn.
static const RGBColor E3Exit
color for Exits
GUIVisualizationTextSettings cwaEdgeName
GUIVisualizationTextSettings poiType
GUIVisualizationTextSettings poiName
bool showLaneDirection
Whether to show direction indicators for lanes.
bool drawLaneChangePreference
Information whether the lane change preference shall be drawn.
int addMode
The additional structures visualization scheme.
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
static const double detectorText
details for detector texts
bool showBlinker
Information whether vehicle blinkers shall be drawn.
static const RGBColor chargingStation_charge
color for chargingStation during charging
static const RGBColor busStop_sign
color for busStops signs
static const double stoppingPlaceText
details for stopping place texts
bool operator!=(const GUIVisualizationSizeSettings &other)
inequality comparator
static const RGBColor ride
color for rides
static const RGBColor parkingSpaceInnen
color for parkingArea innen
GUIVisualizationColorSettings()
constructor
int personQuality
The quality of person drawing.
RGBColor selectedPersonPlanColor
person plan selection color (Rides, Walks, personStops...)
static const RGBColor E1
color for E1 detectors
GUIVisualizationSizeSettings addSize
GUIVisualizationTextSettings personValue
GUIVisualizationTextSettings personName
GUIColorer laneColorer
The lane colorer.
void print(OutputDevice &dev, const std::string &name) const
print values in output device
GUIColorer containerColorer
The container colorer.
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
static const RGBColor stops
color for Stops
RGBColor selectedCrossingColor
crossings selection color
bool spreadSuperposed
Whether to improve visualisation of superposed (rail) edges.
static const float dottedContour
width of dotted contours (note: must be float)
static const RGBColor walk
color for walks
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 drawBrakeGap
Information whether the brake gap shall be drawn.
bool drawJunctionShape
whether the shape of the junction should be drawn
static const double stopsDetails
details for stops
struct for color settings
static const double connectionsDemandMode
draw connections in demand mode
GUIColorer poiColorer
The POI colorer.
static const RGBColor parkingSpace
color for parkingArea sign
Stores the information about how to visualize structures.
static const RGBColor vehicleTrips
color for vehicle trips
static const RGBColor personStops
color for personStops
bool operator==(const GUIVisualizationSettings &vs2)
Comparison operator.
RGBColor selectedVehicleColor
vehicle selection color
bool gaming
whether the application is in gaming mode or not
RGBColor selectedLaneColor
lane selection color
GUIVisualizationTextSettings edgeName
GUIVisualizationTextSettings edgeValue
std::string edgeData
key for coloring by edgeData
bool showBTRange
Information whether the communication range shall be drawn.
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
static const double dottedContourSegmentLenght
lenght of dotted contour segments
static const double personCircles
details for draw person as circles
double exaggeration
The size exaggeration (upscale)
bool operator==(const GUIVisualizationTextSettings &other)
equality comparator
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
static const double walk
width for walks