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 () | |
constructor | |
bool | operator== (const GUIVisualizationSettings &vs2) |
Assignment operator. | |
void | save (OutputDevice &dev) const |
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. | |
bool | drawMinGap |
Information whether the minimum gap 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 84 of file GUIVisualizationSettings.h.
constructor
add lane coloring schemes
add vehicle coloring schemes
Definition at line 52 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 208 of file GUIVisualizationSettings.cpp.
References GUIColorer::getActive(), and laneColorer.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and save().
Returns the current lane (edge) coloring schme.
Definition at line 219 of file GUIVisualizationSettings.cpp.
References GUIColorer::getScheme(), and laneColorer.
Referenced by GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::rebuildColorMatrices().
bool GUIVisualizationSettings::operator== | ( | const GUIVisualizationSettings & | vs2 | ) |
Assignment operator.
Definition at line 286 of file GUIVisualizationSettings.cpp.
References addExaggeration, addMode, addName, antialiase, backgroundColor, dither, drawLaneChangePreference, drawLinkJunctionIndex, drawLinkTLIndex, drawMinGap, 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 |
Writes the settings into an output device.
[in] | dev | The device to write the settings into |
Definition at line 230 of file GUIVisualizationSettings.cpp.
References addExaggeration, addMode, addName, antialiase, backgroundColor, dither, drawLinkJunctionIndex, drawLinkTLIndex, edgeName, GUIColorer::getActive(), getLaneEdgeMode(), gridXSize, gridYSize, hideConnectors, internalEdgeName, internalJunctionName, junctionMode, junctionName, laneColorer, laneShowBorders, minAddSize, minPOISize, minVehicleSize, name, poiExaggeration, poiName, GUIVisualizationTextSettings::print(), GUIColorer::save(), showBlinker, showGrid, showLane2Lane, showLinkDecals, showRails, showSizeLegend, streetName, vehicleColorer, vehicleExaggeration, vehicleName, and vehicleQuality.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and GUICompleteSchemeStorage::writeSettings().
The additional structures exaggeration (upscale)
Definition at line 185 of file GUIVisualizationSettings.h.
Referenced by GUITriggeredRerouter::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIBusStop::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The additional structures visualization scheme.
Definition at line 181 of file GUIVisualizationSettings.h.
Referenced by GUISettingsHandler::myStartElement(), operator==(), and save().
Definition at line 187 of file GUIVisualizationSettings.h.
Referenced by GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIBusStop::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Information whether antialiase shall be enabled.
Definition at line 94 of file GUIVisualizationSettings.h.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), GUISUMOAbstractView::paintGL(), and save().
The background color to use.
Definition at line 102 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUISUMOAbstractView::makeSnapshot(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUISUMOAbstractView::onConfigure(), operator==(), GUISUMOAbstractView::paintGL(), and save().
Information whether dithering shall be enabled.
Definition at line 96 of file GUIVisualizationSettings.h.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), GUISUMOAbstractView::paintGL(), and save().
Information whether the lane change preference shall be drawn.
Definition at line 151 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawGL(), and operator==().
Information whether a link's junction index shall be drawn.
Definition at line 167 of file GUIVisualizationSettings.h.
Referenced by GUILaneWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Information whether a link's tls index shall be drawn.
Definition at line 165 of file GUIVisualizationSettings.h.
Referenced by GUILaneWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
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==().
Definition at line 131 of file GUIVisualizationSettings.h.
Referenced by GUIEdge::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
the current NETEDIT mode (temporary)
Definition at line 212 of file GUIVisualizationSettings.h.
whether the application is in gaming mode or not
Definition at line 209 of file GUIVisualizationSettings.h.
Referenced by GUITrafficLightLogicWrapper::drawGL(), GUISUMOAbstractView::GUISUMOAbstractView(), and GUIViewTraffic::setColorScheme().
Information about the grid spacings.
Definition at line 108 of file GUIVisualizationSettings.h.
Referenced by GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), operator==(), GUISUMOAbstractView::paintGLGrid(), and save().
Definition at line 108 of file GUIVisualizationSettings.h.
Referenced by GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), operator==(), GUISUMOAbstractView::paintGLGrid(), and save().
Definition at line 133 of file GUIVisualizationSettings.h.
Referenced by GUIEdge::drawGL(), GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Definition at line 131 of file GUIVisualizationSettings.h.
Referenced by GUIEdge::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Definition at line 169 of file GUIVisualizationSettings.h.
Referenced by GUIJunctionWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The junction visualization (color assignment) scheme.
Definition at line 163 of file GUIVisualizationSettings.h.
Referenced by GUISettingsHandler::myStartElement(), operator==(), and save().
Definition at line 169 of file GUIVisualizationSettings.h.
Referenced by GUIJunctionWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The lane colorer.
Definition at line 123 of file GUIVisualizationSettings.h.
Referenced by getLaneEdgeMode(), getLaneEdgeScheme(), GUIVisualizationSettings(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), operator==(), save(), and GUILaneWrapper::setColor().
Information whether lane borders shall be drawn.
Definition at line 125 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The minimum size of additional structures to let them be drawn.
Definition at line 183 of file GUIVisualizationSettings.h.
Referenced by GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The minimum size of shapes to let them be drawn.
Definition at line 195 of file GUIVisualizationSettings.h.
Referenced by GUIPointOfInterest::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The minimum size of vehicles to let them be drawn.
Definition at line 145 of file GUIVisualizationSettings.h.
Referenced by GUILaneWrapper::drawGL(), GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
std::string GUIVisualizationSettings::name |
The name of this setting.
Definition at line 91 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::add(), GUISettingsHandler::addSettings(), GUIViewTraffic::buildViewToolBars(), GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUIDialog_ViewSettings::onCmdSaveSetting(), save(), GUICompleteSchemeStorage::writeSettings(), and GUISUMOAbstractView::~GUISUMOAbstractView().
The additional shapes (upscale)
Definition at line 197 of file GUIVisualizationSettings.h.
Referenced by GUIPointOfInterest::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Definition at line 199 of file GUIVisualizationSettings.h.
Referenced by GUIPointOfInterest::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
information about a lane's width (temporary, used for a single view)
Definition at line 206 of file GUIVisualizationSettings.h.
Referenced by GUIViewTraffic::doPaintGL(), GUIPointOfInterest::drawGL(), GUITriggeredRerouter::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneWrapper::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIVehicle::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIBusStop::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIEdge::drawGL(), GUIInductLoop::MyWrapper::drawGL(), and GUISUMOAbstractView::makeSnapshot().
the current selection scaling in NETEDIT (temporary)
Definition at line 215 of file GUIVisualizationSettings.h.
Information whether background decals (textures) shall be used.
Definition at line 104 of file GUIVisualizationSettings.h.
Referenced by operator==().
Information whether vehicle blinkers shall be drawn.
Definition at line 149 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Information whether a grid shall be shown.
Definition at line 106 of file GUIVisualizationSettings.h.
Referenced by GUIViewTraffic::doPaintGL(), GUISUMOAbstractView::makeSnapshot(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), operator==(), and save().
Information whether lane-to-lane arrows shall be drawn.
Definition at line 174 of file GUIVisualizationSettings.h.
Referenced by GUILaneWrapper::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Information whether link textures (arrows) shall be drawn.
Definition at line 127 of file GUIVisualizationSettings.h.
Referenced by GUILaneWrapper::drawGL(), GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Information whether rails shall be drawn.
Definition at line 129 of file GUIVisualizationSettings.h.
Referenced by GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Information whether the size legend shall be drawn.
Definition at line 203 of file GUIVisualizationSettings.h.
Referenced by GUISUMOAbstractView::makeSnapshot(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), GUISUMOAbstractView::paintGL(), and save().
Definition at line 131 of file GUIVisualizationSettings.h.
Referenced by GUIEdge::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The vehicle colorer.
Definition at line 141 of file GUIVisualizationSettings.h.
Referenced by GUIVisualizationSettings(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), GUIDialog_ViewSettings::rebuildColorMatrices(), save(), and GUIVehicle::setColor().
The vehicle exaggeration (upscale)
Definition at line 147 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
Definition at line 155 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawGL(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().
The quality of vehicle drawing.
Definition at line 143 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawGL(), GUICompleteSchemeStorage::init(), GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), operator==(), and save().