SUMO - Simulation of Urban MObility

GUIVisualizationSettings Class Reference

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

#include <GUIVisualizationSettings.h>

Public Member Functions

size_t getLaneEdgeMode () const
 Returns the number of the active lane (edge) coloring schme.
GUIColorScheme & getLaneEdgeScheme ()
 Returns the current lane (edge) coloring schme.
 GUIVisualizationSettings () throw ()
 constructor
bool operator== (const GUIVisualizationSettings &vs2)
 Assignment operator.
void save (OutputDevice &dev) const throw (IOError)
 Writes the settings into an output device.

Data Fields

bool antialiase
 Information whether antialiase shall be enabled.
bool dither
 Information whether dithering shall be enabled.
int editMode
 the current NETEDIT mode (temporary)
bool gaming
 whether the application is in gaming mode or not
std::string name
 The name of this setting.
SUMOReal scale
 information about a lane's width (temporary, used for a single view)
SUMOReal selectionScale
 the current selection scaling in NETEDIT (temporary)
bool showLane2Lane
 Information whether lane-to-lane arrows shall be drawn.
bool showSizeLegend
 Information whether the size legend shall be drawn.
Background visualization settings
RGBColor backgroundColor
 The background color to use.
bool showBackgroundDecals
 Information whether background decals (textures) shall be used.
bool showGrid
 Information whether a grid shall be shown.
SUMOReal gridXSize
 Information about the grid spacings.
SUMOReal gridYSize
lane visualization settings
GUIColorer laneColorer
 The lane colorer.
bool laneShowBorders
 Information whether lane borders shall be drawn.
bool showLinkDecals
 Information whether link textures (arrows) shall be drawn.
bool showRails
 Information whether rails shall be drawn.
GUIVisualizationTextSettings edgeName
GUIVisualizationTextSettings internalEdgeName
GUIVisualizationTextSettings streetName
bool hideConnectors
vehicle visualization settings
GUIColorer vehicleColorer
 The vehicle colorer.
int vehicleQuality
 The quality of vehicle drawing.
float minVehicleSize
 The minimum size of vehicles to let them be drawn.
float vehicleExaggeration
 The vehicle exaggeration (upscale)
bool showBlinker
 Information whether vehicle blinkers shall be drawn.
bool drawLaneChangePreference
 Information whether the lane change preference shall be drawn.
GUIVisualizationTextSettings vehicleName
junction visualization settings
int junctionMode
 The junction visualization (color assignment) scheme.
bool drawLinkTLIndex
 Information whether a link's tls index shall be drawn.
bool drawLinkJunctionIndex
 Information whether a link's junction index shall be drawn.
GUIVisualizationTextSettings junctionName
GUIVisualizationTextSettings internalJunctionName
Additional structures visualization settings
int addMode
 The additional structures visualization scheme.
float minAddSize
 The minimum size of additional structures to let them be drawn.
float addExaggeration
 The additional structures exaggeration (upscale)
GUIVisualizationTextSettings addName
shapes visualization settings
float minPOISize
 The minimum size of shapes to let them be drawn.
float poiExaggeration
 The additional shapes (upscale)
GUIVisualizationTextSettings poiName

Detailed Description

Stores the information about how to visualize structures.

Definition at line 81 of file GUIVisualizationSettings.h.


Constructor & Destructor Documentation

GUIVisualizationSettings::GUIVisualizationSettings ( ) throw ()

constructor

add lane coloring schemes

add vehicle coloring schemes

Definition at line 49 of file GUIVisualizationSettings.cpp.

References GUIColorScheme::addColor(), GUIColorer::addScheme(), laneColorer, GUIColorScheme::setAllowsNegativeValues(), SUMOReal, and vehicleColorer.


Member Function Documentation

size_t GUIVisualizationSettings::getLaneEdgeMode ( ) const

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

Returns:
number of the active scheme

Definition at line 202 of file GUIVisualizationSettings.cpp.

References GUIColorer::getActive(), and laneColorer.

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

GUIColorScheme & GUIVisualizationSettings::getLaneEdgeScheme ( )

Returns the current lane (edge) coloring schme.

Returns:
current scheme

Definition at line 213 of file GUIVisualizationSettings.cpp.

References GUIColorer::getScheme(), and laneColorer.

Referenced by GUIDialog_ViewSettings::onCmdColorChange().

void GUIVisualizationSettings::save ( OutputDevice &  dev) const throw (IOError)

Writes the settings into an output device.

Parameters:
[in]devThe device to write the settings into

Definition at line 224 of file GUIVisualizationSettings.cpp.

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


Field Documentation

The additional structures visualization scheme.

Definition at line 176 of file GUIVisualizationSettings.h.

Referenced by operator==().

Information whether the lane change preference shall be drawn.

Definition at line 148 of file GUIVisualizationSettings.h.

Referenced by operator==().

Information whether a link's junction index shall be drawn.

Definition at line 162 of file GUIVisualizationSettings.h.

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

the current NETEDIT mode (temporary)

Definition at line 207 of file GUIVisualizationSettings.h.

whether the application is in gaming mode or not

Definition at line 204 of file GUIVisualizationSettings.h.

Referenced by GUISUMOAbstractView::GUISUMOAbstractView(), and GUIViewTraffic::setColorScheme().

Information about the grid spacings.

Definition at line 105 of file GUIVisualizationSettings.h.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), operator==(), and GUISUMOAbstractView::paintGLGrid().

The junction visualization (color assignment) scheme.

Definition at line 158 of file GUIVisualizationSettings.h.

Referenced by operator==().

The minimum size of additional structures to let them be drawn.

Definition at line 178 of file GUIVisualizationSettings.h.

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

information about a lane's width (temporary, used for a single view)

Definition at line 201 of file GUIVisualizationSettings.h.

Referenced by GUIViewTraffic::doPaintGL(), and GUISUMOAbstractView::makeSnapshot().

the current selection scaling in NETEDIT (temporary)

Definition at line 210 of file GUIVisualizationSettings.h.

Information whether background decals (textures) shall be used.

Definition at line 101 of file GUIVisualizationSettings.h.

Referenced by operator==().

Information whether vehicle blinkers shall be drawn.

Definition at line 146 of file GUIVisualizationSettings.h.

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

Information whether lane-to-lane arrows shall be drawn.

Definition at line 169 of file GUIVisualizationSettings.h.

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


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines