![]() |
SUMO - Simulation of Urban MObility
|
The dialog to change the view (gui) settings. More...
#include <GUIDialog_ViewSettings.h>
Data Structures | |
class | NamePanel |
class | SizePanel |
Public Member Functions | |
std::string | getCurrentScheme () const |
Returns the name of the currently chosen scheme. More... | |
GUIDialog_ViewSettings (GUISUMOAbstractView *parent, GUIVisualizationSettings *settings, std::vector< GUISUMOAbstractView::Decal > *decals, MFXMutex *decalsLock) | |
Constructor. More... | |
void | setCurrent (GUIVisualizationSettings *settings) |
Sets current settings (called if reopened) More... | |
void | setCurrentScheme (const std::string &) |
Sets the named scheme as the current. More... | |
~GUIDialog_ViewSettings () | |
Destructor. More... | |
FOX-callbacks | |
long | onCmdOk (FXObject *, FXSelector, void *) |
Called if the OK-button was pressed. More... | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
Called if the Cancel-button was pressed. More... | |
long | onCmdColorChange (FXObject *, FXSelector, void *) |
Called if something (color, width, etc.) has been changed. More... | |
long | onCmdEditTable (FXObject *, FXSelector, void *data) |
Called if the decals-table was changed. More... | |
long | onCmdNameChange (FXObject *, FXSelector, void *) |
Called if the name of the scheme was changed. More... | |
long | onCmdSaveSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be saved into the registry. More... | |
long | onUpdSaveSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to save the settings into the registry. More... | |
long | onCmdDeleteSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be deleted. More... | |
long | onUpdDeleteSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to delete settings. More... | |
long | onCmdExportSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be exported into a file. More... | |
long | onUpdExportSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to export settings into a file. More... | |
long | onCmdImportSetting (FXObject *, FXSelector, void *data) |
Called if the settings shall be read from a file. More... | |
long | onUpdImportSetting (FXObject *, FXSelector, void *data) |
Called when updating the button that allows to read settings from a file. More... | |
long | onCmdLoadDecals (FXObject *, FXSelector, void *data) |
Called if the decals shall be loaded from a file. More... | |
long | onCmdSaveDecals (FXObject *, FXSelector, void *data) |
Called if the decals shall be saved to a file. More... | |
Protected Member Functions | |
GUIDialog_ViewSettings () | |
Default constructor (needed by FOX) More... | |
Private Member Functions | |
GUIDialog_ViewSettings (const GUIDialog_ViewSettings &s) | |
invalidated copy constructor More... | |
void | loadDecals (const std::string &file) |
Loads decals from a file. More... | |
void | loadSettings (const std::string &file) |
Loads a scheme from a file. More... | |
GUIDialog_ViewSettings & | operator= (const GUIDialog_ViewSettings &s) |
invalidated assignment operator More... | |
void | rebuildColorMatrices (bool doCreate=false) |
Rebuilds color changing dialogs after choosing another coloring scheme. More... | |
FXMatrix * | rebuildColorMatrix (FXVerticalFrame *frame, std::vector< FXColorWell * > &colors, std::vector< FXRealSpinDial * > &thresholds, std::vector< FXButton * > &buttons, FXCheckButton *interpolation, GUIColorScheme &scheme) |
Rebuilds manipulators for the current coloring scheme. More... | |
void | rebuildList () |
Rebuilds the decals table. More... | |
FXMatrix * | rebuildScaleMatrix (FXVerticalFrame *frame, std::vector< FXRealSpinDial * > &scales, std::vector< FXRealSpinDial * > &thresholds, std::vector< FXButton * > &buttons, FXCheckButton *interpolation, GUIScaleScheme &scheme) |
Rebuilds manipulators for the current scaling scheme. More... | |
void | saveDecals (OutputDevice &dev) const |
Writes the currently used decals into a file. More... | |
void | saveWindowSize () |
save window position and size to the registry More... | |
bool | updateColorRanges (FXObject *sender, std::vector< FXColorWell * >::const_iterator colIt, std::vector< FXColorWell * >::const_iterator colEnd, std::vector< FXRealSpinDial * >::const_iterator threshIt, std::vector< FXRealSpinDial * >::const_iterator threshEnd, std::vector< FXButton * >::const_iterator buttonIt, GUIColorScheme &scheme) |
bool | updateScaleRanges (FXObject *sender, std::vector< FXRealSpinDial * >::const_iterator colIt, std::vector< FXRealSpinDial * >::const_iterator colEnd, std::vector< FXRealSpinDial * >::const_iterator threshIt, std::vector< FXRealSpinDial * >::const_iterator threshEnd, std::vector< FXButton * >::const_iterator buttonIt, GUIScaleScheme &scheme) |
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 89 of file GUIDialog_ViewSettings.cpp.
References MFXUtils::getFXColor(), GUIIconSubSys::getIcon(), GUICompleteSchemeStorage::getNames(), gSchemeStorage, ICON_EMPTY, ICON_OPEN_CONFIG, ICON_REMOVEDB, ICON_SAVE, ICON_SAVEDB, MAX2(), 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, MID_SIMPLE_VIEW_SAVE_DECALS, MIN2(), and GUIVisualizationSettings::UseMesoSim.
GUIDialog_ViewSettings::~GUIDialog_ViewSettings | ( | ) |
Destructor.
Definition at line 584 of file GUIDialog_ViewSettings.cpp.
References myAddNamePanel, myAddSizePanel, myCwaEdgeNamePanel, myEdgeNamePanel, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionIndexPanel, myJunctionNamePanel, myJunctionSizePanel, myParent, myPersonSizePanel, myPOINamePanel, myPOISizePanel, myPOITypePanel, myPolyNamePanel, myPolySizePanel, myPolyTypePanel, myStreetNamePanel, myTLIndexPanel, myVehicleNamePanel, myVehicleSizePanel, and GUISUMOAbstractView::remove().
|
inlineprotected |
Default constructor (needed by FOX)
Definition at line 335 of file GUIDialog_ViewSettings.h.
References operator=().
|
private |
invalidated copy constructor
std::string GUIDialog_ViewSettings::getCurrentScheme | ( | ) | const |
Returns the name of the currently chosen scheme.
Definition at line 1589 of file GUIDialog_ViewSettings.cpp.
References mySchemeName.
Referenced by GUIViewTraffic::setColorScheme(), and GNEViewNet::setColorScheme().
|
private |
Loads decals from a file.
[in] | file | The name of the file to read the decals from |
Definition at line 1080 of file GUIDialog_ViewSettings.cpp.
References GUISettingsHandler::getDecals(), GUISettingsHandler::hasDecals(), MFXMutex::lock(), myDecalsLock, myParent, rebuildList(), and MFXMutex::unlock().
Referenced by onCmdLoadDecals().
|
private |
Loads a scheme from a file.
[in] | file | The name of the file to read the settings from |
Definition at line 1034 of file GUIDialog_ViewSettings.cpp.
References GUISettingsHandler::addSettings(), GUISettingsHandler::applyViewport(), GUICompleteSchemeStorage::get(), GUISettingsHandler::getDecals(), GUISettingsHandler::getDelay(), gSchemeStorage, GUISettingsHandler::hasDecals(), MFXMutex::lock(), myDecalsLock, myParent, mySchemeName, mySettings, rebuildColorMatrices(), rebuildList(), GUISUMOAbstractView::setDelay(), and MFXMutex::unlock().
Referenced by onCmdImportSetting().
long GUIDialog_ViewSettings::onCmdCancel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called if the Cancel-button was pressed.
Definition at line 628 of file GUIDialog_ViewSettings.cpp.
References myBackup, and saveWindowSize().
long GUIDialog_ViewSettings::onCmdColorChange | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Called if something (color, width, etc.) has been changed.
Definition at line 830 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::add(), GUIVisualizationSettings::addName, GUIVisualizationSettings::addSize, GUIVisualizationSettings::antialiase, GUIVisualizationSettings::backgroundColor, GUIVisualizationSettings::containerColorer, GUIVisualizationSettings::containerName, GUIVisualizationSettings::containerQuality, GUIVisualizationSettings::containerSize, GUICompleteSchemeStorage::contains(), GUIVisualizationSettings::cwaEdgeName, GUIVisualizationSettings::dither, GUIVisualizationSettings::drawCrossingsAndWalkingareas, GUIVisualizationSettings::drawJunctionShape, GUIVisualizationSettings::drawLinkJunctionIndex, GUIVisualizationSettings::drawLinkTLIndex, GUIVisualizationSettings::drawMinGap, GUIVisualizationSettings::edgeColorer, GUIVisualizationSettings::edgeName, GUIVisualizationSettings::edgeScaler, GUICompleteSchemeStorage::get(), GUIPropertySchemeStorage< T >::getActive(), GUISUMOAbstractView::getColoringSchemesCombo(), GUIVisualizationSettings::getLaneEdgeMode(), GUIVisualizationSettings::getLaneEdgeScaleMode(), GUIVisualizationSettings::getLaneEdgeScaleScheme(), GUIVisualizationSettings::getLaneEdgeScheme(), GUICompleteSchemeStorage::getNumInitialSettings(), MFXUtils::getRGBColor(), GUIPropertySchemeStorage< T >::getScheme(), GUIDialog_ViewSettings::NamePanel::getSettings(), GUIDialog_ViewSettings::SizePanel::getSettings(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, gSchemeStorage, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, GUIVisualizationSettings::internalJunctionName, GUIVisualizationSettings::junctionColorer, GUIVisualizationSettings::junctionName, GUIVisualizationSettings::junctionSize, GUIVisualizationSettings::laneColorer, GUIVisualizationSettings::laneMinSize, GUIVisualizationSettings::laneScaler, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, myAddNamePanel, myAddSizePanel, myAntialiase, myBackgroundColor, myContainerButtons, myContainerColorInterpolation, myContainerColorMode, myContainerColors, myContainerNamePanel, myContainerShapeDetail, myContainerSizePanel, myContainerThresholds, myCwaEdgeNamePanel, myDither, myDrawCrossingsAndWalkingAreas, myDrawJunctionShape, myEdgeNamePanel, myGridXSizeDialer, myGridYSizeDialer, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionButtons, myJunctionColorInterpolation, myJunctionColorMode, myJunctionColors, myJunctionIndexPanel, myJunctionNamePanel, myJunctionSizePanel, myJunctionThresholds, myLaneButtons, myLaneColorInterpolation, myLaneColors, myLaneEdgeColorMode, myLaneEdgeScaleMode, myLaneMinWidthDialer, myLaneScaleButtons, myLaneScaleInterpolation, myLaneScales, myLaneScaleThresholds, myLaneThresholds, myLaneWidthUpscaleDialer, myParent, myPersonButtons, myPersonColorInterpolation, myPersonColorMode, myPersonColors, myPersonNamePanel, myPersonShapeDetail, myPersonSizePanel, myPersonThresholds, myPOINamePanel, myPOISizePanel, myPOITypePanel, myPolyNamePanel, myPolySizePanel, myPolyTypePanel, mySchemeName, mySettings, myShowBlinker, myShowBTRange, myShowGrid, myShowLane2Lane, myShowLaneBorders, myShowLaneDecals, myShowLaneDirection, myShowMinGap, myShowRails, myShowSizeLegend, myShowSublanes, myStreetNamePanel, myTLIndexPanel, myVehicleButtons, myVehicleColorInterpolation, myVehicleColorMode, myVehicleColors, myVehicleNamePanel, myVehicleShapeDetail, myVehicleSizePanel, myVehicleThresholds, GUIVisualizationSettings::name, GUIVisualizationSettings::personColorer, GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::personSize, GUIVisualizationSettings::poiName, GUIVisualizationSettings::poiSize, GUIVisualizationSettings::poiType, GUIVisualizationSettings::polyName, GUIVisualizationSettings::polySize, GUIVisualizationSettings::polyType, rebuildColorMatrices(), GUIPropertySchemeStorage< T >::setActive(), GUISUMOAbstractView::setColorScheme(), GUIPropertyScheme< T >::setInterpolated(), GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLaneDirection, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::showSublanes, GUIVisualizationSettings::streetName, SUMOReal, toString(), updateColorRanges(), updateScaleRanges(), GUIVisualizationSettings::UseMesoSim, GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, and GUIVisualizationSettings::vehicleSize.
long GUIDialog_ViewSettings::onCmdDeleteSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be deleted.
Definition at line 1147 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 1492 of file GUIDialog_ViewSettings.cpp.
References TplConvert::_2SUMOReal(), GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, MFXEditedTableItem::col, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::initialised, MFXEditedTableItem::item, GUISUMOAbstractView::Decal::layer, 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 1172 of file GUIDialog_ViewSettings.cpp.
References OutputDevice::close(), OutputDevice::closeTag(), gCurrentFolder, GUISUMOAbstractView::getDelay(), OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), GUISUMOAbstractView::getViewportEditor(), ICON_EMPTY, myParent, mySaveDecals, mySaveDelay, mySaveViewPort, mySettings, OutputDevice::openTag(), GUIVisualizationSettings::save(), saveDecals(), SUMO_ATTR_VALUE, SUMO_TAG_DELAY, SUMO_TAG_VIEWSETTINGS, OutputDevice::writeAttr(), and GUIDialog_EditViewport::writeXML().
long GUIDialog_ViewSettings::onCmdImportSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be read from a file.
Definition at line 1213 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 1230 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 637 of file GUIDialog_ViewSettings.cpp.
References GUIVisualizationSettings::addName, GUIVisualizationSettings::addSize, GUIVisualizationSettings::antialiase, GUIVisualizationSettings::backgroundColor, GUIVisualizationSettings::containerColorer, GUIVisualizationSettings::containerName, GUIVisualizationSettings::containerQuality, GUIVisualizationSettings::containerSize, GUIVisualizationSettings::cwaEdgeName, GUIVisualizationSettings::dither, GUIVisualizationSettings::drawCrossingsAndWalkingareas, GUIVisualizationSettings::drawJunctionShape, GUIVisualizationSettings::drawLinkJunctionIndex, GUIVisualizationSettings::drawLinkTLIndex, GUIVisualizationSettings::drawMinGap, GUIVisualizationSettings::edgeName, GUICompleteSchemeStorage::get(), GUIPropertySchemeStorage< T >::getActive(), MFXUtils::getFXColor(), GUIVisualizationSettings::getLaneEdgeMode(), GUIVisualizationSettings::getLaneEdgeScaleMode(), gSchemeStorage, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, GUIVisualizationSettings::internalJunctionName, GUIVisualizationSettings::junctionColorer, GUIVisualizationSettings::junctionName, GUIVisualizationSettings::junctionSize, GUIVisualizationSettings::laneMinSize, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, myAddNamePanel, myAddSizePanel, myAntialiase, myBackgroundColor, myBackup, myContainerColorMode, myContainerNamePanel, myContainerShapeDetail, myContainerSizePanel, myCwaEdgeNamePanel, myDither, myDrawCrossingsAndWalkingAreas, myDrawJunctionShape, myEdgeNamePanel, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionColorMode, myJunctionIndexPanel, myJunctionNamePanel, myJunctionSizePanel, myLaneEdgeColorMode, myLaneEdgeScaleMode, myLaneMinWidthDialer, myLaneWidthUpscaleDialer, myParent, myPersonColorMode, myPersonNamePanel, myPersonShapeDetail, myPersonSizePanel, myPOINamePanel, myPOISizePanel, myPOITypePanel, myPolyNamePanel, myPolySizePanel, myPolyTypePanel, mySchemeName, mySettings, myShowBlinker, myShowBTRange, myShowLane2Lane, myShowLaneBorders, myShowLaneDecals, myShowLaneDirection, myShowMinGap, myShowRails, myShowSizeLegend, myShowSublanes, myStreetNamePanel, myTLIndexPanel, myVehicleColorMode, myVehicleNamePanel, myVehicleShapeDetail, myVehicleSizePanel, GUIVisualizationSettings::name, GUIVisualizationSettings::personColorer, GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::personSize, GUIVisualizationSettings::poiName, GUIVisualizationSettings::poiSize, GUIVisualizationSettings::poiType, GUIVisualizationSettings::polyName, GUIVisualizationSettings::polySize, GUIVisualizationSettings::polyType, rebuildColorMatrices(), GUISUMOAbstractView::setColorScheme(), GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLaneDirection, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::showSublanes, GUIVisualizationSettings::streetName, GUIDialog_ViewSettings::NamePanel::update(), GUIDialog_ViewSettings::SizePanel::update(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, and GUIVisualizationSettings::vehicleSize.
Referenced by onCmdDeleteSetting(), setCurrent(), and setCurrentScheme().
long GUIDialog_ViewSettings::onCmdOk | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called if the OK-button was pressed.
Definition at line 620 of file GUIDialog_ViewSettings.cpp.
References saveWindowSize().
long GUIDialog_ViewSettings::onCmdSaveDecals | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the decals shall be saved to a file.
Definition at line 1247 of file GUIDialog_ViewSettings.cpp.
References OutputDevice::close(), OutputDevice::closeTag(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), ICON_EMPTY, myParent, OutputDevice::openTag(), and saveDecals().
long GUIDialog_ViewSettings::onCmdSaveSetting | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
Called if the settings shall be saved into the registry.
Definition at line 1093 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 1162 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 1202 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, mySaveDecals, mySaveDelay, mySaveViewPort, 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 1268 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 1137 of file GUIDialog_ViewSettings.cpp.
References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, and mySchemeName.
|
private |
invalidated assignment operator
Referenced by GUIDialog_ViewSettings().
|
private |
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 1434 of file GUIDialog_ViewSettings.cpp.
References GUIVisualizationSettings::containerColorer, CT_REAL, GUIVisualizationSettings::getLaneEdgeScaleScheme(), GUIVisualizationSettings::getLaneEdgeScheme(), GUIPropertySchemeStorage< T >::getScheme(), GUIVisualizationSettings::junctionColorer, MID_TABLE, myContainerButtons, myContainerColorInterpolation, myContainerColors, myContainerColorSettingFrame, myContainerThresholds, myDecalsFrame, myDecalsTable, myJunctionButtons, myJunctionColorInterpolation, myJunctionColors, myJunctionColorSettingFrame, myJunctionThresholds, myLaneButtons, myLaneColorInterpolation, myLaneColors, myLaneColorSettingFrame, myLaneScaleButtons, myLaneScaleInterpolation, myLaneScales, myLaneScaleSettingFrame, myLaneScaleThresholds, myLaneThresholds, myPersonButtons, myPersonColorInterpolation, myPersonColors, myPersonColorSettingFrame, myPersonThresholds, mySettings, myVehicleButtons, myVehicleColorInterpolation, myVehicleColors, myVehicleColorSettingFrame, myVehicleThresholds, GUIVisualizationSettings::personColorer, rebuildColorMatrix(), rebuildList(), rebuildScaleMatrix(), MFXAddEditTypedTable::setCellType(), MFXAddEditTypedTable::setNumberCellParams(), and GUIVisualizationSettings::vehicleColorer.
Referenced by loadSettings(), onCmdColorChange(), and onCmdNameChange().
|
private |
Rebuilds manipulators for the current coloring scheme.
Definition at line 1317 of file GUIDialog_ViewSettings.cpp.
References GUIPropertyScheme< T >::allowsNegativeValues(), MFXUtils::deleteChildren(), GUIPropertyScheme< T >::getColors(), MFXUtils::getFXColor(), GUIPropertyScheme< T >::getNames(), GUIPropertyScheme< T >::getThresholds(), GUIPropertyScheme< T >::isFixed(), GUIPropertyScheme< T >::isInterpolated(), MID_SIMPLE_VIEW_COLORCHANGE, FX::SPINDIAL_NOMAX, and FX::SPINDIAL_NOMIN.
Referenced by rebuildColorMatrices().
|
private |
Rebuilds the decals table.
Definition at line 1275 of file GUIDialog_ViewSettings.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::layer, MAX2(), myDecals, myDecalsTable, GUISUMOAbstractView::Decal::rot, and GUISUMOAbstractView::Decal::width.
Referenced by loadDecals(), loadSettings(), onCmdEditTable(), and rebuildColorMatrices().
|
private |
Rebuilds manipulators for the current scaling scheme.
Definition at line 1376 of file GUIDialog_ViewSettings.cpp.
References GUIPropertyScheme< T >::allowsNegativeValues(), MFXUtils::deleteChildren(), GUIPropertyScheme< T >::getColors(), GUIPropertyScheme< T >::getNames(), GUIPropertyScheme< T >::getThresholds(), GUIPropertyScheme< T >::isFixed(), GUIPropertyScheme< T >::isInterpolated(), MID_SIMPLE_VIEW_COLORCHANGE, FX::SPINDIAL_NOMAX, and FX::SPINDIAL_NOMIN.
Referenced by rebuildColorMatrices().
|
private |
Writes the currently used decals into a file.
[in] | file | The name of the file to write the decals into |
Definition at line 1058 of file GUIDialog_ViewSettings.cpp.
References GUISUMOAbstractView::Decal::altitude, GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::centerZ, OutputDevice::closeTag(), GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::layer, myDecals, OutputDevice::openTag(), GUISUMOAbstractView::Decal::roll, GUISUMOAbstractView::Decal::rot, SUMO_ATTR_CENTER_X, SUMO_ATTR_CENTER_Y, SUMO_ATTR_CENTER_Z, SUMO_ATTR_HEIGHT, SUMO_ATTR_LAYER, SUMO_ATTR_WIDTH, SUMO_TAG_VIEWSETTINGS_DECAL, GUISUMOAbstractView::Decal::tilt, GUISUMOAbstractView::Decal::width, and OutputDevice::writeAttr().
Referenced by onCmdExportSetting(), and onCmdSaveDecals().
|
private |
save window position and size to the registry
Definition at line 1687 of file GUIDialog_ViewSettings.cpp.
Referenced by onCmdCancel(), and onCmdOk().
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 612 of file GUIDialog_ViewSettings.cpp.
References myBackup, mySettings, and onCmdNameChange().
Referenced by GUISUMOAbstractView::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 1595 of file GUIDialog_ViewSettings.cpp.
References mySchemeName, and onCmdNameChange().
Referenced by GUIViewTraffic::setColorScheme(), and GNEViewNet::setColorScheme().
|
private |
Definition at line 724 of file GUIDialog_ViewSettings.cpp.
References GUIPropertyScheme< T >::addColor(), MFXUtils::getRGBColor(), GUIPropertyScheme< T >::isFixed(), GUIPropertyScheme< T >::removeColor(), GUIPropertyScheme< T >::setColor(), GUIPropertyScheme< T >::setThreshold(), and SUMOReal.
Referenced by onCmdColorChange().
|
private |
Definition at line 777 of file GUIDialog_ViewSettings.cpp.
References GUIPropertyScheme< T >::addColor(), GUIPropertyScheme< T >::isFixed(), GUIPropertyScheme< T >::removeColor(), GUIPropertyScheme< T >::setColor(), GUIPropertyScheme< T >::setThreshold(), and SUMOReal.
Referenced by onCmdColorChange().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 315 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 257 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
A backup of the settings (used if the "Cancel" button is pressed)
Definition at line 243 of file GUIDialog_ViewSettings.h.
Referenced by onCmdCancel(), onCmdNameChange(), onCmdSaveSetting(), and setCurrent().
|
private |
Definition at line 301 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 302 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 297 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 299 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 298 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
Definition at line 303 of file GUIDialog_ViewSettings.h.
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 297 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 300 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 303 of file GUIDialog_ViewSettings.h.
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
The parent's decals.
Definition at line 246 of file GUIDialog_ViewSettings.h.
Referenced by onCmdEditTable(), rebuildList(), and saveDecals().
|
private |
Definition at line 258 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
Lock used when changing the decals.
Definition at line 249 of file GUIDialog_ViewSettings.h.
Referenced by loadDecals(), loadSettings(), and onCmdEditTable().
|
private |
Definition at line 259 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices(), and rebuildList().
|
private |
Definition at line 316 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 314 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 313 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 255 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange().
|
private |
Definition at line 255 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange().
|
private |
Definition at line 277 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 309 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 310 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 305 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 307 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 306 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 308 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 266 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 267 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 264 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 263 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
... lane colorer
Definition at line 262 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
... lane scaler
Definition at line 270 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 280 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 274 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 275 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 272 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 271 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
Definition at line 273 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 265 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 279 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
The parent view (which settings are changed)
Definition at line 237 of file GUIDialog_ViewSettings.h.
Referenced by loadDecals(), loadSettings(), onCmdColorChange(), onCmdEditTable(), onCmdExportSetting(), onCmdNameChange(), onCmdSaveDecals(), onCmdSaveSetting(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 294 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 295 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 290 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 292 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 291 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 290 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 293 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 329 of file GUIDialog_ViewSettings.h.
Referenced by onCmdExportSetting(), and onUpdExportSetting().
|
private |
Definition at line 329 of file GUIDialog_ViewSettings.h.
Referenced by onCmdExportSetting(), and onUpdExportSetting().
|
private |
Definition at line 329 of file GUIDialog_ViewSettings.h.
Referenced by onCmdExportSetting(), and onUpdExportSetting().
|
private |
Definition at line 253 of file GUIDialog_ViewSettings.h.
Referenced by getCurrentScheme(), loadSettings(), onCmdColorChange(), onCmdDeleteSetting(), onCmdNameChange(), onCmdSaveSetting(), onUpdDeleteSetting(), onUpdExportSetting(), onUpdSaveSetting(), and setCurrentScheme().
|
private |
The current settings.
Definition at line 240 of file GUIDialog_ViewSettings.h.
Referenced by loadSettings(), onCmdColorChange(), onCmdExportSetting(), onCmdNameChange(), onCmdSaveSetting(), rebuildColorMatrices(), and setCurrent().
|
private |
Definition at line 288 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 288 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 254 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange().
|
private |
Definition at line 312 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 277 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 277 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 277 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 288 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 277 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 317 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 277 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 286 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 287 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 282 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 284 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().
|
private |
Definition at line 283 of file GUIDialog_ViewSettings.h.
Referenced by rebuildColorMatrices().
|
private |
Definition at line 319 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 282 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and onCmdNameChange().
|
private |
Definition at line 325 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), onCmdNameChange(), and ~GUIDialog_ViewSettings().
|
private |
Definition at line 285 of file GUIDialog_ViewSettings.h.
Referenced by onCmdColorChange(), and rebuildColorMatrices().