SUMO - Simulation of Urban MObility
GUIDialog_ViewSettings Class Reference

The dialog to change the view (gui) settings. More...

#include <GUIDialog_ViewSettings.h>

Inheritance diagram for GUIDialog_ViewSettings:
Inheritance graph
Collaboration diagram for GUIDialog_ViewSettings:
Collaboration graph

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_ViewSettingsoperator= (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)
 

Private Attributes

GUIVisualizationSettings myBackup
 A backup of the settings (used if the "Cancel" button is pressed) More...
 
std::vector< GUISUMOAbstractView::Decal > * myDecals
 The parent's decals. More...
 
MFXMutexmyDecalsLock
 Lock used when changing the decals. More...
 
GUISUMOAbstractViewmyParent
 The parent view (which settings are changed) More...
 
GUIVisualizationSettingsmySettings
 The current settings. More...
 
Dialog elements
FXComboBox * mySchemeName
 
FXCheckButton * myShowGrid
 
FXRealSpinDial * myGridXSizeDialer
 
FXRealSpinDial * myGridYSizeDialer
 
FXColorWell * myBackgroundColor
 
FXVerticalFrame * myDecalsFrame
 
MFXAddEditTypedTablemyDecalsTable
 
FXComboBox * myLaneEdgeColorMode
 ... lane colorer More...
 
FXVerticalFrame * myLaneColorSettingFrame
 
std::vector< FXColorWell * > myLaneColors
 
std::vector< FXRealSpinDial * > myLaneThresholds
 
std::vector< FXButton * > myLaneButtons
 
FXCheckButton * myLaneColorInterpolation
 
FXComboBox * myLaneEdgeScaleMode
 ... lane scaler More...
 
FXVerticalFrame * myLaneScaleSettingFrame
 
std::vector< FXRealSpinDial * > myLaneScales
 
std::vector< FXRealSpinDial * > myLaneScaleThresholds
 
std::vector< FXButton * > myLaneScaleButtons
 
FXCheckButton * myLaneScaleInterpolation
 
FXCheckButton * myShowLaneBorders
 
FXCheckButton * myShowLaneDecals
 
FXCheckButton * myShowRails
 
FXCheckButton * myHideMacroConnectors
 
FXRealSpinDial * myLaneWidthUpscaleDialer
 
FXComboBox * myVehicleColorMode
 
FXComboBox * myVehicleShapeDetail
 
FXVerticalFrame * myVehicleColorSettingFrame
 
std::vector< FXColorWell * > myVehicleColors
 
std::vector< FXRealSpinDial * > myVehicleThresholds
 
std::vector< FXButton * > myVehicleButtons
 
FXCheckButton * myVehicleColorInterpolation
 
FXCheckButton * myShowBlinker
 
FXCheckButton * myShowMinGap
 
FXCheckButton * myShowBTRange
 
FXComboBox * myPersonColorMode
 
FXComboBox * myPersonShapeDetail
 
FXVerticalFrame * myPersonColorSettingFrame
 
std::vector< FXColorWell * > myPersonColors
 
std::vector< FXRealSpinDial * > myPersonThresholds
 
std::vector< FXButton * > myPersonButtons
 
FXCheckButton * myPersonColorInterpolation
 
FXComboBox * myContainerColorMode
 
FXComboBox * myContainerShapeDetail
 
FXVerticalFrame * myContainerColorSettingFrame
 
std::vector< FXColorWell * > myContainerColors
 
std::vector< FXRealSpinDial * > myContainerThresholds
 
std::vector< FXButton * > myContainerButtons
 
FXCheckButton * myContainerColorInterpolation
 
FXRealSpinDial * myContainerMinSizeDialer
 
FXRealSpinDial * myContainerUpscaleDialer
 
FXComboBox * myJunctionColorMode
 
FXVerticalFrame * myJunctionColorSettingFrame
 
std::vector< FXColorWell * > myJunctionColors
 
std::vector< FXRealSpinDial * > myJunctionThresholds
 
std::vector< FXButton * > myJunctionButtons
 
FXCheckButton * myJunctionColorInterpolation
 
