|
SUMO - Simulation of Urban MObility
|
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 |
Stores the information about how to visualize structures.
Definition at line 81 of file GUIVisualizationSettings.h.
| 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.
| size_t GUIVisualizationSettings::getLaneEdgeMode | ( | ) | const |
Returns the number of the active lane (edge) coloring schme.
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.
Definition at line 213 of file GUIVisualizationSettings.cpp.
References GUIColorer::getScheme(), and laneColorer.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
| bool GUIVisualizationSettings::operator== | ( | const GUIVisualizationSettings & | vs2 | ) |
Assignment operator.
Definition at line 280 of file GUIVisualizationSettings.cpp.
References addExaggeration, addMode, addName, antialiase, backgroundColor, dither, drawLaneChangePreference, drawLinkJunctionIndex, drawLinkTLIndex, edgeName, gridXSize, gridYSize, hideConnectors, internalEdgeName, internalJunctionName, junctionMode, junctionName, laneColorer, laneShowBorders, minAddSize, minPOISize, minVehicleSize, poiExaggeration, poiName, showBackgroundDecals, showBlinker, showGrid, showLane2Lane, showLinkDecals, showRails, showSizeLegend, streetName, vehicleColorer, vehicleExaggeration, vehicleName, and vehicleQuality.
| void GUIVisualizationSettings::save | ( | OutputDevice & | dev | ) | const throw (IOError) |
Writes the settings into an output device.
| [in] | dev | The device to write the settings into |
Definition at line 224 of file GUIVisualizationSettings.cpp.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and GUICompleteSchemeStorage::writeSettings().
The additional structures exaggeration (upscale)
Definition at line 180 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
The additional structures visualization scheme.
Definition at line 176 of file GUIVisualizationSettings.h.
Referenced by operator==().
Definition at line 182 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Information whether antialiase shall be enabled.
Definition at line 91 of file GUIVisualizationSettings.h.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and GUISUMOAbstractView::paintGL().
The background color to use.
Definition at line 99 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUISUMOAbstractView::makeSnapshot(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUISUMOAbstractView::onConfigure(), operator==(), and GUISUMOAbstractView::paintGL().
Information whether dithering shall be enabled.
Definition at line 93 of file GUIVisualizationSettings.h.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and GUISUMOAbstractView::paintGL().
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==().
Information whether a link's tls index shall be drawn.
Definition at line 160 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Definition at line 128 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().
| SUMOReal GUIVisualizationSettings::gridXSize |
Information about the grid spacings.
Definition at line 105 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), operator==(), and GUISUMOAbstractView::paintGLGrid().
| SUMOReal GUIVisualizationSettings::gridYSize |
Definition at line 105 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), operator==(), and GUISUMOAbstractView::paintGLGrid().
Definition at line 130 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Definition at line 128 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Definition at line 164 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
The junction visualization (color assignment) scheme.
Definition at line 158 of file GUIVisualizationSettings.h.
Referenced by operator==().
Definition at line 164 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
The lane colorer.
Definition at line 120 of file GUIVisualizationSettings.h.
Referenced by getLaneEdgeMode(), getLaneEdgeScheme(), GUIVisualizationSettings(), GUIDialog_ViewSettings::onCmdColorChange(), operator==(), and GUILaneWrapper::setColor().
Information whether lane borders shall be drawn.
Definition at line 122 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and 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==().
The minimum size of shapes to let them be drawn.
Definition at line 190 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
The minimum size of vehicles to let them be drawn.
Definition at line 142 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
| std::string GUIVisualizationSettings::name |
The name of this setting.
Definition at line 88 of file GUIVisualizationSettings.h.
Referenced by GUIViewTraffic::buildViewToolBars(), GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUIDialog_ViewSettings::onCmdSaveSetting(), GUICompleteSchemeStorage::writeSettings(), and GUISUMOAbstractView::~GUISUMOAbstractView().
The additional shapes (upscale)
Definition at line 192 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Definition at line 194 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
| SUMOReal GUIVisualizationSettings::scale |
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 a grid shall be shown.
Definition at line 103 of file GUIVisualizationSettings.h.
Referenced by GUIViewTraffic::doPaintGL(), GUISUMOAbstractView::makeSnapshot(), GUIDialog_ViewSettings::onCmdColorChange(), 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==().
Information whether link textures (arrows) shall be drawn.
Definition at line 124 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Information whether rails shall be drawn.
Definition at line 126 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Information whether the size legend shall be drawn.
Definition at line 198 of file GUIVisualizationSettings.h.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and GUISUMOAbstractView::paintGL().
Definition at line 128 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
The vehicle colorer.
Definition at line 138 of file GUIVisualizationSettings.h.
Referenced by GUIVisualizationSettings(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and GUIVehicle::setColor().
The vehicle exaggeration (upscale)
Definition at line 144 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
Definition at line 150 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().
The quality of vehicle drawing.
Definition at line 140 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and operator==().