19 #ifndef GUIVisualizationSettings_h 20 #define GUIVisualizationSettings_h 39 class BaseSchemeInfoSource;
62 return show == other.
show &&
64 color == other.
color &&
69 return !((*this) == other);
76 dev.
writeAttr(name +
"_bgColor", bgColor);
77 dev.
writeAttr(name +
"_constantSize", constSize);
80 double scaledSize(
double scale,
double constFactor = 0.1)
const {
81 return constSize ? size / scale : size * constFactor;
88 minSize(_minSize), exaggeration(_exaggeration), constantSize(_constantSize), constantSizeSelected(_constantSizeSelected) {}
106 return !((*this) == other);
110 dev.
writeAttr(name +
"_minSize", minSize);
111 dev.
writeAttr(name +
"_exaggeration", exaggeration);
112 dev.
writeAttr(name +
"_constantSize", constantSize);
113 dev.
writeAttr(name +
"_constantSizeSelected", constantSizeSelected);
336 void initNeteditDefaults();
337 void initSumoGuiDefaults();
347 int getLaneEdgeMode()
const;
352 int getLaneEdgeScaleMode()
const;
410 double getTextAngle(
double objectAngle)
const;
GUIVisualizationSizeSettings junctionSize
GUIVisualizationTextSettings junctionName
GUIVisualizationSizeSettings(double _minSize, double _exaggeration=1.0, bool _constantSize=false, bool _constantSizeSelected=false)
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
bool showSizeLegend
Information whether the size legend shall be drawn.
double scale
information about a lane's width (temporary, used for a single view)
GUIVisualizationTextSettings poiType
GUIVisualizationTextSettings streetName
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
static const RGBColor SUMO_color_busStop_sign
color for busStops signs
bool showBlinker
Information whether vehicle blinkers shall be drawn.
static const RGBColor SUMO_color_chargingStation_charge
color for chargingStation during charging
GUIVisualizationTextSettings addName
RGBColor selectedEdgeColor
GUIVisualizationTextSettings personValue
RGBColor selectedConnectionColor
GUIVisualizationTextSettings personName
static const RGBColor SUMO_color_E1
color for E1 detectors
GUIVisualizationTextSettings poiName
bool gaming
whether the application is in gaming mode or not
bool operator!=(const GUIVisualizationTextSettings &other)
bool showBTRange
Information whether the communication range shall be drawn.
double exaggeration
The size exaggeration (upscale)
bool operator==(const GUIVisualizationTextSettings &other)
static const RGBColor SUMO_color_chargingStation_sign
color for chargingStation sign
GUIColorer laneColorer
The lane colorer.
GUIColorer containerColorer
The container colorer.
bool operator==(const GUIVisualizationSizeSettings &other)
Stores the information about how to visualize structures.
GUIColorer edgeColorer
The mesoscopic edge colorer.
bool drawLaneChangePreference
Information whether the lane change preference shall be drawn.
bool showRails
Information whether rails shall be drawn.
static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL
bool constantSizeSelected
GUIVisualizationTextSettings vehicleName
static const RGBColor SUMO_color_chargingStation
color for chargingStations
RGBColor selectedLaneColor
int editMode
the current NETEDIT mode (temporary)
bool showLaneDirection
Whether to show direction indicators for lanes.
void print(OutputDevice &dev, const std::string &name) const
bool laneShowBorders
Information whether lane borders shall be drawn.
static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL
bool netedit
Whether the settings are for Netedit.
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
bool dither
Information whether dithering shall be enabled.
static const RGBColor SUMO_color_E2
color for E2 detectors
GUIVisualizationSizeSettings polySize
GUIColorer vehicleColorer
The vehicle colorer.
std::string edgeParam
key for coloring by edge parameter
GUIVisualizationSizeSettings addSize
GUIColorer poiColorer
The POI colorer.
GUIVisualizationTextSettings vehicleValue
std::string name
The name of this setting.
static const RGBColor SUMO_color_containerStop_sign
color for containerStop signs
double minSize
The minimum size to draw this object.
double scaledSize(double scale, double constFactor=0.1) const
bool drawMinGap
Information whether the minimum gap shall be drawn.
int addMode
The additional structures visualization scheme.
GUIVisualizationTextSettings polyType
bool showSublanes
Whether to show sublane boundaries.
GUIVisualizationTextSettings(bool _show, double _size, RGBColor _color, RGBColor _bgColor=RGBColor(128, 0, 0, 0), bool _constSize=true)
RGBColor selectionColor
NETEDIT special colors.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
GUIColorer polyColorer
The polygon colorer.
GUIColorer personColorer
The person colorer.
GUIColorer junctionColorer
The junction colorer.
double angle
The current view rotation angle.
static const RGBColor SUMO_color_E3Entry
color for Entrys
static const RGBColor SUMO_color_busStop
color for busStops
static const RGBColor SUMO_color_E1Instant
color for E1 Instant detectors
double laneMinSize
The minimum visual lane width for drawing.
GUIScaler edgeScaler
The mesoscopic edge scaler.
RGBColor selectedAdditionalColor
int containerQuality
The quality of container drawing.
RGBColor backgroundColor
The background color to use.
static const RGBColor SUMO_color_containerStop
color for containerStops
void print(OutputDevice &dev, const std::string &name) const
GUIVisualizationSizeSettings poiSize
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
double selectionScale
the current selection scaling in NETEDIT (temporary)
GUIVisualizationSizeSettings containerSize
GUIVisualizationTextSettings addFullName
GUIVisualizationSizeSettings personSize
int personQuality
The quality of person drawing.
bool showGrid
Information whether a grid shall be shown.
bool drawCrossingsAndWalkingareas
whether crosings and walkingareas shall be drawn
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
bool operator!=(const GUIVisualizationSizeSettings &other)
Static storage of an output device and its base (abstract) implementation.
static const RGBColor SUMO_color_E3Exit
color for Exits
GUIVisualizationSizeSettings vehicleSize
bool drawJunctionShape
whether the shape of the junction should be drawn
int vehicleQuality
The quality of vehicle drawing.
static bool UseMesoSim
this should be set at the same time as MSGlobals::gUseMesoSim
int editAdditionalMode
the current NETEDIT additional mode (temporary)
bool drawForSelecting
whether drawing is performed for the purpose of selecting objects
GUIScaler laneScaler
The lane scaler.
bool spreadSuperposed
Whether to improve visualisation of superposed (rail) edges.
bool showBikeMarkings
Information whether bicycle lane marking shall be drawn.
GUIVisualizationTextSettings polyName
GUIVisualizationTextSettings containerName