19 #ifndef GUIDialog_ViewSettings_h 20 #define GUIDialog_ViewSettings_h 56 const std::string& title,
93 std::vector<GUISUMOAbstractView::Decal>* decals,
114 long onCmdOk(FXObject*, FXSelector,
void*);
169 bool updateColorRanges(FXObject* sender, std::vector<FXColorWell*>::const_iterator colIt,
170 std::vector<FXColorWell*>::const_iterator colEnd,
171 std::vector<FXRealSpinner*>::const_iterator threshIt,
172 std::vector<FXRealSpinner*>::const_iterator threshEnd,
173 std::vector<FXButton*>::const_iterator buttonIt,
176 bool updateScaleRanges(FXObject* sender, std::vector<FXRealSpinner*>::const_iterator colIt,
177 std::vector<FXRealSpinner*>::const_iterator colEnd,
178 std::vector<FXRealSpinner*>::const_iterator threshIt,
179 std::vector<FXRealSpinner*>::const_iterator threshEnd,
180 std::vector<FXButton*>::const_iterator buttonIt,
186 std::vector<FXColorWell*>& colors,
187 std::vector<FXRealSpinner*>& thresholds,
188 std::vector<FXButton*>& buttons,
189 FXCheckButton* interpolation,
195 std::vector<FXRealSpinner*>& scales,
196 std::vector<FXRealSpinner*>& thresholds,
197 std::vector<FXButton*>& buttons,
198 FXCheckButton* interpolation,
void rebuildColorMatrices(bool doCreate=false)
Rebuilds color changing dialogs after choosing another coloring scheme.
bool updateColorRanges(FXObject *sender, std::vector< FXColorWell *>::const_iterator colIt, std::vector< FXColorWell *>::const_iterator colEnd, std::vector< FXRealSpinner *>::const_iterator threshIt, std::vector< FXRealSpinner *>::const_iterator threshEnd, std::vector< FXButton *>::const_iterator buttonIt, GUIColorScheme &scheme)
FXCheckButton * mySaveViewPort
FXVerticalFrame * myVehicleColorSettingFrame
long onUpdSaveSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to save the settings into the registry.
FXCheckButton * myLaneColorInterpolation
FXComboBox * myJunctionColorMode
FXVerticalFrame * myDecalsFrame
FXCheckButton * myJunctionColorInterpolation
FXCheckButton * myShowBlinker
FXButton * myJunctionColorRainbow
FXVerticalFrame * myLaneScaleSettingFrame
FXCheckButton * myShowBTRange
bool updateScaleRanges(FXObject *sender, std::vector< FXRealSpinner *>::const_iterator colIt, std::vector< FXRealSpinner *>::const_iterator colEnd, std::vector< FXRealSpinner *>::const_iterator threshIt, std::vector< FXRealSpinner *>::const_iterator threshEnd, std::vector< FXButton *>::const_iterator buttonIt, GUIScaleScheme &scheme)
FXCheckButton * myPolyColorInterpolation
FXComboBox * myVehicleColorMode
std::vector< FXButton * > myLaneButtons
SizePanel * myPOISizePanel
FXCheckButton * myShowLinkRules
void saveDecals(OutputDevice &dev) const
Writes the currently used decals into a file.
Stores the information about how to visualize structures.
FXComboBox * myPOIColorMode
The dialog to change the view (gui) settings.
NamePanel * myPolyTypePanel
std::vector< FXButton * > myPolyButtons
std::vector< GUISUMOAbstractView::Decal > * myDecals
The parent's decals.
NamePanel * myPOINamePanel
std::vector< FXButton * > myPOIButtons
void loadDecals(const std::string &file)
Loads decals from a file.
std::vector< FXButton * > myPersonButtons
std::vector< FXColorWell * > myJunctionColors
FXComboBox * myVehicleShapeDetail
FXCheckButton * myShowSublanes
void loadWindowSize()
load window position and size from the registry
void loadSettings(const std::string &file)
Loads a scheme from a file.
FXRealSpinner * myMinSizeDial
FXVerticalFrame * myPolyColorSettingFrame
FXCheckButton * myConstSizeCheck
FXCheckButton * mySaveBreakpoints
long onCmdSaveDecals(FXObject *, FXSelector, void *data)
Called if the decals shall be saved to a file.
long onCmdSaveSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be saved into the registry.
FXRealSpinner * myContainerMinSizeDialer
FXRealSpinner * myExaggerateDial
long onCmdExportSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be exported into a file.
SizePanel * myJunctionSizePanel
std::vector< FXRealSpinner * > myLaneScaleThresholds
std::vector< FXRealSpinner * > myLaneThresholds
long onCmdEditTable(FXObject *, FXSelector, void *data)
Called if the decals-table was changed.
FXCheckButton * mySaveDelay
FXColorWell * myBGColorWell
std::vector< FXColorWell * > myPOIColors
FXRealSpinner * myContainerUpscaleDialer
FXVerticalFrame * myContainerColorSettingFrame
FXColorWell * myColorWell
long onCmdNameChange(FXObject *, FXSelector, void *)
Called if the name of the scheme was changed.
SizePanel * myPolySizePanel
std::vector< FXRealSpinner * > myPOIThresholds
std::vector< FXRealSpinner * > myPolyThresholds
FXColorWell * mySelectedConnectionColor
FXRealSpinner * myGridYSizeDialer
FXColorWell * mySelectedAdditionalColor
FXCheckButton * myShowLaneDirection
NamePanel * myPersonValuePanel
NamePanel * myVehicleValuePanel
std::vector< FXButton * > myContainerButtons
FXCheckButton * myVehicleColorInterpolation
NamePanel * myEdgeValuePanel
FXColorWell * mySelectedLaneColor
GUIDialog_ViewSettings()
Default constructor (needed by FOX)
NamePanel * myInternalEdgeNamePanel
FXCheckButton * myShowMinGap
NamePanel * myEdgeNamePanel
FXCheckButton * myShowGrid
std::vector< FXRealSpinner * > myPersonThresholds
void setCurrentScheme(const std::string &)
Sets the named scheme as the current.
FXCheckButton * myShowLane2Lane
void rebuildList()
Rebuilds the decals table.
FXComboBox * myPolyShapeDetail
FXCheckButton * myDrawCrossingsAndWalkingAreas
void show()
show view settings dialog
GUIVisualizationSettings * mySettings
The current settings.
NamePanel * myStreetNamePanel
NamePanel * myInternalJunctionNamePanel
std::vector< FXColorWell * > myVehicleColors
std::vector< FXRealSpinner * > myLaneScales
void saveWindowSize()
save window position and size to the registry
FXCheckButton * myShowSizeLegend
FXCheckButton * mySaveDecals
FXVerticalFrame * myLaneColorSettingFrame
std::vector< FXRealSpinner * > myVehicleThresholds
FXMatrix * rebuildColorMatrix(FXVerticalFrame *frame, std::vector< FXColorWell *> &colors, std::vector< FXRealSpinner *> &thresholds, std::vector< FXButton *> &buttons, FXCheckButton *interpolation, GUIColorScheme &scheme)
Rebuilds manipulators for the current coloring scheme.
long onUpdDeleteSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to delete settings.
FXVerticalFrame * myJunctionColorSettingFrame
FXCheckButton * myLaneScaleInterpolation
FXCheckButton * myShowBikeMarkings
FXCheckButton * myShowLaneBorders
SizePanel * myAddSizePanel
NamePanel * myAddNamePanel
FXComboBox * myPolyColorMode
std::vector< FXColorWell * > myPersonColors
long onCmdCancel(FXObject *, FXSelector, void *)
Called if the Cancel-button was pressed.
std::vector< FXRealSpinner * > myJunctionThresholds
std::vector< FXButton * > myLaneScaleButtons
long onCmdOk(FXObject *, FXSelector, void *)
Called if the OK-button was pressed.
FXColorWell * mySelectedEdgeColor
NamePanel * myCwaEdgeNamePanel
FXMatrix * rebuildScaleMatrix(FXVerticalFrame *frame, std::vector< FXRealSpinner *> &scales, std::vector< FXRealSpinner *> &thresholds, std::vector< FXButton *> &buttons, FXCheckButton *interpolation, GUIScaleScheme &scheme)
Rebuilds manipulators for the current scaling scheme.
FXComboBox * myContainerColorMode
~GUIDialog_ViewSettings()
Destructor.
NamePanel * myTLIndexPanel
NamePanel * myVehicleNamePanel
NamePanel * myContainerNamePanel
MFXAddEditTypedTable * myDecalsTable
FXCheckButton * myDrawJunctionShape
GUIDialog_ViewSettings & operator=(const GUIDialog_ViewSettings &s)
invalidated assignment operator
FXCheckButton * myPOIColorInterpolation
NamePanel(FXMatrix *parent, GUIDialog_ViewSettings *target, const std::string &title, const GUIVisualizationTextSettings &settings)
FXComboBox * myLaneEdgeScaleMode
... lane scaler
FXButton * myLaneColorRainbow
GUIVisualizationTextSettings getSettings()
std::vector< FXColorWell * > myPolyColors
FXComboBox * myPersonShapeDetail
NamePanel * myJunctionNamePanel
std::vector< FXRealSpinner * > myContainerThresholds
FXComboBox * myLaneEdgeColorMode
... lane colorer
void setCurrent(GUIVisualizationSettings *settings)
Sets current settings (called if reopened)
FXCheckButton * myHideMacroConnectors
FXRealSpinner * mySizeDial
FXCheckButton * myShowRails
std::string getCurrentScheme() const
Returns the name of the currently chosen scheme.
long onUpdExportSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to export settings into a file.
FXCheckButton * myCheckSelected
NamePanel * myPOITypePanel
long onCmdColorChange(FXObject *, FXSelector, void *)
Called if something (color, width, etc.) has been changed.
SizePanel * myPersonSizePanel
Static storage of an output device and its base (abstract) implementation.
NamePanel * myJunctionIndexPanel
FXCheckButton * myPersonColorInterpolation
SizePanel * myVehicleSizePanel
long onCmdLoadDecals(FXObject *, FXSelector, void *data)
Called if the decals shall be loaded from a file.
void update(const GUIVisualizationTextSettings &settings)
FXColorWell * myBackgroundColor
FXVerticalFrame * myPOIColorSettingFrame
MFXMutex * myDecalsLock
Lock used when changing the decals.
NamePanel * myAddFullNamePanel
FXRealSpinner * myLaneWidthUpscaleDialer
SizePanel * myContainerSizePanel
FXCheckButton * myContainerColorInterpolation
FXComboBox * myContainerShapeDetail
long onCmdDeleteSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be deleted.
GUISUMOAbstractView * myParent
The parent view (which settings are changed)
FXVerticalFrame * myPersonColorSettingFrame
NamePanel * myPolyNamePanel
std::vector< FXColorWell * > myContainerColors
FXRealSpinner * myGridXSizeDialer
std::vector< FXButton * > myJunctionButtons
NamePanel * myPersonNamePanel
GUIVisualizationSettings myBackup
A backup of the settings (used if the "Cancel" button is pressed)
std::vector< FXColorWell * > myLaneColors
FXComboBox * myPOIShapeDetail
FXComboBox * mySchemeName
FXColorWell * mySelectionColor
selection colors
std::vector< FXButton * > myVehicleButtons
long onCmdImportSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be read from a file.
FXComboBox * myPersonColorMode
long onUpdImportSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to read settings from a file.
FXCheckButton * mySpreadSuperposed
FXRealSpinner * myLaneMinWidthDialer
FXCheckButton * myShowLaneDecals