SUMO - Simulation of Urban MObility
GUIVisualizationSettings Class Reference

Stores the information about how to visualize structures. More...

#include <GUIVisualizationSettings.h>

Collaboration diagram for GUIVisualizationSettings:
Collaboration graph

Public Member Functions

int getLaneEdgeMode () const
 Returns the number of the active lane (edge) coloring schme. More...
 
int getLaneEdgeScaleMode () const
 Returns the number of the active lane (edge) scaling schme. More...
 
GUIScaleSchemegetLaneEdgeScaleScheme ()
 Returns the current lane (edge) scaling schme. More...
 
GUIColorSchemegetLaneEdgeScheme ()
 Returns the current lane (edge) coloring schme. More...
 
 GUIVisualizationSettings ()
 constructor More...
 
bool operator== (const GUIVisualizationSettings &vs2)
 Comparison operator. More...
 
void save (OutputDevice &dev) const
 Writes the settings into an output device. More...
 

Static Public Member Functions

static const RGBColorgetLinkColor (const LinkState &ls)
 

Data Fields

bool antialiase
 Information whether antialiase shall be enabled. More...
 
bool dither
 Information whether dithering shall be enabled. More...
 
bool drawForSelecting
 whether drawing is performed for the purpose of selecting objects More...
 
int editAdditionalMode
 the current NETEDIT additional mode (temporary) More...
 
int editMode
 the current NETEDIT mode (temporary) More...
 
bool gaming
 whether the application is in gaming mode or not More...
 
std::string name
 The name of this setting. More...
 
double scale
 information about a lane's width (temporary, used for a single view) More...
 
double selectionScale
 the current selection scaling in NETEDIT (temporary) More...
 
bool showSizeLegend
 Information whether the size legend shall be drawn. More...
 
Background visualization settings
RGBColor backgroundColor
 The background color to use. More...
 
bool showGrid
 Information whether a grid shall be shown. More...
 
double gridXSize
 Information about the grid spacings. More...
 
double gridYSize
 
vehicle visualization settings
GUIColorer vehicleColorer
 The vehicle colorer. More...
 
int vehicleQuality
 The quality of vehicle drawing. More...
 
bool showBlinker
 Information whether vehicle blinkers shall be drawn. More...
 
bool drawLaneChangePreference
 Information whether the lane change preference shall be drawn. More...
 
bool drawMinGap
 Information whether the minimum gap shall be drawn. More...
 
bool showBTRange
 Information whether the communication range shall be drawn. More...
 
GUIVisualizationSizeSettings vehicleSize
 
GUIVisualizationTextSettings vehicleName
 
person visualization settings
GUIColorer personColorer
 The person colorer. More...
 
int personQuality
 The quality of person drawing. More...
 
GUIVisualizationSizeSettings personSize
 
GUIVisualizationTextSettings personName
 
container visualization settings
GUIColorer containerColorer
 The container colorer. More...
 
int containerQuality
 The quality of container drawing. More...
 
GUIVisualizationSizeSettings containerSize
 
GUIVisualizationTextSettings containerName
 
junction visualization settings
GUIColorer junctionColorer
 The junction colorer. More...
 
GUIVisualizationTextSettings drawLinkTLIndex
 
GUIVisualizationTextSettings drawLinkJunctionIndex
 
GUIVisualizationTextSettings junctionName
 
GUIVisualizationTextSettings internalJunctionName
 
bool showLane2Lane
 Information whether lane-to-lane arrows shall be drawn. More...
 
bool drawJunctionShape
 whether the shape of the junction should be drawn More...
 
bool drawCrossingsAndWalkingareas
 whether crosings and walkingareas shall be drawn More...
 
GUIVisualizationSizeSettings junctionSize
 
Additional structures visualization settings
int addMode
 The additional structures visualization scheme. More...
 
GUIVisualizationSizeSettings addSize
 
GUIVisualizationTextSettings addName
 
shapes visualization settings
GUIVisualizationSizeSettings poiSize
 
GUIVisualizationTextSettings poiName
 
GUIVisualizationTextSettings poiType
 
GUIVisualizationSizeSettings polySize
 
GUIVisualizationTextSettings polyName
 
GUIVisualizationTextSettings polyType
 

lane visualization settings

GUIColorer edgeColorer
 The mesoscopic edge colorer. More...
 
GUIScaler edgeScaler
 The mesoscopic edge scaler. More...
 
GUIColorer laneColorer
 The lane colorer. More...
 
GUIScaler laneScaler
 The lane scaler. More...
 
bool laneShowBorders
 Information whether lane borders shall be drawn. More...
 
bool showLinkDecals
 Information whether link textures (arrows) shall be drawn. More...
 
bool showLinkRules
 Information whether link rules (colored bars) shall be drawn. More...
 
bool showRails
 Information whether rails shall be drawn. More...
 
GUIVisualizationTextSettings edgeName
 
GUIVisualizationTextSettings internalEdgeName
 
GUIVisualizationTextSettings cwaEdgeName
 
GUIVisualizationTextSettings streetName
 
bool hideConnectors
 
double laneWidthExaggeration
 The lane exaggeration (upscale thickness) More...
 
double laneMinSize
 The minimum visual lane width for drawing. More...
 
bool showLaneDirection
 Whether to show direction indicators for lanes. More...
 
bool showSublanes
 Whether to show sublane boundaries. More...
 
static bool UseMesoSim = false
 this should be set at the same time as MSGlobals::gUseMesoSim More...
 

Detailed Description

Stores the information about how to visualize structures.

Definition at line 117 of file GUIVisualizationSettings.h.

Constructor & Destructor Documentation

◆ GUIVisualizationSettings()

GUIVisualizationSettings::GUIVisualizationSettings ( )

constructor

add lane coloring schemes

add vehicle coloring schemes

add person coloring schemes

add container coloring schemes

add junction coloring schemes

add lane scaling schemes

add edge coloring schemes

add edge scaling schemes

Definition at line 66 of file GUIVisualizationSettings.cpp.

References GUIPropertyScheme< T >::addColor(), GUIPropertySchemeStorage< T >::addScheme(), RGBColor::BLACK, RGBColor::BLUE, containerColorer, RGBColor::CYAN, edgeColorer, edgeScaler, RGBColor::GREEN, RGBColor::GREY, junctionColorer, laneColorer, laneScaler, RGBColor::MAGENTA, RGBColor::ORANGE, personColorer, RGBColor::RED, GUIPropertyScheme< T >::setAllowsNegativeValues(), SVC_BICYCLE, SVC_BUS, SVC_DELIVERY, SVC_MOPED, SVC_NON_ROAD, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_SHIP, SVC_TAXI, SVCAll, vehicleColorer, RGBColor::WHITE, and RGBColor::YELLOW.

Member Function Documentation

◆ getLaneEdgeMode()

int GUIVisualizationSettings::getLaneEdgeMode ( ) const

Returns the number of the active lane (edge) coloring schme.

Returns
number of the active scheme

Definition at line 649 of file GUIVisualizationSettings.cpp.

References edgeColorer, GUIPropertySchemeStorage< T >::getActive(), laneColorer, and UseMesoSim.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and save().

◆ getLaneEdgeScaleMode()

int GUIVisualizationSettings::getLaneEdgeScaleMode ( ) const

Returns the number of the active lane (edge) scaling schme.

Returns
number of the active scheme

Definition at line 658 of file GUIVisualizationSettings.cpp.

References edgeScaler, GUIPropertySchemeStorage< T >::getActive(), laneScaler, and UseMesoSim.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and save().

◆ getLaneEdgeScaleScheme()

GUIScaleScheme & GUIVisualizationSettings::getLaneEdgeScaleScheme ( )

Returns the current lane (edge) scaling schme.

Returns
current scheme

Definition at line 676 of file GUIVisualizationSettings.cpp.

References edgeScaler, GUIPropertySchemeStorage< T >::getScheme(), laneScaler, and UseMesoSim.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::rebuildColorMatrices().

◆ getLaneEdgeScheme()

GUIColorScheme & GUIVisualizationSettings::getLaneEdgeScheme ( )

Returns the current lane (edge) coloring schme.

Returns
current scheme

Definition at line 667 of file GUIVisualizationSettings.cpp.

References edgeColorer, GUIPropertySchemeStorage< T >::getScheme(), laneColorer, and UseMesoSim.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::rebuildColorMatrices().

◆ getLinkColor()

◆ operator==()

◆ save()

void GUIVisualizationSettings::save ( OutputDevice dev) const

Writes the settings into an output device.

Parameters
[in]devThe device to write the settings into

Definition at line 684 of file GUIVisualizationSettings.cpp.

References addMode, addName, addSize, antialiase, backgroundColor, OutputDevice::closeTag(), containerColorer, containerQuality, cwaEdgeName, dither, drawCrossingsAndWalkingareas, drawJunctionShape, drawLinkJunctionIndex, drawLinkTLIndex, edgeColorer, edgeName, edgeScaler, GUIPropertySchemeStorage< T >::getActive(), getLaneEdgeMode(), getLaneEdgeScaleMode(), gridXSize, gridYSize, hideConnectors, internalEdgeName, internalJunctionName, junctionColorer, junctionName, junctionSize, laneColorer, laneMinSize, laneScaler, laneShowBorders, laneWidthExaggeration, OutputDevice::lf(), name, OutputDevice::openTag(), personColorer, personName, personQuality, personSize, poiName, poiSize, poiType, polyName, polySize, polyType, GUIVisualizationTextSettings::print(), GUIVisualizationSizeSettings::print(), GUIPropertySchemeStorage< T >::save(), showBlinker, showGrid, showLane2Lane, showLaneDirection, showLinkDecals, showLinkRules, showRails, showSizeLegend, showSublanes, streetName, SUMO_ATTR_NAME, SUMO_TAG_VIEWSETTINGS_ADDITIONALS, SUMO_TAG_VIEWSETTINGS_BACKGROUND, SUMO_TAG_VIEWSETTINGS_CONTAINERS, SUMO_TAG_VIEWSETTINGS_EDGES, SUMO_TAG_VIEWSETTINGS_JUNCTIONS, SUMO_TAG_VIEWSETTINGS_LEGEND, SUMO_TAG_VIEWSETTINGS_OPENGL, SUMO_TAG_VIEWSETTINGS_PERSONS, SUMO_TAG_VIEWSETTINGS_POIS, SUMO_TAG_VIEWSETTINGS_POLYS, SUMO_TAG_VIEWSETTINGS_SCHEME, SUMO_TAG_VIEWSETTINGS_VEHICLES, vehicleColorer, vehicleName, vehicleQuality, vehicleSize, and OutputDevice::writeAttr().

Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and GUICompleteSchemeStorage::writeSettings().