FXCheckButton * myShowLane2Lane
 
FXCheckButton * myDrawJunctionShape
 
FXCheckButton * myDrawCrossingsAndWalkingAreas
 
FXCheckButton * myAntialiase
 
FXCheckButton * myDither
 
FXCheckButton * myShowSizeLegend
 
NamePanelmyEdgeNamePanel
 
NamePanelmyInternalEdgeNamePanel
 
NamePanelmyCwaEdgeNamePanel
 
NamePanelmyStreetNamePanel
 
NamePanelmyJunctionIndexPanel
 
NamePanelmyTLIndexPanel
 
NamePanelmyJunctionNamePanel
 
NamePanelmyInternalJunctionNamePanel
 
NamePanelmyVehicleNamePanel
 
NamePanelmyPersonNamePanel
 
NamePanelmyContainerNamePanel
 
NamePanelmyAddNamePanel
 
NamePanelmyPOINamePanel
 
NamePanelmyPolyNamePanel
 
NamePanelmyPOITypePanel
 
NamePanelmyPolyTypePanel
 
SizePanelmyVehicleSizePanel
 
SizePanelmyPersonSizePanel
 
SizePanelmyContainerSizePanel
 
SizePanelmyPOISizePanel
 
SizePanelmyPolySizePanel
 
SizePanelmyAddSizePanel
 
FXCheckButton * mySaveViewPort
 
FXCheckButton * mySaveDelay
 
FXCheckButton * mySaveDecals
 

Detailed Description

The dialog to change the view (gui) settings.

Todo:
Check whether saving/loading settings should be done via XML

Definition at line 56 of file GUIDialog_ViewSettings.h.

Constructor & Destructor Documentation

GUIDialog_ViewSettings::GUIDialog_ViewSettings ( GUISUMOAbstractView parent,
GUIVisualizationSettings settings,
std::vector< GUISUMOAbstractView::Decal > *  decals,
MFXMutex decalsLock 
)

Constructor.

Parameters
[in]parentThe view to report changed settings to
[in,out]settingsThe current settings that can be changed
[in]laneEdgeModeSourceClass storing known lane coloring schemes
[in]vehicleModeSourceClass storing known vehicle coloring schemes
[in]decalsDecals used
[in]decalsLockA 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, and MIN2().

GUIDialog_ViewSettings::GUIDialog_ViewSettings ( )
inlineprotected

Default constructor (needed by FOX)

Definition at line 334 of file GUIDialog_ViewSettings.h.

References operator=().

GUIDialog_ViewSettings::GUIDialog_ViewSettings ( const GUIDialog_ViewSettings s)
private

invalidated copy constructor

Member Function Documentation

std::string GUIDialog_ViewSettings::getCurrentScheme ( ) const

Returns the name of the currently chosen scheme.

Returns
The name of the edited (chosen) scheme)

Definition at line 1571 of file GUIDialog_ViewSettings.cpp.

References mySchemeName.

Referenced by GUIViewTraffic::setColorScheme(), and GNEViewNet::setColorScheme().

void GUIDialog_ViewSettings::loadDecals ( const std::string &  file)
private

Loads decals from a file.

Parameters
[in]fileThe name of the file to read the decals from

Definition at line 1063 of file GUIDialog_ViewSettings.cpp.

References GUISettingsHandler::getDecals(), GUISettingsHandler::hasDecals(), MFXMutex::lock(), myDecalsLock, myParent, rebuildList(), and MFXMutex::unlock().

Referenced by onCmdLoadDecals().

long GUIDialog_ViewSettings::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)

Called if the Cancel-button was pressed.

Definition at line 611 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 809 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::edgeName, 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::laneColorer, 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, myJunctionThresholds, myLaneButtons, myLaneColorInterpolation, myLaneColors, myLaneEdgeColorMode, myLaneEdgeScaleMode, 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, myShowMinGap, myShowRails, myShowSizeLegend, 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::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::streetName, SUMOReal, toString(), updateColorRanges(), updateScaleRanges(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, and GUIVisualizationSettings::vehicleSize.

long GUIDialog_ViewSettings::onCmdDeleteSetting ( FXObject *  ,
FXSelector  ,
void *  data 
)
long GUIDialog_ViewSettings::onCmdImportSetting ( FXObject *  ,
FXSelector  ,
void *  data 
)

Called if the settings shall be read from a file.

Definition at line 1196 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 1213 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 620 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::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, myAddNamePanel, myAddSizePanel, myAntialiase, myBackgroundColor, myBackup, myContainerColorMode, myContainerNamePanel, myContainerShapeDetail, myContainerSizePanel, myCwaEdgeNamePanel, myDither, myDrawCrossingsAndWalkingAreas, myDrawJunctionShape, myEdgeNamePanel, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionColorMode, myJunctionIndexPanel, myJunctionNamePanel, myLaneEdgeColorMode, myLaneEdgeScaleMode, myLaneWidthUpscaleDialer, myParent, myPersonColorMode, myPersonNamePanel, myPersonShapeDetail, myPersonSizePanel, myPOINamePanel, myPOISizePanel, myPOITypePanel, myPolyNamePanel, myPolySizePanel, myPolyTypePanel, mySchemeName, mySettings, myShowBlinker, myShowBTRange, myShowLane2Lane, myShowLaneBorders, myShowLaneDecals, myShowMinGap, myShowRails, myShowSizeLegend, 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::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, 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 603 of file GUIDialog_ViewSettings.cpp.

References saveWindowSize().

long GUIDialog_ViewSettings::onCmdSaveDecals ( FXObject *  ,
FXSelector  ,
void *  data 
)
long GUIDialog_ViewSettings::onUpdDeleteSetting ( FXObject *  sender,
FXSelector  ,
void *  data 
)

Called when updating the button that allows to delete settings.

Definition at line 1145 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 1185 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 1251 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 1120 of file GUIDialog_ViewSettings.cpp.

References GUICompleteSchemeStorage::getNumInitialSettings(), gSchemeStorage, and mySchemeName.

GUIDialog_ViewSettings& GUIDialog_ViewSettings::operator= ( const GUIDialog_ViewSettings s)
private

invalidated assignment operator

Referenced by GUIDialog_ViewSettings().

void GUIDialog_ViewSettings::rebuildColorMatrices ( bool  doCreate = false)
private
FXMatrix * GUIDialog_ViewSettings::rebuildColorMatrix ( FXVerticalFrame *  frame,
std::vector< FXColorWell * > &  colors,
std::vector< FXRealSpinDial * > &  thresholds,
std::vector< FXButton * > &  buttons,
FXCheckButton *  interpolation,
GUIColorScheme scheme 
)
private
FXMatrix * GUIDialog_ViewSettings::rebuildScaleMatrix ( FXVerticalFrame *  frame,
std::vector< FXRealSpinDial * > &  scales,
std::vector< FXRealSpinDial * > &  thresholds,
std::vector< FXButton * > &  buttons,
FXCheckButton *  interpolation,
GUIScaleScheme scheme 
)
private
void GUIDialog_ViewSettings::saveWindowSize ( )
private

save window position and size to the registry

Definition at line 1669 of file GUIDialog_ViewSettings.cpp.

Referenced by onCmdCancel(), and onCmdOk().

void GUIDialog_ViewSettings::setCurrent ( GUIVisualizationSettings settings)

Sets current settings (called if reopened)

Parameters
[in,out]settingsThe current settings that can be changed

Definition at line 595 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.

Parameters
[in]Thename of the scheme that shall be set as current

Definition at line 1577 of file GUIDialog_ViewSettings.cpp.

References mySchemeName, and onCmdNameChange().

Referenced by GUIViewTraffic::setColorScheme(), and GNEViewNet::setColorScheme().

bool GUIDialog_ViewSettings::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 
)
private
bool GUIDialog_ViewSettings::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 
)
private

Field Documentation

NamePanel * GUIDialog_ViewSettings::myAddNamePanel
private
SizePanel * GUIDialog_ViewSettings::myAddSizePanel
private
FXCheckButton* GUIDialog_ViewSettings::myAntialiase
private

Definition at line 314 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXColorWell* GUIDialog_ViewSettings::myBackgroundColor
private

