SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIDialog_ViewSettings Class Reference

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

#include <GUIDialog_ViewSettings.h>

Inheritance diagram for GUIDialog_ViewSettings:
FXDialogBox

Data Structures

class  NamePanel
 

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 color changing dialogs after choosing another coloring scheme. More...
 
void rebuildList ()
 Rebuilds the decals table. More...
 
void saveDecals (const std::string &file) const
 Writes the currently used decals into a file. 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)
 

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
 
FXVerticalFrame * myLaneColorSettingFrame
 
std::vector< FXColorWell * > myLaneColors
 
std::vector< FXRealSpinDial * > myLaneThresholds
 
std::vector< FXButton * > myLaneButtons
 
FXCheckButton * myLaneColorInterpolation
 
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
 
FXRealSpinDial * myVehicleMinSizeDialer
 
FXRealSpinDial * myVehicleUpscaleDialer
 
FXCheckButton * myShowBlinker
 
FXCheckButton * myShowMinGap
 
FXComboBox * myPersonColorMode
 
FXComboBox * myPersonShapeDetail
 
FXVerticalFrame * myPersonColorSettingFrame
 
std::vector< FXColorWell * > myPersonColors
 
std::vector< FXRealSpinDial * > myPersonThresholds
 
std::vector< FXButton * > myPersonButtons
 
FXCheckButton * myPersonColorInterpolation
 
FXRealSpinDial * myPersonMinSizeDialer
 
FXRealSpinDial * myPersonUpscaleDialer
 
FXComboBox * myJunctionColorMode
 
FXVerticalFrame * myJunctionColorSettingFrame
 
std::vector< FXColorWell * > myJunctionColors
 
std::vector< FXRealSpinDial * > myJunctionThresholds
 
std::vector< FXButton * > myJunctionButtons
 
FXCheckButton * myJunctionColorInterpolation
 
FXCheckButton * myShowTLIndex
 
FXCheckButton * myShowJunctionIndex
 
FXRealSpinDial * myDetectorMinSizeDialer
 
FXRealSpinDial * myDetectorUpscaleDialer
 
FXRealSpinDial * myPOIMinSizeDialer
 
FXRealSpinDial * myPOIUpscaleDialer
 
FXRealSpinDial * myPolyMinSizeDialer
 
FXRealSpinDial * myPolyUpscaleDialer
 
FXCheckButton * myShowLane2Lane
 
FXCheckButton * myDrawJunctionShape
 
FXCheckButton * myAntialiase
 
FXCheckButton * myDither
 
FXCheckButton * myShowSizeLegend
 
NamePanelmyEdgeNamePanel
 
NamePanelmyInternalEdgeNamePanel
 
NamePanelmyCwaEdgeNamePanel
 
NamePanelmyStreetNamePanel
 
NamePanelmyJunctionNamePanel
 
NamePanelmyInternalJunctionNamePanel
 
NamePanelmyVehicleNamePanel
 
NamePanelmyPersonNamePanel
 
NamePanelmyAddNamePanel
 
NamePanelmyPOINamePanel
 
NamePanelmyPolyNamePanel
 

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 88 of file GUIDialog_ViewSettings.cpp.

References MFXUtils::getFXColor(), 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.

GUIDialog_ViewSettings::GUIDialog_ViewSettings ( )
inlineprotected

Default constructor (needed by FOX)

Definition at line 286 of file GUIDialog_ViewSettings.h.

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 1365 of file GUIDialog_ViewSettings.cpp.

References mySchemeName.

Referenced by GUIViewTraffic::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 939 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)
private

Loads a scheme from a file.

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

Definition at line 898 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 591 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 730 of file GUIDialog_ViewSettings.cpp.