Field Documentation

◆ addMode

int GUIVisualizationSettings::addMode

The additional structures visualization scheme.

Definition at line 253 of file GUIVisualizationSettings.h.

Referenced by GUISettingsHandler::myStartElement(), operator==(), and save().

◆ addName

◆ addSize

◆ antialiase

bool GUIVisualizationSettings::antialiase

◆ backgroundColor

◆ containerColorer

◆ containerName

◆ containerQuality

◆ containerSize

◆ cwaEdgeName

◆ dither

◆ drawCrossingsAndWalkingareas

bool GUIVisualizationSettings::drawCrossingsAndWalkingareas

◆ drawForSelecting

bool GUIVisualizationSettings::drawForSelecting

whether drawing is performed for the purpose of selecting objects

Definition at line 298 of file GUIVisualizationSettings.h.

Referenced by GUILane::drawGL(), GUIVisualizationSizeSettings::getExaggeration(), and GUISUMOAbstractView::getObjectsInBoundary().

◆ drawJunctionShape

bool GUIVisualizationSettings::drawJunctionShape

◆ drawLaneChangePreference

bool GUIVisualizationSettings::drawLaneChangePreference

Information whether the lane change preference shall be drawn.

Definition at line 190 of file GUIVisualizationSettings.h.

Referenced by GUIBaseVehicle::drawOnPos(), and operator==().

◆ drawLinkJunctionIndex

◆ drawLinkTLIndex

◆ drawMinGap

bool GUIVisualizationSettings::drawMinGap

Information whether the minimum gap shall be drawn.

Definition at line 192 of file GUIVisualizationSettings.h.

Referenced by GUIBaseVehicle::drawOnPos(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().

◆ edgeColorer

◆ edgeName

◆ edgeScaler

◆ editAdditionalMode

int GUIVisualizationSettings::editAdditionalMode

the current NETEDIT additional mode (temporary)

Definition at line 292 of file GUIVisualizationSettings.h.

◆ editMode

int GUIVisualizationSettings::editMode

the current NETEDIT mode (temporary)

Definition at line 289 of file GUIVisualizationSettings.h.

Referenced by GNEViewNet::doPaintGL(), GNEJunction::drawGL(), GNEJunction::getPopUpMenu(), and GNELane::getPopUpMenu().

◆ gaming

◆ gridXSize

double GUIVisualizationSettings::gridXSize

◆ gridYSize

◆ hideConnectors

◆ internalEdgeName

◆ internalJunctionName

◆ junctionColorer

◆ junctionName

◆ junctionSize

◆ laneColorer

◆ laneMinSize

double GUIVisualizationSettings::laneMinSize

◆ laneScaler

◆ laneShowBorders

bool GUIVisualizationSettings::laneShowBorders

◆ laneWidthExaggeration

double GUIVisualizationSettings::laneWidthExaggeration

◆ name

◆ personColorer

◆ personName

◆ personQuality

◆ personSize

◆ poiName

◆ poiSize

◆ poiType

◆ polyName

◆ polySize

◆ polyType

◆ scale

◆ selectionScale

double GUIVisualizationSettings::selectionScale

the current selection scaling in NETEDIT (temporary)

Definition at line 295 of file GUIVisualizationSettings.h.

Referenced by GNEJunction::drawGL(), GNELane::drawGL(), and GNEViewNet::setSelectionScaling().

◆ showBlinker

bool GUIVisualizationSettings::showBlinker

◆ showBTRange

bool GUIVisualizationSettings::showBTRange

Information whether the communication range shall be drawn.

Definition at line 194 of file GUIVisualizationSettings.h.

Referenced by GUIBaseVehicle::drawOnPos(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().

◆ showGrid

◆ showLane2Lane

bool GUIVisualizationSettings::showLane2Lane

◆ showLaneDirection

bool GUIVisualizationSettings::showLaneDirection

◆ showLinkDecals

bool GUIVisualizationSettings::showLinkDecals

◆ showLinkRules

bool GUIVisualizationSettings::showLinkRules

Information whether link rules (colored bars) shall be drawn.

Definition at line 162 of file GUIVisualizationSettings.h.

Referenced by GUILane::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().

◆ showRails

◆ showSizeLegend

bool GUIVisualizationSettings::showSizeLegend

◆ showSublanes

bool GUIVisualizationSettings::showSublanes

◆ streetName

◆ UseMesoSim

◆ vehicleColorer

◆ vehicleName

◆ vehicleQuality

◆ vehicleSize


The documentation for this class was generated from the following files: