SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
GUIColorSchemegetLaneEdgeScheme ()
 Returns the current lane (edge) coloring schme. More...
 
 GUIVisualizationSettings ()
 constructor More...
 
bool operator== (const GUIVisualizationSettings &vs2)
 Assignment operator. More...
 
void save (OutputDevice &dev) const
 Writes the settings into an output device. More...
 

Data Fields

bool antialiase
 Information whether antialiase shall be enabled. More...
 
bool dither
 Information whether dithering shall be enabled. 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...
 
SUMOReal scale
 information about a lane's width (temporary, used for a single view) More...
 
SUMOReal selectionScale
 the current selection scaling in NETEDIT (temporary) More...
 
bool showLane2Lane
 Information whether lane-to-lane arrows shall be drawn. 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...
 
SUMOReal gridXSize
 Information about the grid spacings. More...
 
SUMOReal gridYSize
 
lane visualization settings
GUIColorer laneColorer
 The lane colorer. More...
 
bool laneShowBorders
 Information whether lane borders shall be drawn. More...
 
bool showLinkDecals
 Information whether link textures (arrows) shall be drawn. More...
 
bool showRails
 Information whether rails shall be drawn. More...
 
GUIVisualizationTextSettings edgeName
 
GUIVisualizationTextSettings internalEdgeName
 
GUIVisualizationTextSettings streetName
 
bool hideConnectors
 
float laneWidthExaggeration
 The lane exaggeration (upscale thickness) More...
 
vehicle visualization settings
GUIColorer vehicleColorer
 The vehicle colorer. More...
 
int vehicleQuality
 The quality of vehicle drawing. More...
 
float minVehicleSize
 The minimum size of vehicles to let them be drawn. More...
 
float vehicleExaggeration
 The vehicle exaggeration (upscale) 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...
 
GUIVisualizationTextSettings vehicleName
 
person visualization settings
GUIColorer personColorer
 The person colorer. More...
 
int personQuality
 The quality of person drawing. More...
 
float minPersonSize
 The minimum size of persons to let them be drawn. More...
 
float personExaggeration
 The person exaggeration (upscale) More...
 
GUIVisualizationTextSettings personName
 
junction visualization settings
GUIColorer junctionColorer
 The junction colorer. More...
 
bool drawLinkTLIndex
 Information whether a link's tls index shall be drawn. More...
 
bool drawLinkJunctionIndex
 Information whether a link's junction index shall be drawn. More...
 
GUIVisualizationTextSettings junctionName
 
GUIVisualizationTextSettings internalJunctionName
 
Additional structures visualization settings
int addMode
 The additional structures visualization scheme. More...
 
float minAddSize
 The minimum size of additional structures to let them be drawn. More...
 
float addExaggeration
 The additional structures exaggeration (upscale) More...
 
GUIVisualizationTextSettings addName
 
shapes visualization settings
float minPOISize
 The minimum size of shapes to let them be drawn. More...
 
float poiExaggeration
 The additional shapes (upscale) More...
 
GUIVisualizationTextSettings poiName
 
float minPolySize
 The minimum size of shapes to let them be drawn. More...
 
float polyExaggeration
 The additional shapes (upscale) More...
 
GUIVisualizationTextSettings polyName
 

Detailed Description

Stores the information about how to visualize structures.

Definition at line 84 of file GUIVisualizationSettings.h.

Constructor & Destructor Documentation

GUIVisualizationSettings::GUIVisualizationSettings ( )

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 240 of file GUIVisualizationSettings.cpp.

References GUIColorer::getActive(), and laneColorer.

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

GUIColorScheme & GUIVisualizationSettings::getLaneEdgeScheme ( )

Returns the current lane (edge) coloring schme.

Returns
current scheme

Definition at line 251 of file GUIVisualizationSettings.cpp.

References GUIColorer::getScheme(), and laneColorer.

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

Field Documentation

int GUIVisualizationSettings::addMode

The additional structures visualization scheme.

Definition at line 198 of file GUIVisualizationSettings.h.

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

bool GUIVisualizationSettings::drawLaneChangePreference

Information whether the lane change preference shall be drawn.

Definition at line 151 of file GUIVisualizationSettings.h.

Referenced by GUIVehicle::drawGL(), and operator==().

bool GUIVisualizationSettings::drawLinkJunctionIndex
bool GUIVisualizationSettings::drawLinkTLIndex
bool GUIVisualizationSettings::drawMinGap

Information whether the minimum gap shall be drawn.

Definition at line 153 of file GUIVisualizationSettings.h.

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

int GUIVisualizationSettings::editMode

the current NETEDIT mode (temporary)

Definition at line 236 of file GUIVisualizationSettings.h.

bool GUIVisualizationSettings::gaming

whether the application is in gaming mode or not

Definition at line 233 of file GUIVisualizationSettings.h.

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

SUMOReal GUIVisualizationSettings::gridXSize
bool GUIVisualizationSettings::laneShowBorders
float GUIVisualizationSettings::laneWidthExaggeration

The lane exaggeration (upscale thickness)

Definition at line 133 of file GUIVisualizationSettings.h.

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

float GUIVisualizationSettings::minAddSize

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

Definition at line 200 of file GUIVisualizationSettings.h.

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

float GUIVisualizationSettings::minPersonSize
float GUIVisualizationSettings::minPOISize
float GUIVisualizationSettings::minPolySize
float GUIVisualizationSettings::minVehicleSize
float GUIVisualizationSettings::personExaggeration
int GUIVisualizationSettings::personQuality
float GUIVisualizationSettings::poiExaggeration
float GUIVisualizationSettings::polyExaggeration
SUMOReal GUIVisualizationSettings::selectionScale

the current selection scaling in NETEDIT (temporary)

Definition at line 239 of file GUIVisualizationSettings.h.

bool GUIVisualizationSettings::showBlinker
bool GUIVisualizationSettings::showGrid
bool GUIVisualizationSettings::showLane2Lane
bool GUIVisualizationSettings::showLinkDecals
bool GUIVisualizationSettings::showRails
bool GUIVisualizationSettings::showSizeLegend

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