References GUICompleteSchemeStorage::add(), GUIVisualizationSettings::addExaggeration, GUIVisualizationSettings::addName, GUIVisualizationSettings::antialiase, GUIVisualizationSettings::backgroundColor, GUICompleteSchemeStorage::contains(), GUIVisualizationSettings::cwaEdgeName, GUIVisualizationSettings::dither, GUIVisualizationSettings::drawJunctionShape, GUIVisualizationSettings::drawLinkJunctionIndex, GUIVisualizationSettings::drawLinkTLIndex, GUIVisualizationSettings::drawMinGap, GUIVisualizationSettings::edgeName, GUICompleteSchemeStorage::get(), GUIColorer::getActive(), GUISUMOAbstractView::getColoringSchemesCombo(), GUIVisualizationSettings::getLaneEdgeMode(), GUIVisualizationSettings::getLaneEdgeScheme(), GUICompleteSchemeStorage::getNumInitialSettings(), MFXUtils::getRGBColor(), GUIColorer::getScheme(), GUIDialog_ViewSettings::NamePanel::getSettings(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, gSchemeStorage, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, GUIVisualizationSettings::internalJunctionName, GUIVisualizationSettings::junctionColorer, GUIVisualizationSettings::junctionName, GUIVisualizationSettings::laneColorer, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, GUIVisualizationSettings::minAddSize, GUIVisualizationSettings::minPersonSize, GUIVisualizationSettings::minPOISize, GUIVisualizationSettings::minPolySize, GUIVisualizationSettings::minVehicleSize, myAddNamePanel, myAntialiase, myBackgroundColor, myCwaEdgeNamePanel, myDetectorMinSizeDialer, myDetectorUpscaleDialer, myDither, myDrawJunctionShape, myEdgeNamePanel, myGridXSizeDialer, myGridYSizeDialer, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionButtons, myJunctionColorInterpolation, myJunctionColorMode, myJunctionColors, myJunctionNamePanel, myJunctionThresholds, myLaneButtons, myLaneColorInterpolation, myLaneColors, myLaneEdgeColorMode, myLaneThresholds, myLaneWidthUpscaleDialer, myParent, myPersonButtons, myPersonColorInterpolation, myPersonColorMode, myPersonColors, myPersonMinSizeDialer, myPersonNamePanel, myPersonShapeDetail, myPersonThresholds, myPersonUpscaleDialer, myPOIMinSizeDialer, myPOINamePanel, myPOIUpscaleDialer, myPolyMinSizeDialer, myPolyNamePanel, myPolyUpscaleDialer, 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::personColorer, GUIVisualizationSettings::personExaggeration, GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::poiExaggeration, GUIVisualizationSettings::poiName, GUIVisualizationSettings::polyExaggeration, GUIVisualizationSettings::polyName, rebuildColorMatrices(), GUIColorer::setActive(), GUISUMOAbstractView::setColorScheme(), GUIColorScheme::setInterpolated(), GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showRails, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::streetName, SUMOReal, toString(), updateColorRanges(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleExaggeration, GUIVisualizationSettings::vehicleName, and GUIVisualizationSettings::vehicleQuality.

long GUIDialog_ViewSettings::onCmdDeleteSetting ( FXObject ,
FXSelector  ,
void *  data 
)
long GUIDialog_ViewSettings::onCmdExportSetting ( 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 1064 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 1081 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 599 of file GUIDialog_ViewSettings.cpp.

References GUIVisualizationSettings::addExaggeration, GUIVisualizationSettings::addName, GUIVisualizationSettings::antialiase, GUIVisualizationSettings::backgroundColor, GUIVisualizationSettings::cwaEdgeName, GUIVisualizationSettings::dither, GUIVisualizationSettings::drawJunctionShape, GUIVisualizationSettings::drawLinkJunctionIndex, GUIVisualizationSettings::drawLinkTLIndex, GUIVisualizationSettings::drawMinGap, GUIVisualizationSettings::edgeName, GUICompleteSchemeStorage::get(), GUIColorer::getActive(), MFXUtils::getFXColor(), GUIVisualizationSettings::getLaneEdgeMode(), gSchemeStorage, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, GUIVisualizationSettings::internalJunctionName, GUIVisualizationSettings::junctionColorer, GUIVisualizationSettings::junctionName, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, GUIVisualizationSettings::minAddSize, GUIVisualizationSettings::minPersonSize, GUIVisualizationSettings::minPOISize, GUIVisualizationSettings::minPolySize, GUIVisualizationSettings::minVehicleSize, myAddNamePanel, myAntialiase, myBackgroundColor, myBackup, myCwaEdgeNamePanel, myDetectorMinSizeDialer, myDetectorUpscaleDialer, myDither, myDrawJunctionShape, myEdgeNamePanel, myHideMacroConnectors, myInternalEdgeNamePanel, myInternalJunctionNamePanel, myJunctionColorMode, myJunctionNamePanel, myLaneEdgeColorMode, myLaneWidthUpscaleDialer, myParent, myPersonColorMode, myPersonMinSizeDialer, myPersonNamePanel, myPersonShapeDetail, myPersonUpscaleDialer, myPOIMinSizeDialer, myPOINamePanel, myPOIUpscaleDialer, myPolyMinSizeDialer, myPolyNamePanel, myPolyUpscaleDialer, mySchemeName, mySettings, myShowBlinker, myShowJunctionIndex, myShowLane2Lane, myShowLaneBorders, myShowLaneDecals, myShowMinGap, myShowRails, myShowSizeLegend, myShowTLIndex, myStreetNamePanel, myVehicleColorMode, myVehicleMinSizeDialer, myVehicleNamePanel, myVehicleShapeDetail, myVehicleUpscaleDialer, GUIVisualizationSettings::name, GUIVisualizationSettings::personColorer, GUIVisualizationSettings::personExaggeration, GUIVisualizationSettings::personName, GUIVisualizationSettings::personQuality, GUIVisualizationSettings::poiExaggeration, GUIVisualizationSettings::poiName, GUIVisualizationSettings::polyExaggeration, GUIVisualizationSettings::polyName, 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 584 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 1098 of file GUIDialog_ViewSettings.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, saveDecals(), and MFXUtils::userPermitsOverwritingWhenFileExists().

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

Called when updating the button that allows to delete settings.

Definition at line 1021 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 1054 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 1117 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 996 of file GUIDialog_ViewSettings.cpp.

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

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

invalidated assignment operator

FXMatrix * GUIDialog_ViewSettings::rebuildColorMatrix ( FXVerticalFrame *  frame,
std::vector< FXColorWell * > &  colors,
std::vector< FXRealSpinDial * > &  thresholds,
std::vector< FXButton * > &  buttons,
FXCheckButton *  interpolation,
GUIColorScheme scheme 
)
private

Rebuilds color changing dialogs after choosing another coloring scheme.

Parameters
[in]doCreateWhether "create" shall be called (only if built the first time)

Definition at line 1165 of file GUIDialog_ViewSettings.cpp.

References GUIColorScheme::allowsNegativeValues(), MFXUtils::deleteChildren(), GUIColorScheme::getColors(), MFXUtils::getFXColor(), GUIColorScheme::getNames(), GUIColorScheme::getThresholds(), GUIColorScheme::isFixed(), GUIColorScheme::isInterpolated(), MID_SIMPLE_VIEW_COLORCHANGE, FX::SPINDIAL_NOMAX, and FX::SPINDIAL_NOMIN.

Referenced by rebuildColorMatrices().

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 576 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 1371 of file GUIDialog_ViewSettings.cpp.

References mySchemeName, and onCmdNameChange().

Referenced by GUIViewTraffic::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

Field Documentation

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

Definition at line 273 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXColorWell* GUIDialog_ViewSettings::myBackgroundColor
private

Definition at line 227 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 213 of file GUIDialog_ViewSettings.h.

Referenced by onCmdCancel(), onCmdNameChange(), onCmdSaveSetting(), and setCurrent().

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

The parent's decals.

Definition at line 216 of file GUIDialog_ViewSettings.h.

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

FXVerticalFrame* GUIDialog_ViewSettings::myDecalsFrame
private

Definition at line 228 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

MFXMutex* GUIDialog_ViewSettings::myDecalsLock
private

Lock used when changing the decals.

Definition at line 219 of file GUIDialog_ViewSettings.h.

Referenced by loadDecals(), and onCmdEditTable().

MFXAddEditTypedTable* GUIDialog_ViewSettings::myDecalsTable
private

Definition at line 229 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices(), and rebuildList().

FXRealSpinDial* GUIDialog_ViewSettings::myDetectorMinSizeDialer
private

Definition at line 267 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXRealSpinDial * GUIDialog_ViewSettings::myDetectorUpscaleDialer
private

Definition at line 267 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myDither
private

Definition at line 274 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myDrawJunctionShape
private

Definition at line 272 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 225 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange().

FXRealSpinDial * GUIDialog_ViewSettings::myGridYSizeDialer
private

Definition at line 225 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange().

FXCheckButton * GUIDialog_ViewSettings::myHideMacroConnectors
private

Definition at line 238 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 263 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myJunctionColorInterpolation
private

Definition at line 264 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myJunctionColorMode
private

Definition at line 259 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 261 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myJunctionColorSettingFrame
private

Definition at line 260 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

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

Definition at line 262 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

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

Definition at line 235 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myLaneColorInterpolation
private

Definition at line 236 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

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

Definition at line 233 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myLaneColorSettingFrame
private

Definition at line 232 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myLaneEdgeColorMode
private

Definition at line 231 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 234 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXRealSpinDial* GUIDialog_ViewSettings::myLaneWidthUpscaleDialer
private

Definition at line 240 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

GUISUMOAbstractView* GUIDialog_ViewSettings::myParent
private

The parent view (which settings are changed)

Definition at line 207 of file GUIDialog_ViewSettings.h.

Referenced by loadDecals(), loadSettings(), onCmdColorChange(), onCmdEditTable(), onCmdNameChange(), onCmdSaveSetting(), saveDecals(), and ~GUIDialog_ViewSettings().

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

Definition at line 255 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myPersonColorInterpolation
private

Definition at line 256 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myPersonColorMode
private

Definition at line 251 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 253 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myPersonColorSettingFrame
private

Definition at line 252 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

FXRealSpinDial* GUIDialog_ViewSettings::myPersonMinSizeDialer
private

Definition at line 257 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

NamePanel * GUIDialog_ViewSettings::myPersonNamePanel
private

Definition at line 277 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXComboBox * GUIDialog_ViewSettings::myPersonShapeDetail
private

Definition at line 251 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 254 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXRealSpinDial * GUIDialog_ViewSettings::myPersonUpscaleDialer
private

Definition at line 257 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXRealSpinDial* GUIDialog_ViewSettings::myPOIMinSizeDialer
private

Definition at line 268 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

NamePanel * GUIDialog_ViewSettings::myPOINamePanel
private
FXRealSpinDial * GUIDialog_ViewSettings::myPOIUpscaleDialer
private

Definition at line 268 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXRealSpinDial* GUIDialog_ViewSettings::myPolyMinSizeDialer
private

Definition at line 269 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

NamePanel * GUIDialog_ViewSettings::myPolyNamePanel
private
FXRealSpinDial * GUIDialog_ViewSettings::myPolyUpscaleDialer
private

Definition at line 269 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 249 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowGrid
private

Definition at line 224 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange().

FXCheckButton * GUIDialog_ViewSettings::myShowJunctionIndex
private

Definition at line 265 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowLane2Lane
private

Definition at line 271 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowLaneBorders
private

Definition at line 238 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowLaneDecals
private

Definition at line 238 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowMinGap
private

Definition at line 249 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton * GUIDialog_ViewSettings::myShowRails
private

Definition at line 238 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowSizeLegend
private

Definition at line 275 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

FXCheckButton* GUIDialog_ViewSettings::myShowTLIndex
private

Definition at line 265 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 246 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXCheckButton* GUIDialog_ViewSettings::myVehicleColorInterpolation
private

Definition at line 247 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXComboBox* GUIDialog_ViewSettings::myVehicleColorMode
private

Definition at line 242 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 244 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXVerticalFrame* GUIDialog_ViewSettings::myVehicleColorSettingFrame
private

Definition at line 243 of file GUIDialog_ViewSettings.h.

Referenced by rebuildColorMatrices().

FXRealSpinDial* GUIDialog_ViewSettings::myVehicleMinSizeDialer
private

Definition at line 248 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 242 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().

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

Definition at line 245 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and rebuildColorMatrices().

FXRealSpinDial * GUIDialog_ViewSettings::myVehicleUpscaleDialer
private

Definition at line 248 of file GUIDialog_ViewSettings.h.

Referenced by onCmdColorChange(), and onCmdNameChange().


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