Definition at line 257 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

GUIVisualizationSettings GUIDialog_ViewSettings::myBackup
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().

std::vector<FXButton*> GUIDialog_ViewSettings::myContainerButtons
private

Definition at line 300 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myContainerColorInterpolation
private

Definition at line 301 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myContainerColorMode
private

Definition at line 296 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

std::vector<FXColorWell*> GUIDialog_ViewSettings::myContainerColors
private

Definition at line 298 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myContainerColorSettingFrame
private

Definition at line 297 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

FXRealSpinDial* GUIDialog_ViewSettings::myContainerMinSizeDialer
private

Definition at line 302 of file GUIDialog_ViewSettings.h.

NamePanel * GUIDialog_ViewSettings::myContainerNamePanel
private

Definition at line 318 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXComboBox * GUIDialog_ViewSettings::myContainerShapeDetail
private

Definition at line 296 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

SizePanel * GUIDialog_ViewSettings::myContainerSizePanel
private

Definition at line 324 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myContainerThresholds
private

Definition at line 299 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXRealSpinDial * GUIDialog_ViewSettings::myContainerUpscaleDialer
private

Definition at line 302 of file GUIDialog_ViewSettings.h.

NamePanel * GUIDialog_ViewSettings::myCwaEdgeNamePanel
private
std::vector<GUISUMOAbstractView::Decal>* GUIDialog_ViewSettings::myDecals
private

The parent's decals.

Definition at line 246 of file GUIDialog_ViewSettings.h.

Referenced by onCmdEditTable(), rebuildList(), and saveDecals().

FXVerticalFrame* GUIDialog_ViewSettings::myDecalsFrame
private

Definition at line 258 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

MFXMutex* GUIDialog_ViewSettings::myDecalsLock
private

Lock used when changing the decals.

Definition at line 249 of file GUIDialog_ViewSettings.h.

Referenced by loadDecals(), loadSettings(), and onCmdEditTable().

MFXAddEditTypedTable* GUIDialog_ViewSettings::myDecalsTable
private

Definition at line 259 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices(), and rebuildList().

FXCheckButton* GUIDialog_ViewSettings::myDither
private

Definition at line 315 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myDrawCrossingsAndWalkingAreas
private

Definition at line 313 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myDrawJunctionShape
private

Definition at line 312 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

NamePanel* GUIDialog_ViewSettings::myEdgeNamePanel
private
FXRealSpinDial* GUIDialog_ViewSettings::myGridXSizeDialer
private

Definition at line 255 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange().

FXRealSpinDial * GUIDialog_ViewSettings::myGridYSizeDialer
private

Definition at line 255 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange().

FXCheckButton * GUIDialog_ViewSettings::myHideMacroConnectors
private

Definition at line 277 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

NamePanel * GUIDialog_ViewSettings::myInternalEdgeNamePanel
private
NamePanel * GUIDialog_ViewSettings::myInternalJunctionNamePanel
private
std::vector<FXButton*> GUIDialog_ViewSettings::myJunctionButtons
private

Definition at line 308 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myJunctionColorInterpolation
private

Definition at line 309 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myJunctionColorMode
private

Definition at line 304 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

std::vector<FXColorWell*> GUIDialog_ViewSettings::myJunctionColors
private

Definition at line 306 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myJunctionColorSettingFrame
private

Definition at line 305 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

NamePanel * GUIDialog_ViewSettings::myJunctionIndexPanel
private
NamePanel * GUIDialog_ViewSettings::myJunctionNamePanel
private
std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myJunctionThresholds
private

Definition at line 307 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

std::vector<FXButton*> GUIDialog_ViewSettings::myLaneButtons
private

Definition at line 266 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myLaneColorInterpolation
private

Definition at line 267 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

std::vector<FXColorWell*> GUIDialog_ViewSettings::myLaneColors
private

Definition at line 264 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myLaneColorSettingFrame
private

Definition at line 263 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myLaneEdgeColorMode
private

... lane colorer

Definition at line 262 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXComboBox* GUIDialog_ViewSettings::myLaneEdgeScaleMode
private

... lane scaler

Definition at line 270 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

std::vector<FXButton*> GUIDialog_ViewSettings::myLaneScaleButtons
private

Definition at line 274 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myLaneScaleInterpolation
private

Definition at line 275 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myLaneScales
private

Definition at line 272 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myLaneScaleSettingFrame
private

Definition at line 271 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myLaneScaleThresholds
private

Definition at line 273 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myLaneThresholds
private

Definition at line 265 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXRealSpinDial* GUIDialog_ViewSettings::myLaneWidthUpscaleDialer
private

Definition at line 279 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

GUISUMOAbstractView* GUIDialog_ViewSettings::myParent
private
std::vector<FXButton*> GUIDialog_ViewSettings::myPersonButtons
private

Definition at line 293 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myPersonColorInterpolation
private

Definition at line 294 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myPersonColorMode
private

Definition at line 289 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

std::vector<FXColorWell*> GUIDialog_ViewSettings::myPersonColors
private

Definition at line 291 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myPersonColorSettingFrame
private

Definition at line 290 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

NamePanel * GUIDialog_ViewSettings::myPersonNamePanel
private

Definition at line 318 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXComboBox * GUIDialog_ViewSettings::myPersonShapeDetail
private

Definition at line 289 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

SizePanel * GUIDialog_ViewSettings::myPersonSizePanel
private
std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myPersonThresholds
private

Definition at line 292 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

NamePanel * GUIDialog_ViewSettings::myPOINamePanel
private
SizePanel * GUIDialog_ViewSettings::myPOISizePanel
private
NamePanel * GUIDialog_ViewSettings::myPOITypePanel
private
NamePanel * GUIDialog_ViewSettings::myPolyNamePanel
private
SizePanel * GUIDialog_ViewSettings::myPolySizePanel
private
NamePanel * GUIDialog_ViewSettings::myPolyTypePanel
private
FXCheckButton * GUIDialog_ViewSettings::mySaveDecals
private

Definition at line 328 of file GUIDialog_ViewSettings.h.

Referenced by onCmdExportSetting(), and onUpdExportSetting().

FXCheckButton * GUIDialog_ViewSettings::mySaveDelay
private

Definition at line 328 of file GUIDialog_ViewSettings.h.

Referenced by onCmdExportSetting(), and onUpdExportSetting().

FXCheckButton* GUIDialog_ViewSettings::mySaveViewPort
private

Definition at line 328 of file GUIDialog_ViewSettings.h.

Referenced by onCmdExportSetting(), and onUpdExportSetting().

GUIVisualizationSettings* GUIDialog_ViewSettings::mySettings
private
FXCheckButton* GUIDialog_ViewSettings::myShowBlinker
private

Definition at line 287 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowBTRange
private

Definition at line 287 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowGrid
private

Definition at line 254 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange().

FXCheckButton* GUIDialog_ViewSettings::myShowLane2Lane
private

Definition at line 311 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowLaneBorders
private

Definition at line 277 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowLaneDecals
private

Definition at line 277 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowMinGap
private

Definition at line 287 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowRails
private

Definition at line 277 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowSizeLegend
private

Definition at line 316 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

NamePanel * GUIDialog_ViewSettings::myStreetNamePanel
private
NamePanel * GUIDialog_ViewSettings::myTLIndexPanel
private
std::vector<FXButton*> GUIDialog_ViewSettings::myVehicleButtons
private

Definition at line 285 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myVehicleColorInterpolation
private

Definition at line 286 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myVehicleColorMode
private

Definition at line 281 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

std::vector<FXColorWell*> GUIDialog_ViewSettings::myVehicleColors
private

Definition at line 283 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myVehicleColorSettingFrame
private

Definition at line 282 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

NamePanel * GUIDialog_ViewSettings::myVehicleNamePanel
private
FXComboBox * GUIDialog_ViewSettings::myVehicleShapeDetail
private

Definition at line 281 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

SizePanel* GUIDialog_ViewSettings::myVehicleSizePanel
private
std::vector<FXRealSpinDial*> GUIDialog_ViewSettings::myVehicleThresholds
private

Definition at line 284 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().


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