SUMO - Simulation of Urban MObility
|
The dialog to change the view (gui) settings. More...
#include <GUIDialog_ViewSettings.h>
Data Structures | |
class | NamePanel |
Public Member Functions | |
std::string | getCurrentScheme () const |
Returns the name of the currently chosen scheme. | |
GUIDialog_ViewSettings (GUISUMOAbstractView *parent, GUIVisualizationSettings *settings, std::vector< GUISUMOAbstractView::Decal > *decals, MFXMutex *decalsLock) | |
Constructor. | |
void | setCurrent (GUIVisualizationSettings *settings) |
Sets current settings (called if reopened) | |
void | setCurrentScheme (const std::string &) |
Sets the named scheme as the current. | |
~GUIDialog_ViewSettings () | |
Destructor. | |
FOX-callbacks | |
long | onCmdOk (FXObject *, FXSelector, void *) |
Called if the OK-button was pressed. | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
Called if the Cancel-button was pressed. | |
long | onCmdColorChange (FXObject *, FXSelector, void *) |
Called if something (color, width, etc.) has been changed. | |
long | onCmdEditTable (FXObject *, FXSelector, void *data) |
Called if the decals-table was changed. | |
long | onCmdNameChange (FXObject *, FXSelector, void *) |
Called if the name of the scheme was changed. | |
long | onCmdSaveSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be saved into the registry. | |
long | onUpdSaveSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to save the settings into the registry. | |
long | onCmdDeleteSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be deleted. | |
long | onUpdDeleteSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to delete settings. | |
long | onCmdExportSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be exported into a file. | |
long | onUpdExportSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to export settings into a file. | |
long | onCmdImportSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be read from a file. | |
long | onUpdImportSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to read settings from a file. | |
long | onCmdLoadDecals (FXObject *, FXSelector, void *data) |
Called if the decals shall be loaded from a file. | |
long | onCmdSaveDecals (FXObject *, FXSelector, void *data) |
Called if the decals shall be saved to a file. | |
Static Public Member Functions | |
static RGBColor | convert (const FXColor c) |
Converts a FOX-color into a RGBColor. | |
static FXColor | convert (const RGBColor &c) |
Converts a RGBColor into a FOX-color. | |
Protected Member Functions | |
GUIDialog_ViewSettings () | |
Default constructor (needed by FOX) | |
void | loadDecals (const std::string &file) |
Loads decals from a file. | |
void | loadSettings (const std::string &file) |
Loads a scheme from a file. | |
void | rebuildColorMatrices (bool doCreate=false) |
Rebuilds color changing dialogs after choosing another coloring scheme. | |
void | rebuildList () |
Rebuilds the decals table. | |
void | saveDecals (const std::string &file) const |
Writes the currently used decals into a file. | |
Private Member Functions | |
GUIDialog_ViewSettings (const GUIDialog_ViewSettings &s) | |
invalidated copy constructor | |
GUIDialog_ViewSettings & | operator= (const GUIDialog_ViewSettings &s) |
invalidated assignment operator | |
Private Attributes | |
GUIVisualizationSettings | myBackup |
A backup of the settings (used if the "Cancel" button is pressed) | |
std::vector < GUISUMOAbstractView::Decal > * | myDecals |
The parent's decals. | |
MFXMutex * | myDecalsLock |
Lock used when changing the decals. | |
GUISUMOAbstractView * | myParent |
The parent view (which settings are changed) | |
GUIVisualizationSettings * | mySettings |
The current settings. | |
Dialog elements | |
FXComboBox * | mySchemeName |
FXCheckButton * | myShowGrid |
FXRealSpinDial * | myGridXSizeDialer |
FXRealSpinDial * | myGridYSizeDialer |
FXColorWell * | myBackgroundColor |
FXVerticalFrame * | myDecalsFrame |
MFXAddEditTypedTable * | myDecalsTable |
FXComboBox * | myLaneEdgeColorMode |
FXVerticalFrame * | myLaneColorSettingFrame |
std::vector< FXColorWell * > | myLaneColors |
std::vector< FXRealSpinDial * > | myLaneThresholds |
std::vector< FXButton * > | myLaneButtons |
FXCheckButton * | myLaneColorInterpolation |
FXCheckButton * | myShowLaneBorders |
FXCheckButton * | myShowLaneDecals |
FXCheckButton * | myShowRails |
FXCheckButton * | myHideMacroConnectors |
FXComboBox * | myVehicleColorMode |
FXComboBox * | myVehicleShapeDetail |
FXVerticalFrame * | myVehicleColorSettingFrame |
std::vector< FXColorWell * > | myVehicleColors |
std::vector< FXRealSpinDial * > | myVehicleThresholds |
std::vector< FXButton * > | myVehicleButtons |
FXCheckButton * | myVehicleColorInterpolation |
FXRealSpinDial * | myVehicleMinSizeDialer |
FXRealSpinDial * | myVehicleUpscaleDialer |
FXCheckButton * | myShowBlinker |
FXCheckButton * | myShowMinGap |
FXCheckButton * | myShowTLIndex |
FXCheckButton * | myShowJunctionIndex |
FXRealSpinDial * | myDetectorMinSizeDialer |
FXRealSpinDial * | myDetectorUpscaleDialer |
FXRealSpinDial * | myPOIMinSizeDialer |
FXRealSpinDial * | myPOIUpscaleDialer |
FXCheckButton * | myShowLane2Lane |
FXCheckButton * | myAntialiase |
FXCheckButton * | myDither |
FXCheckButton * | myShowSizeLegend |
NamePanel * | myEdgeNamePanel |
NamePanel * | myInternalEdgeNamePanel |
NamePanel * | myStreetNamePanel |
NamePanel * | myJunctionNamePanel |
NamePanel * | myInternalJunctionNamePanel |
NamePanel * | myVehicleNamePanel |
NamePanel * | myAddNamePanel |
NamePanel * | myPoiNamePanel |
The dialog to change the view (gui) settings.
Definition at line 56 of file GUIDialog_ViewSettings.h.
GUIDialog_ViewSettings::GUIDialog_ViewSettings | ( | GUISUMOAbstractView * | parent, |
GUIVisualizationSettings * | settings, | ||
std::vector< GUISUMOAbstractView::Decal > * | decals, | ||
MFXMutex * | decalsLock | ||
) |
Constructor.
[in] | parent | The view to report changed settings to |
[in,out] | settings | The current settings that can be changed |
[in] | laneEdgeModeSource | Class storing known lane coloring schemes |
[in] | vehicleModeSource | Class storing known vehicle coloring schemes |
[in] | decals | Decals used |
[in] | decalsLock | A lock to set if the decals are changed |
Definition at line 88 of file GUIDialog_ViewSettings.cpp.
References convert(), GUIIconSubSys::getIcon(), GUICompleteSchemeStorage::getNames(), gSchemeStorage, ICON_EMPTY, ICON_OPEN_CONFIG, ICON_REMOVEDB, ICON_SAVE, ICON_SAVEDB, MID_SETTINGS_CANCEL, MID_SETTINGS_OK, MID_SIMPLE_VIEW_COLORCHANGE, MID_SIMPLE_VIEW_DELETE, MID_SIMPLE_VIEW_EXPORT, MID_SIMPLE_VIEW_IMPORT, MID_SIMPLE_VIEW_LOAD_DECALS, MID_SIMPLE_VIEW_NAMECHANGE, MID_SIMPLE_VIEW_SAVE, and MID_SIMPLE_VIEW_SAVE_DECALS.
Destructor.
Definition at line 437 of file GUIDialog_ViewSettings.cpp.
References myAddNamePanel, myEdgeNamePanel, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionNamePanel, myParent, myPoiNamePanel, myStreetNamePanel, myVehicleNamePanel, and GUISUMOAbstractView::remove().
GUIDialog_ViewSettings::GUIDialog_ViewSettings | ( | ) | [inline, protected] |
Default constructor (needed by FOX)
Definition at line 266 of file GUIDialog_ViewSettings.h.
GUIDialog_ViewSettings::GUIDialog_ViewSettings | ( | const GUIDialog_ViewSettings & | s | ) | [private] |
invalidated copy constructor
RGBColor GUIDialog_ViewSettings::convert | ( | const FXColor | c | ) | [static] |
Converts a FOX-color into a RGBColor.
[in] | c | The color to convert |
Definition at line 969 of file GUIDialog_ViewSettings.cpp.
References SUMOReal.
Referenced by GUIDialog_ViewSettings::NamePanel::getSettings(), GUIDialog_ViewSettings::NamePanel::NamePanel(), onCmdColorChange(), onCmdNameChange(), rebuildColorMatrices(), and GUIDialog_ViewSettings::NamePanel::update().
FXColor GUIDialog_ViewSettings::convert | ( | const RGBColor & | c | ) | [static] |
Converts a RGBColor into a FOX-color.
[in] | c | The color to convert |
Definition at line 978 of file GUIDialog_ViewSettings.cpp.
References RGBColor::blue(), RGBColor::green(), and RGBColor::red().
std::string GUIDialog_ViewSettings::getCurrentScheme | ( | ) | const |
Returns the name of the currently chosen scheme.
Definition at line 1251 of file GUIDialog_ViewSettings.cpp.
References mySchemeName.
Referenced by GUIViewTraffic::setColorScheme().
void GUIDialog_ViewSettings::loadDecals | ( | const std::string & | file | ) | [protected] |
Loads decals from a file.
[in] | file | The name of the file to read the decals from |
Definition at line 778 of file GUIDialog_ViewSettings.cpp.
References GUISettingsHandler::getDecals(), GUISettingsHandler::hasDecals(), MFXMutex::lock(), myDecalsLock, myParent, rebuildList(), and MFXMutex::unlock().
Referenced by onCmdLoadDecals().
void GUIDialog_ViewSettings::loadSettings | ( | const std::string & | file | ) | [protected] |
Loads a scheme from a file.
[in] | file | The name of the file to read the settings from |
Definition at line 742 of file GUIDialog_ViewSettings.cpp.
References GUISettingsHandler::addSettings(), GUICompleteSchemeStorage::get(), gSchemeStorage, myParent, mySchemeName, and mySettings.
Referenced by onCmdImportSetting().
long GUIDialog_ViewSettings::onCmdCancel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called if the Cancel-button was pressed.
Definition at line 466 of file GUIDialog_ViewSettings.cpp.
References myBackup.
long GUIDialog_ViewSettings::onCmdColorChange | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Called if something (color, width, etc.) has been changed.
Definition at line 538 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::add(), GUIColorScheme::addColor(), GUIVisualizationSettings::addExaggeration, GUIVisualizationSettings::addName, GUIVisualizationSettings::antialiase, GUIVisualizationSettings::backgroundColor, convert(), GUIVisualizationSettings::dither, GUIVisualizationSettings::drawLinkJunctionIndex, GUIVisualizationSettings::drawLinkTLIndex, GUIVisualizationSettings::drawMinGap, GUIVisualizationSettings::edgeName, GUICompleteSchemeStorage::get(), GUIColorer::getActive(), GUISUMOAbstractView::getColoringSchemesCombo(), GUIVisualizationSettings::getLaneEdgeMode(), GUIVisualizationSettings::getLaneEdgeScheme(), GUICompleteSchemeStorage::getNumInitialSettings(), GUIColorer::getScheme(), GUIDialog_ViewSettings::NamePanel::getSettings(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, gSchemeStorage, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, GUIVisualizationSettings::internalJunctionName, GUIColorScheme::isFixed(), GUIVisualizationSettings::junctionName, GUIVisualizationSettings::laneColorer, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::minAddSize, GUIVisualizationSettings::minPOISize, GUIVisualizationSettings::minVehicleSize, myAddNamePanel, myAntialiase, myBackgroundColor, myDetectorMinSizeDialer, myDetectorUpscaleDialer, myDither, myEdgeNamePanel, myGridXSizeDialer, myGridYSizeDialer, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionNamePanel, myLaneButtons, myLaneColorInterpolation, myLaneColors, myLaneEdgeColorMode, myLaneThresholds, myParent, myPOIMinSizeDialer, myPoiNamePanel, myPOIUpscaleDialer, mySchemeName, mySettings, myShowBlinker, myShowGrid, myShowJunctionIndex, myShowLane2Lane, myShowLaneBorders, myShowLaneDecals, myShowMinGap, myShowRails, myShowSizeLegend, myShowTLIndex, myStreetNamePanel, myVehicleButtons, myVehicleColorInterpolation, myVehicleColorMode, myVehicleColors, myVehicleMinSizeDialer, myVehicleNamePanel, myVehicleShapeDetail, myVehicleThresholds, myVehicleUpscaleDialer, GUIVisualizationSettings::name, GUIVisualizationSettings::poiExaggeration, GUIVisualizationSettings::poiName, rebuildColorMatrices(), GUIColorScheme::removeColor(), GUIColorer::setActive(), GUIColorScheme::setColor(), GUISUMOAbstractView::setColorScheme(), GUIColorScheme::setInterpolated(), GUIColorScheme::setThreshold(), GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::streetName, SUMOReal, GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleExaggeration, GUIVisualizationSettings::vehicleName, and GUIVisualizationSettings::vehicleQuality.
long GUIDialog_ViewSettings::onCmdDeleteSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be deleted.
Definition at line 851 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, mySchemeName, onCmdNameChange(), GUICompleteSchemeStorage::remove(), and GUICompleteSchemeStorage::writeSettings().
long GUIDialog_ViewSettings::onCmdEditTable | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the decals-table was changed.
Definition at line 1163 of file GUIDialog_ViewSettings.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, MFXEditedTableItem::col, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::initialised, MFXEditedTableItem::item, MFXMutex::lock(), myDecals, myDecalsLock, myParent, rebuildList(), GUISUMOAbstractView::Decal::rot, MFXEditedTableItem::row, SUMOReal, MFXMutex::unlock(), MFXEditedTableItem::updateOnly, and GUISUMOAbstractView::Decal::width.
long GUIDialog_ViewSettings::onCmdExportSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be exported into a file.
Definition at line 876 of file GUIDialog_ViewSettings.cpp.
References OutputDevice::close(), gCurrentFolder, OutputDevice::getDevice(), GUIIconSubSys::getIcon(), ICON_EMPTY, mySettings, GUIVisualizationSettings::save(), and MFXUtils::userPermitsOverwritingWhenFileExists().
long GUIDialog_ViewSettings::onCmdImportSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be read from a file.
Definition at line 909 of file GUIDialog_ViewSettings.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, and loadSettings().
long GUIDialog_ViewSettings::onCmdLoadDecals | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the decals shall be loaded from a file.
Definition at line 926 of file GUIDialog_ViewSettings.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, and loadDecals().
long GUIDialog_ViewSettings::onCmdNameChange | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the name of the scheme was changed.
Definition at line 474 of file GUIDialog_ViewSettings.cpp.
References GUIVisualizationSettings::addExaggeration, GUIVisualizationSettings::addName, GUIVisualizationSettings::antialiase, GUIVisualizationSettings::backgroundColor, convert(), GUIVisualizationSettings::dither, GUIVisualizationSettings::drawLinkJunctionIndex, GUIVisualizationSettings::drawLinkTLIndex, GUIVisualizationSettings::drawMinGap, GUIVisualizationSettings::edgeName, GUICompleteSchemeStorage::get(), GUIColorer::getActive(), GUIVisualizationSettings::getLaneEdgeMode(), gSchemeStorage, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, GUIVisualizationSettings::internalJunctionName, GUIVisualizationSettings::junctionName, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::minAddSize, GUIVisualizationSettings::minPOISize, GUIVisualizationSettings::minVehicleSize, myAddNamePanel, myAntialiase, myBackgroundColor, myBackup, myDetectorMinSizeDialer, myDetectorUpscaleDialer, myDither, myEdgeNamePanel, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionNamePanel, myLaneEdgeColorMode, myParent, myPOIMinSizeDialer, myPoiNamePanel, myPOIUpscaleDialer, mySchemeName, mySettings, myShowBlinker, myShowJunctionIndex, myShowLane2Lane, myShowLaneBorders, myShowLaneDecals, myShowMinGap, myShowRails, myShowSizeLegend, myShowTLIndex, myStreetNamePanel, myVehicleColorMode, myVehicleMinSizeDialer, myVehicleNamePanel, myVehicleShapeDetail, myVehicleUpscaleDialer, GUIVisualizationSettings::name, GUIVisualizationSettings::poiExaggeration, GUIVisualizationSettings::poiName, rebuildColorMatrices(), GUISUMOAbstractView::setColorScheme(), GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::streetName, GUIDialog_ViewSettings::NamePanel::update(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleExaggeration, GUIVisualizationSettings::vehicleName, and GUIVisualizationSettings::vehicleQuality.
Referenced by onCmdDeleteSetting(), setCurrent(), and setCurrentScheme().
long GUIDialog_ViewSettings::onCmdOk | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called if the OK-button was pressed.
Definition at line 459 of file GUIDialog_ViewSettings.cpp.
long GUIDialog_ViewSettings::onCmdSaveDecals | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the decals shall be saved to a file.
Definition at line 943 of file GUIDialog_ViewSettings.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, saveDecals(), and MFXUtils::userPermitsOverwritingWhenFileExists().
long GUIDialog_ViewSettings::onCmdSaveSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be saved into the registry.
Definition at line 791 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::add(), GUICompleteSchemeStorage::get(), GUISUMOAbstractView::getColoringSchemesCombo(), GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, myBackup, myParent, mySchemeName, mySettings, GUIVisualizationSettings::name, GUICompleteSchemeStorage::remove(), GUISUMOAbstractView::setColorScheme(), and GUICompleteSchemeStorage::writeSettings().
long GUIDialog_ViewSettings::onUpdDeleteSetting | ( | FXObject * | sender, |
FXSelector | , | ||
void * | data | ||
) |
Called when updating the button that allows to delete settings.
Definition at line 866 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, and mySchemeName.
long GUIDialog_ViewSettings::onUpdExportSetting | ( | FXObject * | sender, |
FXSelector | , | ||
void * | data | ||
) |
Called when updating the button that allows to export settings into a file.
Definition at line 899 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, and mySchemeName.
long GUIDialog_ViewSettings::onUpdImportSetting | ( | FXObject * | sender, |
FXSelector | , | ||
void * | data | ||
) |
Called when updating the button that allows to read settings from a file.
Definition at line 962 of file GUIDialog_ViewSettings.cpp.
long GUIDialog_ViewSettings::onUpdSaveSetting | ( | FXObject * | sender, |
FXSelector | , | ||
void * | data | ||
) |
Called when updating the button that allows to save the settings into the registry.
Definition at line 841 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, and mySchemeName.
GUIDialog_ViewSettings& GUIDialog_ViewSettings::operator= | ( | const GUIDialog_ViewSettings & | s | ) | [private] |
invalidated assignment operator
void GUIDialog_ViewSettings::rebuildColorMatrices | ( | bool | doCreate = false | ) | [protected] |
Rebuilds color changing dialogs after choosing another coloring scheme.
[in] | doCreate | Whether "create" shall be called (only if built the first time) |
Definition at line 1023 of file GUIDialog_ViewSettings.cpp.
References GUIColorScheme::allowsNegativeValues(), convert(), CT_REAL, MFXUtils::deleteChildren(), GUIColorScheme::getColors(), GUIVisualizationSettings::getLaneEdgeScheme(), GUIColorScheme::getNames(), GUIColorer::getScheme(), GUIColorScheme::getThresholds(), GUIColorScheme::isFixed(), GUIColorScheme::isInterpolated(), MID_SIMPLE_VIEW_COLORCHANGE, MID_TABLE, myDecalsFrame, myDecalsTable, myLaneButtons, myLaneColorInterpolation, myLaneColors, myLaneColorSettingFrame, myLaneThresholds, mySettings, myVehicleButtons, myVehicleColorInterpolation, myVehicleColors, myVehicleColorSettingFrame, myVehicleThresholds, rebuildList(), MFXAddEditTypedTable::setCellType(), MFXAddEditTypedTable::setNumberCellParams(), and GUIVisualizationSettings::vehicleColorer.
Referenced by onCmdColorChange(), and onCmdNameChange().
void GUIDialog_ViewSettings::rebuildList | ( | ) | [protected] |
Rebuilds the decals table.
Definition at line 984 of file GUIDialog_ViewSettings.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::Decal::height, myDecals, myDecalsTable, GUISUMOAbstractView::Decal::rot, and GUISUMOAbstractView::Decal::width.
Referenced by loadDecals(), onCmdEditTable(), and rebuildColorMatrices().
void GUIDialog_ViewSettings::saveDecals | ( | const std::string & | file | ) | const [protected] |
Writes the currently used decals into a file.
[in] | file | The name of the file to write the decals into |
Definition at line 754 of file GUIDialog_ViewSettings.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, OutputDevice::close(), GUISUMOAbstractView::Decal::filename, OutputDevice::getDevice(), GUISUMOAbstractView::Decal::height, myDecals, myParent, GUISUMOAbstractView::Decal::rot, and GUISUMOAbstractView::Decal::width.
Referenced by onCmdSaveDecals().
void GUIDialog_ViewSettings::setCurrent | ( | GUIVisualizationSettings * | settings | ) |
Sets current settings (called if reopened)
[in,out] | settings | The current settings that can be changed |
Definition at line 451 of file GUIDialog_ViewSettings.cpp.
References myBackup, mySettings, and onCmdNameChange().
Referenced by GUIViewTraffic::showViewschemeEditor().
void GUIDialog_ViewSettings::setCurrentScheme | ( | const std::string & | name | ) |
Sets the named scheme as the current.
[in] | The | name of the scheme that shall be set as current |
Definition at line 1257 of file GUIDialog_ViewSettings.cpp.
References mySchemeName, and onCmdNameChange().
Referenced by GUIViewTraffic::setColorScheme().
NamePanel * GUIDialog_ViewSettings::myAddNamePanel [private] |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
FXCheckButton* GUIDialog_ViewSettings::myAntialiase [private] |
Definition at line 254 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXColorWell* GUIDialog_ViewSettings::myBackgroundColor [private] |
Definition at line 225 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
A backup of the settings (used if the "Cancel" button is pressed)
Definition at line 210 of file GUIDialog_ViewSettings.h.
Referenced by onCmdCancel(), onCmdNameChange(), onCmdSaveSetting(), and setCurrent().
std::vector<GUISUMOAbstractView::Decal>* GUIDialog_ViewSettings::myDecals [private] |
The parent's decals.
Definition at line 213 of file GUIDialog_ViewSettings.h.
Referenced by onCmdEditTable(), rebuildList(), and saveDecals().
FXVerticalFrame* GUIDialog_ViewSettings::myDecalsFrame [private] |
Definition at line 226 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
MFXMutex* GUIDialog_ViewSettings::myDecalsLock [private] |
Lock used when changing the decals.
Definition at line 216 of file GUIDialog_ViewSettings.h.
Referenced by loadDecals(), and onCmdEditTable().
Definition at line 227 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices(), and rebuildList().
FXRealSpinDial* GUIDialog_ViewSettings::myDetectorMinSizeDialer [private] |
Definition at line 250 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXRealSpinDial * GUIDialog_ViewSettings::myDetectorUpscaleDialer [private] |
Definition at line 250 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton* GUIDialog_ViewSettings::myDither [private] |
Definition at line 255 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
NamePanel* GUIDialog_ViewSettings::myEdgeNamePanel [private] |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
FXRealSpinDial* GUIDialog_ViewSettings::myGridXSizeDialer [private] |
Definition at line 223 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange().
FXRealSpinDial * GUIDialog_ViewSettings::myGridYSizeDialer [private] |
Definition at line 223 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange().
FXCheckButton * GUIDialog_ViewSettings::myHideMacroConnectors [private] |
Definition at line 236 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
NamePanel * GUIDialog_ViewSettings::myJunctionNamePanel [private] |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
std::vector<FXButton*> GUIDialog_ViewSettings::myLaneButtons [private] |
Definition at line 233 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
FXCheckButton* GUIDialog_ViewSettings::myLaneColorInterpolation [private] |
Definition at line 234 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
std::vector<FXColorWell*> GUIDialog_ViewSettings::myLaneColors [private] |
Definition at line 231 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
FXVerticalFrame* GUIDialog_ViewSettings::myLaneColorSettingFrame [private] |
Definition at line 230 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
FXComboBox* GUIDialog_ViewSettings::myLaneEdgeColorMode [private] |
Definition at line 229 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myLaneThresholds [private] |
Definition at line 232 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
The parent view (which settings are changed)
Definition at line 204 of file GUIDialog_ViewSettings.h.
Referenced by loadDecals(), loadSettings(), onCmdColorChange(), onCmdEditTable(), onCmdNameChange(), onCmdSaveSetting(), saveDecals(), and ~GUIDialog_ViewSettings().
FXRealSpinDial* GUIDialog_ViewSettings::myPOIMinSizeDialer [private] |
Definition at line 251 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
NamePanel * GUIDialog_ViewSettings::myPoiNamePanel [private] |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
FXRealSpinDial * GUIDialog_ViewSettings::myPOIUpscaleDialer [private] |
Definition at line 251 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXComboBox* GUIDialog_ViewSettings::mySchemeName [private] |
Definition at line 221 of file GUIDialog_ViewSettings.h.
Referenced by getCurrentScheme(), loadSettings(), onCmdColorChange(), onCmdDeleteSetting(), onCmdNameChange(), onCmdSaveSetting(), onUpdDeleteSetting(), onUpdExportSetting(), onUpdSaveSetting(), and setCurrentScheme().
The current settings.
Definition at line 207 of file GUIDialog_ViewSettings.h.
Referenced by loadSettings(), onCmdColorChange(), onCmdExportSetting(), onCmdNameChange(), onCmdSaveSetting(), rebuildColorMatrices(), and setCurrent().
FXCheckButton* GUIDialog_ViewSettings::myShowBlinker [private] |
Definition at line 246 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton* GUIDialog_ViewSettings::myShowGrid [private] |
Definition at line 222 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange().
FXCheckButton * GUIDialog_ViewSettings::myShowJunctionIndex [private] |
Definition at line 248 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton* GUIDialog_ViewSettings::myShowLane2Lane [private] |
Definition at line 253 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton* GUIDialog_ViewSettings::myShowLaneBorders [private] |
Definition at line 236 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton * GUIDialog_ViewSettings::myShowLaneDecals [private] |
Definition at line 236 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton * GUIDialog_ViewSettings::myShowMinGap [private] |
Definition at line 246 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton * GUIDialog_ViewSettings::myShowRails [private] |
Definition at line 236 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton* GUIDialog_ViewSettings::myShowSizeLegend [private] |
Definition at line 256 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
FXCheckButton* GUIDialog_ViewSettings::myShowTLIndex [private] |
Definition at line 248 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
NamePanel * GUIDialog_ViewSettings::myStreetNamePanel [private] |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
std::vector<FXButton*> GUIDialog_ViewSettings::myVehicleButtons [private] |
Definition at line 243 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
FXCheckButton* GUIDialog_ViewSettings::myVehicleColorInterpolation [private] |
Definition at line 244 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
FXComboBox* GUIDialog_ViewSettings::myVehicleColorMode [private] |
Definition at line 239 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
std::vector<FXColorWell*> GUIDialog_ViewSettings::myVehicleColors [private] |
Definition at line 241 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
FXVerticalFrame* GUIDialog_ViewSettings::myVehicleColorSettingFrame [private] |
Definition at line 240 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
FXRealSpinDial* GUIDialog_ViewSettings::myVehicleMinSizeDialer [private] |
Definition at line 245 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
NamePanel * GUIDialog_ViewSettings::myVehicleNamePanel [private] |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
FXComboBox * GUIDialog_ViewSettings::myVehicleShapeDetail [private] |
Definition at line 239 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myVehicleThresholds [private] |
Definition at line 242 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
FXRealSpinDial * GUIDialog_ViewSettings::myVehicleUpscaleDialer [private] |
Definition at line 245 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().