82FXIMPLEMENT(
GUIDialog_ViewSettings, FXTopWindow, GUIDialog_ViewSettingsMap, ARRAYNUMBER(GUIDialog_ViewSettingsMap))
91#pragma warning(disable: 4355)
94 FXTopWindow(parent,
TL(
"View Settings"),
100 mySettings(settings),
101 myBackup(settings->name, settings->netedit) {
236 getApp()->reg().writeIntEntry(
"SETTINGS",
"comboRows", (
int)
myComboRows->getValue());
253 const FXEvent* e = (FXEvent*) ptr;
254 if(e->code==KEY_Escape){
258 return FXTopWindow::onKeyPress(o, sel, ptr);
264 if (ptr !=
nullptr) {
265 FXString dataS = (
char*) ptr;
441 std::vector<FXColorWell*>::const_iterator colEnd,
442 std::vector<FXRealSpinner*>::const_iterator threshIt,
443 std::vector<FXRealSpinner*>::const_iterator threshEnd,
444 std::vector<FXButton*>::const_iterator buttonIt,
448 while (colIt != colEnd) {
450 if (sender == *colIt) {
454 if (sender == *threshIt) {
455 const double val = (*threshIt)->getValue();
459 if (sender == *colIt) {
463 if (sender == *buttonIt) {
466 }
else if (sender == *(buttonIt + 1)) {
483 std::vector<FXRealSpinner*>::const_iterator scaleEnd,
484 std::vector<FXRealSpinner*>::const_iterator threshIt,
485 std::vector<FXRealSpinner*>::const_iterator threshEnd,
486 std::vector<FXButton*>::const_iterator buttonIt,
489 while (scaleIt != scaleEnd) {
491 if (sender == *scaleIt) {
492 scheme.
setColor(pos, (*scaleIt)->getValue());
495 if (sender == *threshIt) {
496 const double val = (*threshIt)->getValue();
500 (*threshIt)->getRange(lo, hi);
501 (*threshIt)->setRange(lo, val);
505 if (threshIt != threshEnd) {
506 (*threshIt)->getRange(lo, hi);
507 (*threshIt)->setRange(val, hi);
512 if (sender == *scaleIt) {
513 scheme.
setColor(pos, (*scaleIt)->getValue());
516 if (sender == *buttonIt) {
517 scheme.
addColor((*scaleIt)->getValue(), (*threshIt)->getValue());
519 }
else if (sender == *(buttonIt + 1)) {
548 bool doRebuildColorMatrices =
false;
747 tmpSettings.
fps = (
myFPS->getCheck() != FALSE);
761 const unsigned char lightFactor = (
unsigned char)
myLight3DFactor->getValue();
762 tmpSettings.
ambient3DLight.
set(lightFactor / 2, lightFactor / 2, lightFactor / 2, 255);
769 doRebuildColorMatrices =
true;
772 doRebuildColorMatrices =
true;
775 doRebuildColorMatrices =
true;
778 doRebuildColorMatrices =
true;
784 doRebuildColorMatrices =
true;
788 doRebuildColorMatrices =
true;
791 doRebuildColorMatrices =
true;
798 doRebuildColorMatrices =
true;
802 doRebuildColorMatrices =
true;
805 doRebuildColorMatrices =
true;
812 doRebuildColorMatrices =
true;
816 doRebuildColorMatrices =
true;
819 doRebuildColorMatrices =
true;
826 doRebuildColorMatrices =
true;
830 doRebuildColorMatrices =
true;
833 doRebuildColorMatrices =
true;
840 doRebuildColorMatrices =
true;
844 doRebuildColorMatrices =
true;
847 doRebuildColorMatrices =
true;
854 doRebuildColorMatrices =
true;
858 doRebuildColorMatrices =
true;
861 doRebuildColorMatrices =
true;
868 doRebuildColorMatrices =
true;
872 doRebuildColorMatrices =
true;
875 doRebuildColorMatrices =
true;
882 doRebuildColorMatrices =
true;
886 doRebuildColorMatrices =
true;
889 doRebuildColorMatrices =
true;
896 doRebuildColorMatrices =
true;
900 doRebuildColorMatrices =
true;
903 doRebuildColorMatrices =
true;
911 doRebuildColorMatrices =
true;
915 doRebuildColorMatrices =
true;
918 doRebuildColorMatrices =
true;
925 doRebuildColorMatrices =
true;
929 doRebuildColorMatrices =
true;
932 doRebuildColorMatrices =
true;
977 if (doRebuildColorMatrices) {
982 getApp()->forceRefresh();
1017 if (decal.filename.size() > 0) {
1019 const bool isLight = (decal.filename.substr(0, 5) ==
"light") && (decal.filename.length() == 6) && isdigit(decal.filename[5]);
1026 dev.
writeAttr(
"screenRelative", decal.screenRelative);
1033 dev.
writeAttr(
"altitude", decal.altitude);
1064 std::string name =
"";
1065 while (name.length() == 0) {
1076 if (!dialog.execute()) {
1079 name = text->getText().text();
1080 for (
int i = 0; i < (int)name.length(); ++i) {
1081 if (name[i] !=
'_' && (name[i] <
'a' || name[i] >
'z') && (name[i] <
'A' || name[i] >
'Z') && (name[i] <
'0' || name[i] >
'9')) {
1089 tmpSettings.
name = name;
1112 sender->handle(
this,
1114 ? FXSEL(SEL_COMMAND, ID_DISABLE) : FXSEL(SEL_COMMAND, ID_ENABLE),
1137 sender->handle(
this,
1139 ? FXSEL(SEL_COMMAND, ID_DISABLE) : FXSEL(SEL_COMMAND, ID_ENABLE),
1181 FXMessageBox::error(
this, MBOX_OK,
TL(
"Storing failed!"),
"%s", e.what());
1189 sender->handle(
this,
1192 FXSEL(SEL_COMMAND, ID_DISABLE) : FXSEL(SEL_COMMAND, ID_ENABLE),
1200 FXFileDialog opendialog(
this,
TL(
"Import view settings"));
1202 opendialog.setSelectMode(SELECTFILE_ANY);
1207 if (opendialog.execute()) {
1217 FXFileDialog opendialog(
this,
TL(
"Load Decals"));
1219 opendialog.setSelectMode(SELECTFILE_ANY);
1224 if (opendialog.execute()) {
1234 FXFileDialog opendialog(
this,
TL(
"Load Decals"));
1236 opendialog.setSelectMode(SELECTFILE_ANY);
1241 if (opendialog.execute()) {
1264 FXMessageBox::error(
myParent, MBOX_OK,
TL(
"Storing failed!"),
"%s", e.what());
1288 sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE), ptr);
1295 std::vector<FXColorWell*>& colors,
1296 std::vector<FXRealSpinner*>& thresholds,
1297 std::vector<FXButton*>& buttons,
1298 FXCheckButton* interpolation,
1305 const bool fixed = scheme.
isFixed();
1306 std::vector<RGBColor>::const_iterator colIt = scheme.
getColors().begin();
1307 std::vector<double>::const_iterator threshIt = scheme.
getThresholds().begin();
1308 std::vector<std::string>::const_iterator nameIt = scheme.
getNames().begin();
1309 while (colIt != scheme.
getColors().end()) {
1312 new FXLabel(m, nameIt->c_str());
1317 FXRealSpinner* threshDialer =
new FXRealSpinner(m, 10,
this,
MID_SIMPLE_VIEW_COLORCHANGE, FRAME_THICK | FRAME_SUNKEN | LAYOUT_TOP | LAYOUT_CENTER_Y | SPIN_NOMAX | dialerOptions);
1318 threshDialer->setValue(*threshIt);
1319 thresholds.push_back(threshDialer);
1321 threshDialer->disable();
1322 threshDialer->hide();
1324 buttons.back()->hide();
1326 buttons.back()->disable();
1331 buttons.back()->disable();
1341 interpolation->disable();
1343 if (colors.size() > 1) {
1344 interpolation->enable();
1345 if (interpolation->getCheck() != FALSE) {
1346 thresholds.front()->enable();
1348 thresholds.front()->disable();
1351 interpolation->disable();
1352 thresholds.front()->disable();
1361 std::vector<FXRealSpinner*>& scales,
1362 std::vector<FXRealSpinner*>& thresholds,
1363 std::vector<FXButton*>& buttons,
1364 FXCheckButton* interpolation,
1371 const bool fixed = scheme.
isFixed();
1372 std::vector<double>::const_iterator scaleIt = scheme.
getColors().begin();
1373 std::vector<double>::const_iterator threshIt = scheme.
getThresholds().begin();
1374 std::vector<std::string>::const_iterator nameIt = scheme.
getNames().begin();
1375 while (scaleIt != scheme.
getColors().end()) {
1376 FXRealSpinner* scaleDialer =
new FXRealSpinner(m, 10,
this,
MID_SIMPLE_VIEW_COLORCHANGE, FRAME_THICK | FRAME_SUNKEN | LAYOUT_TOP | LAYOUT_CENTER_Y | SPIN_NOMAX);
1377 scaleDialer->setValue(*scaleIt);
1378 scales.push_back(scaleDialer);
1380 new FXLabel(m, nameIt->c_str());
1385 FXRealSpinner* threshDialer =
new FXRealSpinner(m, 10,
this,
MID_SIMPLE_VIEW_COLORCHANGE, FRAME_THICK | FRAME_SUNKEN | LAYOUT_TOP | LAYOUT_CENTER_Y | SPIN_NOMAX | dialerOptions);
1386 threshDialer->setValue(*threshIt);
1387 thresholds.push_back(threshDialer);
1389 threshDialer->disable();
1390 threshDialer->hide();
1392 buttons.back()->hide();
1394 buttons.back()->disable();
1399 buttons.back()->disable();
1409 interpolation->disable();
1411 if (scales.size() > 1) {
1412 interpolation->enable();
1413 if (interpolation->getCheck() != FALSE) {
1414 thresholds.front()->enable();
1416 thresholds.front()->disable();
1419 interpolation->disable();
1420 thresholds.front()->disable();
1687 const std::string& title,
1712 mySizeDial->getValue(),
1715 myConstSizeCheck->getCheck() != FALSE,
1716 mySelectedCheck->getCheck() != FALSE);
1722 myCheck->setCheck(settings.
showText);
1723 mySizeDial->setValue(settings.
size);
1726 myConstSizeCheck->setCheck(settings.
constSize);
1733 myDialogViewSettings(target),
1754 myMinSizeDial->getValue(), myExaggerateDial->getValue(),
1755 myCheck->getCheck() != FALSE,
1756 myCheckSelected->getCheck() != FALSE);
1764 myMinSizeDial->setValue(settings.
minSize);
1774 return myDialogViewSettings->onCmdColorChange(obj, sel, ptr);
1779 FXComposite* parent,
1784 (BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT), 0, 0, 0, 0, 20, 20, 4, 4);
1787 myRainbowStyle->appendIconItem(item.first.c_str());
1791 myHideMinCheck->setCheck(settings.
hideMin);
1793 myMinThreshold->setRange(-std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
1796 myHideMaxCheck->setCheck(settings.
hideMax);
1798 myMaxThreshold->setRange(-std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
1803 myNeutralThreshold->setRange(-std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
1806 myFixRange->setCheck(settings.
fixRange);
1813 myMinThreshold->getValue(),
1814 myHideMaxCheck->getCheck() != FALSE,
1815 myMaxThreshold->getValue(),
1816 mySetNeutral->getCheck() != FALSE,
1817 myNeutralThreshold->getValue(),
1818 myFixRange->getCheck() != FALSE,
1819 myRainbowStyle->getCurrentItem());
1820 std::string sName = myRainbowStyle->getItemText(myRainbowStyle->getCurrentItem());
1828 myHideMinCheck->setCheck(settings.
hideMin);
1830 myHideMaxCheck->setCheck(settings.
hideMax);
1834 myFixRange->setCheck(settings.
fixRange);
1855 new FXVerticalSeparator(horizontalFrame);
1858 mySaveDelay =
new FXCheckButton(horizontalFrame,
TL(
"Delay"));
1871 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
1879 new FXLabel(verticalFrameDecals,
TL(
"Decals:"));
1891 new FXLabel(matrixGrid,
"");
1908 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
1977 mySpreadSuperposed->setHelpText(
TL(
"Make both directional edges for a bidirectional railways or roads visible"));
2011 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2079 const std::string parkingInfo =
mySettings->
netedit ?
TL(
"Show stopping info") :
TL(
"Show parking info");
2102 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2155 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2194 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2232 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2265 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2312 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2335 myPOICustomLayer->setRange(-std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
2354 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2372 myPolyCustomLayer->setRange(-std::numeric_limits<double>::max(), std::numeric_limits<double>::max());
2386 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2423 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2477 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2483 new FXLabel(m72,
"");
2486 new FXLabel(m72,
"");
2489 new FXLabel(m72,
"");
2496 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
2527 (BUTTON_DEFAULT | FRAME_RAISED | FRAME_THICK | LAYOUT_TOP | LAYOUT_LEFT), 0, 0, 0, 0, 20, 20, 4, 4);
2536 FXScrollWindow* scrollWindow =
new FXScrollWindow(tabbook);
@ MID_SIMPLE_VIEW_NAMECHANGE
Informs the dialog about switching to another scheme.
@ MID_SIMPLE_VIEW_CLEAR_DECALS
For the clear-decals - button.
@ MID_SIMPLE_VIEW_SAVE
For the save-to-db - button.
@ MID_SIMPLE_VIEW_IMPORT
For the import-from-file - button.
@ MID_SIMPLE_VIEW_EXPORT
For the export-to-file - button.
@ MID_SIMPLE_VIEW_DELETE
For the delete - button.
@ MID_SIMPLE_VIEW_LOAD_DECALS_XML
For the load-decals - button.
@ MID_SIMPLE_VIEW_LOAD_DECAL
For the load-decals - button.
@ MID_SETTINGS_OK
Ok-button was pushed.
@ MID_SETTINGS_CANCEL
Cancel-button was pushed.
@ MID_SIMPLE_VIEW_SIZECHANGE
Informs the dialog about a size value's change.
@ MID_SIMPLE_VIEW_COLORCHANGE
Informs the dialog about a value's change.
@ MID_SIMPLE_VIEW_SAVE_DECALS_XML
For the save-decals - button.
GUICompleteSchemeStorage gSchemeStorage
#define GUIDesignViewSettingsColorWell2
#define GUIDesignViewSettingsMatrix3
#define GUIDesignViewSettingsMainDialog
#define GUIDesignViewSettingsMatrix5
#define GUIDesignComboBoxStatic
Combo box static (not editable)
#define GUIDesignViewSettingsComboBox1
Combo boxes.
#define GUIDesignViewSettingsHorizontalFrame3
#define GUIDesignViewSettingsVerticalFrame6
#define GUIDesignViewSettingsHorizontalFrame2
#define GUIDesignViewSettingsButton2
#define GUIDesignButtonToolbar
little button with icon placed in navigation toolbar
#define GUIDesignViewSettingsMatrix1
Matrix.
#define GUIDesignComboBoxFixed(customWidth)
comboBox with thick frame, fixed width
#define GUIDesignViewSettingsColorWell1
Color wells.
#define GUIDesignViewSettingsButton4
#define GUIDesignViewSettingsDialog
#define GUIDesignViewSettingsMatrix4
#define GUIDesignViewSettingsSpinDial2
#define GUIDesignViewSettingsButton5
#define GUIDesignViewSettingsHorizontalFrame1
Horizontal frames.
#define GUIDesignViewSettingsSpinDial1
#define GUIDesignViewSettingsVerticalFrame5
#define GUIDesignViewSettingsMatrix2
#define GUIDesignViewSettingsLabel1
Label.
#define GUIDesignComboBoxVisibleItems
#define GUIDesignViewSettingsTabBook1
Tab books.
#define GUIDesignViewSettingsButton3
#define GUIDesignMatrixViewSettings
FXMatrix used to pack values in Viewsettings.
#define GUIDesignViewSettingsVerticalFrame2
#define GUIDesignViewSettingsVerticalFrame3
#define GUIDesignViewSettingsColorWell
ColorWell.
#define GUIDesignHorizontalSeparator
#define GUIDesignViewSettingsVerticalFrame4
#define GUIDesignViewSettingsTabItemBook1
#define GUIDesignViewSettingsVerticalFrame1
vertical frames
#define GUIDesignViewSettingsLabel2
#define GUIDesignViewSettingsTextField1
textFields
#define GUIDesignCheckButtonViewSettings
CheckButton for Frames without thick extended over the frame.
#define GUIDesignViewSettingsButton1
Buttons.
FXDEFMAP(GUIDialog_ViewSettings::SizePanel) GUIDialog_SizeMap[]
@ GLO_TAZRELDATA
TAZ relation data.
@ GLO_CONTAINER
a container
@ GLO_ADDITIONALELEMENT
reserved GLO type for packing all additionals elements
@ GLO_POI
poi (over view, geo and lane)
GUIViewObjectsHandler gViewObjectsHandler
FXString gCurrentFolder
The folder used as last.
GUIIcon
An enumeration of icons used by the gui applications.
std::string time2string(SUMOTime t, bool humanReadable)
convert SUMOTime to string (independently of global format setting)
@ SUMO_TAG_VIEWSETTINGS_DECAL
@ SUMO_TAG_VIEWSETTINGS_LIGHT
@ SUMO_ATTR_LAYER
A layer number.
@ SUMO_ATTR_TIME
trigger: the time of the step
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
bool contains(const std::string &name) const
Returns the information whether a setting with the given name is stored.
GUIVisualizationSettings & get(const std::string &name)
Returns the named scheme.
void remove(const std::string name)
Removes the setting with the given name.
const std::vector< std::string > & getNames() const
Returns a list of stored settings names.
void add(const GUIVisualizationSettings &scheme)
Adds a visualization scheme.
int getNumInitialSettings() const
Returns the number of initial settings.
void writeSettings(FXApp *app)
Writes the current scheme into the registry.
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
void writeXML(OutputDevice &dev)
write the settings to the given device
GUIVisualizationTextSettings getSettings()
get settings
FXRealSpinner * mySizeDial
size dial
FXColorWell * myBGColorWell
BGColor well.
void update(const GUIVisualizationTextSettings &settings)
update
FXMatrix * myMatrix0
Matrix.
FXCheckButton * myCheck
check button
FXCheckButton * myConstSizeCheck
const size check
FXColorWell * myColorWell
color well
NamePanel(FXMatrix *parent, GUIDialog_ViewSettings *target, const std::string &title, const GUIVisualizationTextSettings &settings)
constructor
FXCheckButton * mySelectedCheck
draw only for selected?
void update(const GUIVisualizationRainbowSettings &settings)
update
FXButton * myColorRainbow
GUIVisualizationRainbowSettings getSettings()
get settings
RainbowPanel(FXComposite *parent, GUIDialog_ViewSettings *target, const GUIVisualizationRainbowSettings &settings)
constructor
FXCheckButton * myCheckSelected
check selected button
FXCheckButton * myCheck
check button
long onCmdSizeChange(FXObject *obj, FXSelector sel, void *ptr)
FXRealSpinner * myMinSizeDial
min size dial
void update(const GUIVisualizationSizeSettings &settings)
update
GUIVisualizationSizeSettings getSettings()
get settings
SizePanel(FXMatrix *parent, GUIDialog_ViewSettings *target, const GUIVisualizationSizeSettings &settings, GUIGlObjectType type)
FOX Declaration.
FXRealSpinner * myExaggerateDial
exaggerate dial
The dialog to change the view (gui) settings.
NamePanel * myVehicleNamePanel
FXCheckButton * myShowParkingInfo
long onCmdExportSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be exported into a file.
FXVerticalFrame * myVehicleColorSettingFrame
FXColorWell * myStopColor
FXCheckButton * myShowChargingInfo
FXColorWell * mySelectedPersonPlanColor
void buildBackgroundFrame(FXTabBook *tabbook)
build frames
FXCheckButton * myVehicleColorInterpolation
std::string getCurrentScheme() const
Returns the name of the currently chosen scheme.
MFXComboBoxIcon * myPolyColorMode
Polygons.
FXCheckButton * myShowPedestrianNetwork
FXVerticalFrame * myDataColorSettingFrame
NamePanel * myVehicleScaleValuePanel
FXColorWell * myChargingStationColor
NamePanel * myPolyTypePanel
NamePanel * myJunctionIndexPanel
GUISUMOAbstractView * myParent
The parent view (which settings are changed)
FXColorWell * myTransportColor
FXCheckButton * myShowBTRange
std::vector< FXColorWell * > myPolyColors
MFXComboBoxIcon * myJunctionColorMode
junctions
FXVerticalFrame * myJunctionColorSettingFrame
void buildSelectionFrame(FXTabBook *tabbook)
void buildOpenGLFrame(FXTabBook *tabbook)
long onCmdNameChange(FXObject *, FXSelector, void *)
Called if the name of the scheme was changed.
FXVerticalFrame * myContainerColorSettingFrame
FXRealSpinner * myLaneWidthUpscaleDialer
FXCheckButton * myPOIUseCustomLayer
std::vector< FXColorWell * > myPOIColors
FXCheckButton * mySaveDelay
FXColorWell * myBusStopColor
additional colors
FXTabItem * myFrame3D
Frame3D.
std::vector< FXButton * > myLaneScaleButtons
NamePanel * myPersonNamePanel
FXCheckButton * myDisableDottedContours
FXColorWell * mySelectedCrossingColor
NamePanel * myJunctionIDPanel
FXRealSpinner * myTranshipWidth
FXCheckButton * myShowSizeLegend
std::vector< FXColorWell * > myPersonColors
MFXComboBoxIcon * myVehicleShapeDetail
std::vector< FXButton * > myDataButtons
std::vector< FXRealSpinner * > myVehicleScales
std::vector< FXRealSpinner * > myPolyThresholds
FXCheckButton * myPOIColorInterpolation
std::vector< FXButton * > myContainerButtons
std::vector< FXRealSpinner * > myJunctionThresholds
NamePanel * myGeometryIndicesPanel
FXCheckButton * myVehicleScaleInterpolation
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.
void buildJunctionsFrame(FXTabBook *tabbook)
std::vector< FXRealSpinner * > myPersonThresholds
NamePanel * myCwaEdgeNamePanel
FXCheckButton * myRealisticLinkRules
FXCheckButton * myShowBrakeGap
long onKeyPress(FXObject *o, FXSelector sel, void *data)
keyboard functions
FXRealSpinner * myComboRows
NamePanel * myAddNamePanel
void show()
show view settings dialog
std::vector< FXButton * > myJunctionButtons
FXColorWell * mySelectedPersonColor
FXColorWell * myPersonTripColor
FXCheckButton * myShowGrid
NamePanel * myContainerNamePanel
FXColorWell * mySelectedProhibitionColor
FXCheckButton * myGenerate3DTLSModels
FXCheckButton * myShowVehicleColorLegend
void buildStreetsFrame(FXTabBook *tabbook)
FXComboBox * myDataScaleParamKey
FXColorWell * myTrainStopColorSign
FXRealSpinner * myTripWidth
demand widths
FXRealSpinner * myPOICustomLayer
FXCheckButton * myDrawBoundaries
FXCheckButton * mySaveViewPort
load/save-menu
FXSpinner * myLight3DFactor
SizePanel * myAddSizePanel
void buildVehiclesFrame(FXTabBook *tabbook)
FXCheckButton * myDrawReversed
NamePanel * myStreetNamePanel
SizePanel * myPolySizePanel
FXRealSpinner * myTransportWidth
FXCheckButton * myShow3DTLSDomes
FXVerticalFrame * myDataScaleSettingFrame
FXCheckButton * myIgnoreColorSchemeFor3DVehicles
std::vector< FXColorWell * > myJunctionColors
FXRealSpinner * myLaneMinWidthDialer
FXCheckButton * myShowRails
FXCheckButton * myShowLaneDecals
FXColorWell * myContainerStopColor
MFXComboBoxIcon * myLaneEdgeScaleMode
... lane scaler
FXCheckButton * myShowSublanes
FXCheckButton * myPersonColorInterpolation
FXCheckButton * mySaveDecals
long onCmdLoadXMLDecals(FXObject *, FXSelector, void *data)
Called if the decals shall be loaded from a file.
~GUIDialog_ViewSettings()
Destructor.
FXColorWell * mySelectionColor
selection colors
RainbowPanel * myEdgeRainbowPanel
rainbow panels
FXVerticalFrame * myLaneScaleSettingFrame
FXCheckButton * myHideMacroConnectors
NamePanel * myPOITypePanel
std::vector< FXColorWell * > myVehicleColors
NamePanel * myEdgeValuePanel
FXCheckButton * myShowRouteIndex
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.
std::vector< FXRealSpinner * > myVehicleThresholds
void setCurrentScheme(const std::string &)
Sets the named scheme as the current.
FXRealSpinner * myWalkWidth
FXCheckButton * myPolyColorInterpolation
std::vector< FXButton * > myPersonButtons
FXCheckButton * myPolyUseCustomLayer
FXColorWell * mySelectedEdgeColor
FXCheckButton * myShowMinGap
FXCheckButton * mySpreadSuperposed
NamePanel * myInternalJunctionNamePanel
FXCheckButton * myShowLaneDirection
NamePanel * myPOITextPanel
FXCheckButton * myJunctionColorInterpolation
FXRealSpinner * myTazRelationUpscaleDialer
void buildHeader(FXVerticalFrame *contentFrame)
build header
long onCmdCancel(FXObject *, FXSelector, void *)
Called if the Cancel-button was pressed.
FXColorWell * mySelectedVehicleColor
RainbowPanel * myJunctionRainbowPanel
FXCheckButton * myShow3DHeadUpDisplay
FXColorWell * mySelectedConnectionColor
FXVerticalFrame * myLaneColorSettingFrame
MFXComboBoxIcon * myPersonShapeDetail
FXCheckButton * myShowColorLegend
FXCheckButton * myLaneScaleInterpolation
FXColorWell * myBusStopColorSign
FXColorWell * myWalkColor
void buildDemandFrame(FXTabBook *tabbook)
NamePanel * myPersonValuePanel
long onCmdImportSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be read from a file.
FXComboBox * myDataParamKey
FXColorWell * myVehicleTripsColor
SizePanel * myPersonSizePanel
FXCheckButton * myDisableHideByZoom
FXColorWell * mySelectedRouteColor
FXVerticalFrame * myVehicleScaleSettingFrame
SizePanel * myPOISizePanel
FXComboBox * myVehicleParamKey
FXComboBox * myVehicleTextParamKey
NamePanel * myJunctionNamePanel
long onUpdImportSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to read settings from a file.
FXCheckButton * myDataScaleInterpolation
void setCurrent(GUIVisualizationSettings *settings)
Sets current settings (called if reopened)
FXCheckButton * myShowBikeMarkings
FXCheckButton * myShowLinkRules
FXColorWell * mySelectedAdditionalColor
void rebuildColorMatrices(bool doCreate=false)
Rebuilds color changing dialogs after choosing another coloring scheme.
NamePanel * myDataValuePanel
void saveDecals(OutputDevice &dev) const
Writes the currently used decals into a file.
FXVerticalFrame * myPolyColorSettingFrame
std::vector< FXRealSpinner * > myLaneScales
NamePanel * myTLSPhaseNamePanel
RainbowPanel * myDataRainbowPanel
void loadSettings(const std::string &file)
Loads a scheme from a file.
FXCheckButton * mySaveBreakpoints
long onCmdClearDecals(FXObject *, FXSelector, void *data)
Called if the decals shall be cleared.
std::vector< FXRealSpinner * > myDataThresholds
FXCheckButton * myDataColorInterpolation
FXColorWell * myPedestrianNetworkColor
FXCheckButton * myDrawCrossingsAndWalkingAreas
std::vector< FXButton * > myLaneButtons
FXCheckButton * myLaneColorInterpolation
FXVerticalFrame * myPersonColorSettingFrame
void buildContainersFrame(FXTabBook *tabbook)
MFXComboBoxIcon * myVehicleColorMode
Vehicles.
NamePanel * myTLSPhaseIndexPanel
NamePanel * myInternalEdgeNamePanel
void buildLegendFrame(FXTabBook *tabbook)
FXButton * myRecalculateBoundaries
FXColorWell * myStopPersonsColor
FXCheckButton * myScaleLength
std::vector< FXRealSpinner * > myVehicleScaleThresholds
NamePanel * myPOINamePanel
FXRealSpinner * myPolyCustomLayer
MFXComboBoxIcon * mySchemeName
NamePanel * myTLIndexPanel
long onCmdLoadDecal(FXObject *, FXSelector, void *data)
Called if the decal shall be loaded from a file.
FXCheckButton * myContainerColorInterpolation
GUIDialog_ViewSettings()
FOX need this.
std::vector< FXColorWell * > myLaneColors
SizePanel * myVehicleSizePanel
size panels
GUIVisualizationSettings * mySettings
The current settings.
long onCmdDeleteSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be deleted.
FXColorWell * myStopContainersColor
void loadDecals(const std::string &file)
Loads decals from a file.
FXComboBox * myPOITextParamKey
FXVerticalFrame * myPOIColorSettingFrame
long onCmdColorChange(FXObject *, FXSelector, void *)
Called if something (color, width, etc.) has been changed.
std::vector< FXColorWell * > myContainerColors
std::vector< FXRealSpinner * > myDataScaleThresholds
RainbowPanel * myVehicleRainbowPanel
FXCheckButton * myForceDrawForRectangleSelection
std::vector< FXButton * > myDataScaleButtons
MFXComboBoxIcon * myMeanDataID
MFXDecalsTable * myDecalsTable
FXRealSpinner * myPersonTripWidth
GUISUMOAbstractView * getSUMOAbstractView()
get GUISUMOAbstractView parent
FXCheckButton * mySecondaryShape
FXColorWell * myRideColor
MFXComboBoxIcon * myContainerColorMode
Containers.
std::vector< FXRealSpinner * > myLaneScaleThresholds
FXCheckButton * myDither
openGL
MFXComboBoxIcon * myContainerShapeDetail
GUIVisualizationSettings myBackup
A backup of the settings (used if the "Cancel" button is pressed)
std::vector< FXRealSpinner * > myContainerThresholds
void buildPersonsFrame(FXTabBook *tabbook)
FXRealSpinner * myGridYSizeDialer
FXCheckButton * myShow3DTLSLinkMarkers
MFXComboBoxIcon * myPOIColorMode
POIs.
void updatePOIParams()
reload known POI parameters
NamePanel * myEdgeScaleValuePanel
std::vector< FXRealSpinner * > myDataScales
FXColorWell * myTrainStopColor
FXRealSpinner * myRideWidth
FXCheckButton * myShowLane2Lane
buttons
FXRealSpinner * myGridXSizeDialer
std::vector< FXColorWell * > myDataColors
long onCmdOk(FXObject *, FXSelector, void *)
Called if the OK-button was pressed.
long onCmdSaveSetting(FXObject *, FXSelector, void *data)
Called if the settings shall be saved into the registry.
FXCheckButton * myShowBlinker
MFXComboBoxIcon * myLaneEdgeColorMode
... lane colorer
long onCmdSaveXMLDecals(FXObject *, FXSelector, void *data)
Called if the decals shall be saved to a file.
void buildAdditionalsFrame(FXTabBook *tabbook)
MFXComboBoxIcon * myDataScaleMode
Data scaler.
void buildPOIsFrame(FXTabBook *tabbook)
FXComboBox * myScalingParamKey
void buildPolygonsFrame(FXTabBook *tabbook)
void buildDataFrame(FXTabBook *tabbook)
long onUpdSaveSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to save the settings into the registry.
void buildButtons(FXVerticalFrame *contentFrame)
build buttons
FXColorWell * mySelectedLaneColor
SizePanel * myJunctionSizePanel
MFXComboBoxIcon * myVehicleScaleMode
vehicle scaler
std::vector< FXButton * > myVehicleScaleButtons
SizePanel * myContainerSizePanel
NamePanel * myAddFullNamePanel
MFXComboBoxIcon * myPersonColorMode
Persons.
FXColorWell * myBackgroundColor
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)
update color ranges
std::vector< FXRealSpinner * > myLaneThresholds
FXColorWell * myWaypointColor
long onUpdDeleteSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to delete settings.
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)
update scale ranges
NamePanel * myVehicleTextPanel
NamePanel * myVehicleValuePanel
void build3DFrame(FXTabBook *tabbook)
long onUpdExportSetting(FXObject *, FXSelector, void *data)
Called when updating the button that allows to export settings into a file.
MFXComboBoxIcon * myDataColorMode
Data color.
std::vector< FXButton * > myPOIButtons
FXComboBox * myVehicleScalingParamKey
FXColorWell * myChargingStationColorSign
NamePanel * myEdgeNamePanel
name panels
FXColorWell * myContainerStopColorSign
FXColorWell * mySelectedEdgeDataColor
FXRealSpinner * myEdgeRelationUpscaleDialer
FXCheckButton * myShowLaneBorders
NamePanel * myPolyNamePanel
void updateVehicleParams()
reload known vehicle parameters
std::vector< FXRealSpinner * > myPOIThresholds
std::vector< FXButton * > myPolyButtons
FXCheckButton * myDrawJunctionShape
std::vector< FXButton * > myVehicleButtons
FXColorWell * myTranshipColor
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
Persists window position in the registry.
const std::vector< double > & getThresholds() const
void setColor(const int pos, const T &color)
void setThreshold(const int pos, const double threshold)
const std::vector< std::string > & getNames() const
void removeColor(const int pos)
const std::string & getName() const
const std::vector< T > & getColors() const
int addColor(const T &color, const double threshold, const std::string &name="")
void setInterpolated(const bool interpolate, double interpolationStart=0.f)
bool isInterpolated() const
bool allowsNegativeValues() const
void fill(MFXComboBoxIcon &cb)
Fills the given combobox with the names of available colorings.
void setActive(int scheme)
MFXComboBoxIcon * getColoringSchemesCombo()
get coloring schemes combo
virtual void buildColorRainbow(const GUIVisualizationSettings &, GUIColorScheme &, int, GUIGlObjectType, const GUIVisualizationRainbowSettings &)
recalibrate color scheme according to the current value range
virtual std::vector< std::string > getMeanDataAttrs(const std::string &meanDataID) const
return list of available attributes for the given meanData id
void setDelay(double delay)
Sets the delay of the parent application.
GUIDialog_EditViewport * getViewportEditor()
get the viewport and create it on first access
std::vector< Decal > & getDecals()
The list of decals to show.
double getDelay() const
Returns the delay of the parent application.
virtual std::vector< std::string > getEdgeLaneParamKeys(bool) const
return list of available edge parameters
virtual std::vector< std::string > getVehicleParamKeys(bool) const
return list of available vehicle parameters
virtual void drawPedestrianNetwork(const GUIVisualizationSettings &) const
Draw (or not) the JuPedSim pedestrian network.
virtual std::vector< std::string > getMeanDataIDs() const
return list of loaded edgeData ids (being computed in the current simulation)
virtual void recalculateBoundaries()
recalculate boundaries
FXMutex & getDecalsLockMutex()
The mutex to use before accessing the decals list in order to avoid thread conflicts.
virtual bool is3DView() const
return whether this is a 3D view
virtual std::vector< std::string > getPOIParamKeys() const
return list of available vehicle parameters
virtual void changePedestrianNetworkColor(const GUIVisualizationSettings &) const
Change the color of the JuPedSim pedestrian network.
void setBreakpoints(const std::vector< SUMOTime > &breakpoints)
Sets the breakpoints of the parent application.
virtual bool setColorScheme(const std::string &)
set color scheme
virtual std::vector< std::string > getRelDataAttrs() const
return list of loaded edgeRelation and tazRelation attributes
virtual const std::vector< SUMOTime > retrieveBreakpoints() const
retrieve breakpoints if provided by the application
void remove(GUIDialog_EditViewport *)
remove viewport
virtual std::vector< std::string > getEdgeDataAttrs() const
return list of loaded edgeData attributes
An XML-handler for visualisation schemes.
double getDelay() const
Returns the parsed delay.
bool hasDecals() const
Returns whether any decals have been parsed.
const std::vector< std::string > & addSettings(GUISUMOAbstractView *view=0) const
Adds the parsed settings to the global list of settings.
void applyViewport(GUISUMOAbstractView *view) const
Sets the viewport which has been parsed.
const std::vector< SUMOTime > & getBreakpoints() const
Returns the parsed breakpoints.
const std::vector< GUISUMOAbstractView::Decal > & getDecals() const
Returns the parsed decals.
GUIGlObjectType recomputeBoundaries
recompute boundaries
Stores the information about how to visualize structures.
GUIVisualizationTextSettings addName
GUIVisualizationTextSettings tlsPhaseIndex
bool poiUseCustomLayer
whether the rendering layer of POIs should be overriden
GUIVisualizationTextSettings vehicleName
GUIVisualizationTextSettings junctionName
RGBColor backgroundColor
The background color to use.
GUIVisualizationSizeSettings vehicleSize
GUIVisualizationSizeSettings containerSize
bool showBlinker
Information whether vehicle blinkers shall be drawn.
GUIVisualizationTextSettings internalEdgeName
bool showPedestrianNetwork
Flag for visualizing the pedestrian network generated for JuPedSim.
bool ignoreColorSchemeFor3DVehicles
RGBColor skyColor
sky background color
double polyCustomLayer
the custom layer for polygons
GUIVisualizationSizeSettings junctionSize
static const std::string SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL
static const double MISSING_DATA
bool drawBoundaries
enable or disable draw boundaries
static const std::string SCHEME_NAME_EDGEDATA_NUMERICAL
bool showBikeMarkings
Information whether bicycle lane marking shall be drawn.
std::string edgeDataID
id for coloring by live edgeData
GUIScaler laneScaler
The lane scaler.
GUIVisualizationTextSettings edgeScaleValue
bool dither
Information whether dithering shall be enabled.
GUIColorer vehicleColorer
The vehicle colorer.
bool disableHideByZoom
disable hide by zoom
std::string relDataScaleAttr
key for scaling by edgeRelation / tazRelation attribute
static const std::string SCHEME_NAME_EDGEDATA_LIVE
GUIVisualizationTextSettings personValue
bool showLinkRules
Information whether link rules (colored bars) shall be drawn.
GUIScaler dataScaler
The size scaling settings for data elements.
GUIVisualizationRainbowSettings vehicleValueRainBow
GUIVisualizationTextSettings poiType
GUIVisualizationSizeSettings addSize
std::string name
The name of this setting.
GUIColorer edgeColorer
The mesoscopic edge colorer.
int containerQuality
The quality of container drawing.
RGBColor pedestrianNetworkColor
The color of the pedestrian network generated for JuPedSim.
GUIVisualizationTextSettings internalJunctionName
GUIVisualizationTextSettings vehicleScaleValue
GUIVisualizationSizeSettings poiSize
bool drawJunctionShape
whether the shape of the junction should be drawn
std::string edgeData
key for coloring by edgeData
GUIVisualizationTextSettings geometryIndices
GUIVisualizationTextSettings dataValue
bool show3DTLSDomes
whether the semi-transparent domes around 3D TL models should be drawn
bool realisticLinkRules
Information whether link rules (colored bars) shall be drawn with a realistic color scheme.
bool trueZ
drawl all objects according to their z data
int personQuality
The quality of person drawing.
GUIColorer poiColorer
The POI colorer.
GUIVisualizationWidthSettings widthSettings
width settings
GUIVisualizationTextSettings poiName
std::string vehicleScaleParam
key for scaling by vehicle parameter
bool showParkingInfo
Set whether parking related information should be shown.
GUIVisualizationTextSettings vehicleValue
bool disableDottedContours
flag for disable dotted contours in netedit
GUIColorer polyColorer
The polygon colorer.
int vehicleQuality
The quality of vehicle drawing.
GUIVisualizationTextSettings drawLinkJunctionIndex
bool generate3DTLSModels
whether 3D TLS models should be generated automatically
static const std::string SCHEME_NAME_LANE_PARAM_NUMERICAL
GUIVisualizationTextSettings addFullName
GUIVisualizationTextSettings edgeValue
bool fps
Information whether frames-per-second should be drawn.
std::string vehicleParam
key for coloring by vehicle parameter
bool showRails
Information whether rails shall be drawn.
GUIVisualizationSizeSettings personSize
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
GUIVisualizationTextSettings cwaEdgeName
GUIVisualizationTextSettings junctionID
std::string vehicleTextParam
key for rendering vehicle textual parameter
bool showLane2Lane
Information whether lane-to-lane arrows shall be drawn.
GUIVisualizationColorSettings colorSettings
color settings
bool showSublanes
Whether to show sublane boundaries.
GUIVisualizationRainbowSettings edgeValueRainBow
checks and thresholds for rainbow coloring
bool showGrid
Information whether a grid shall be shown.
bool scaleLength
Whether vehicle length shall be scaled with length/geometry factor.
bool showVehicleColorLegend
Information whether the vehicle color legend shall be drawn.
double edgeRelWidthExaggeration
The edgeRelation exaggeration (upscale thickness)
bool hideConnectors
flag to show or hide connectors
GUIScaler vehicleScaler
The size scaling settings for vehicles.
static bool UseMesoSim
this should be set at the same time as MSGlobals::gUseMesoSim
GUIColorer personColorer
The person colorer.
void save(OutputDevice &dev) const
Writes the settings into an output device.
bool show3DTLSLinkMarkers
whether the TLS link markers should be drawn
GUIScaleScheme & getLaneEdgeScaleScheme()
Returns the current lane (edge) scaling scheme.
bool polyUseCustomLayer
whether the rendering layer of polygons should be overriden
int getLaneEdgeMode() const
Returns the number of the active lane (edge) coloring scheme.
double poiCustomLayer
the custom layer for POIs
bool showChargingInfo
Set whether the charging search related information should be shown.
RGBColor ambient3DLight
3D material light components
GUIVisualizationRainbowSettings junctionValueRainBow
bool forceDrawForRectangleSelection
flag to force draw for rectangle selection (see drawForRectangleSelection)
bool netedit
Whether the settings are for Netedit.
bool showLaneDirection
Whether to show direction indicators for lanes.
GUIVisualizationRainbowSettings dataValueRainBow
value below which edgeData and edgeRelation data value should not be rendered
bool secondaryShape
whether secondary lane shape shall be drawn
GUIColorScheme & getLaneEdgeScheme()
Returns the current lane (edge) coloring scheme.
GUIScaler edgeScaler
The mesoscopic edge scaler.
bool drawMinGap
Information whether the minimum gap shall be drawn.
GUIVisualizationTextSettings streetName
GUIVisualizationTextSettings poiText
GUIVisualizationTextSettings vehicleText
int getLaneEdgeScaleMode() const
Returns the number of the active lane (edge) scaling scheme.
bool showLinkDecals
Information whether link textures (arrows) shall be drawn.
bool show3DHeadUpDisplay
whether to draw the head up display items
GUIColorer laneColorer
The lane colorer.
GUIVisualizationTextSettings polyName
double tazRelWidthExaggeration
The tazRelation exaggeration (upscale thickness)
bool laneShowBorders
Information whether lane borders shall be drawn.
GUIVisualizationTextSettings tlsPhaseName
GUIVisualizationTextSettings edgeName
Setting bundles for optional drawing names with size and color.
bool showSizeLegend
Information whether the size legend shall be drawn.
double laneMinSize
The minimum visual lane width for drawing.
GUIVisualizationTextSettings drawLinkTLIndex
GUIVisualizationTextSettings containerName
static std::map< std::string, std::vector< RGBColor > > RAINBOW_SCHEMES
GUIVisualizationSizeSettings polySize
GUIColorer containerColorer
The container colorer.
double gridXSize
Information about the grid spacings.
bool showBTRange
Information whether the communication range shall be drawn.
bool drawReversed
Whether to draw reversed vehicles in their reversed state.
GUIVisualizationTextSettings personName
bool showColorLegend
Information whether the edge color legend shall be drawn.
std::string poiTextParam
key for rendering poi textual parameter
bool showRouteIndex
Information whether the route index should be shown.
bool drawCrossingsAndWalkingareas
whether crossings and walkingareas shall be drawn
static const std::string SCHEME_NAME_EDGE_PARAM_NUMERICAL
scheme names
bool spreadSuperposed
Whether to improve visualisation of superposed (rail) edges.
std::string relDataAttr
key for coloring by edgeRelation / tazRelation attribute
GUIColorer junctionColorer
The junction colorer.
void copy(const GUIVisualizationSettings &s)
copy all content from another GUIVisualizationSettings (note: DON'T USE in DrawGL functions!...
static const std::string SCHEME_NAME_PARAM_NUMERICAL
std::string edgeParam
key for coloring by edge parameter
bool drawBrakeGap
Information whether the brake gap shall be drawn.
GUIVisualizationTextSettings polyType
int poiDetail
The detail level for drawing POIs.
std::string edgeDataScaling
key for scaling by edgeData
FXint insertIconItem(FXint index, const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
insert icon item in the given position
long setCurrentItem(const FXint index, FXbool notify=FALSE)
Set the current item (index is zero-based)
FXint getCurrentItem() const
Get the current item's index.
FXint findItem(const FXString &text) const
find item
void removeItem(FXint index)
Remove this item from the list.
FXint getNumItems() const
Return the number of items in the list.
FXString getText() const
Get the text.
virtual void clearItems()
Remove all items from the list.
std::string getItemText(FXint index) const
Get text for specified item.
void disable()
Disable combo box.
FXint appendIconItem(const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
append icon item in the last position
void enable()
Enable combo box.
void fillTable()
fill table
static FXString getFilename2Write(FXWindow *parent, const FXString &header, const FXString &extensions, FXIcon *icon, FXString ¤tFolder)
Returns the file name to write.
static void deleteChildren(FXWindow *w)
Deletes all children of the given window.
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
static RGBColor getRGBColor(FXColor col)
converts FXColor to RGBColor
static OptionsCont & getOptions()
Retrieves the options.
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
void close()
Closes the device and removes it from the dictionary.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
static OutputDevice & getDevice(const std::string &name, bool usePrefix=true)
Returns the described OutputDevice.
unsigned char red() const
Returns the red-amount of the color.
void set(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
assigns new values
static StringBijection< XMLFileExtension > XMLFileExtensions
XML file Extensions.
static StringBijection< ViewSettingsFileExtension > ViewSettingsFileExtensions
view settings file extensions
static bool startsWith(const std::string &str, const std::string prefix)
Checks whether a given string starts with the prefix.
#define UNUSED_PARAMETER(x)
RGBColor vehicleTripColor
color for vehicle trips
RGBColor selectionColor
basic selection color
RGBColor walkColor
color for walks
RGBColor rideColor
color for rides
RGBColor selectedEdgeColor
edge selection color
RGBColor selectedPersonPlanColor
person plan selection color (Rides, Walks, stopPersons...)
RGBColor stopPersonColor
color for stopPersons
RGBColor selectedCrossingColor
crossings selection color
RGBColor chargingStationColor
color for chargingStations
RGBColor selectedLaneColor
lane selection color
RGBColor selectedRouteColor
route selection color (used for routes and vehicle stops)
RGBColor selectedEdgeDataColor
edge data selection color
RGBColor trainStopColorSign
color for trainStops signs
RGBColor transhipColor
color for tranships
RGBColor waypointColor
color for Waypoints
RGBColor containerStopColor
color for containerStops
RGBColor selectedProhibitionColor
prohibition selection color
RGBColor selectedConnectionColor
connection selection color
RGBColor busStopColorSign
color for busStops signs
RGBColor containerStopColorSign
color for containerStop signs
RGBColor selectedAdditionalColor
additional selection color (busStops, Detectors...)
RGBColor transportColor
color for transport
RGBColor busStopColor
color for busStops
RGBColor selectedVehicleColor
vehicle selection color
RGBColor selectedPersonColor
person selection color
RGBColor personTripColor
color for stopPersons
RGBColor stopContainerColor
color for containerStops
RGBColor trainStopColor
color for trainStops
RGBColor stopColor
color for Stops
RGBColor chargingStationColorSign
color for chargingStation sign
bool hideMax
whether data above threshold should not be colored
bool setNeutral
whether the scale should be centered at a specific value
bool fixRange
whether the color scale should be fixed to the given min/max values
double minThreshold
threshold below which value should not be colored
std::vector< RGBColor > colors
color steps for the rainbow;
int rainbowScheme
index in the list of color schemes
bool hideMin
whether data below threshold should not be colored
double neutralThreshold
neutral point of scale
double maxThreshold
threshold above which value should not be colored
double exaggeration
The size exaggeration (upscale)
bool constantSize
whether the object shall be drawn with constant size regardless of zoom
double minSize
The minimum size to draw this object.
bool constantSizeSelected
whether only selected objects shall be drawn with constant
RGBColor bgColor
background text color
bool onlySelected
whether only selected objects shall have text drawn
bool constSize
flag to avoid size changes
double tripWidth
width for trips
double transportWidth
width for rides
double walkWidth
width for walks
double personTripWidth
width for person trips
double transhipWidth
width for rides
double rideWidth
width for rides