Eclipse SUMO - Simulation of Urban MObility
GUIApplicationWindow.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // The main window of the SUMO-gui.
19 /****************************************************************************/
20 #ifndef GUIApplicationWindow_h
21 #define GUIApplicationWindow_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
30 #include <vector>
31 #include <iostream>
32 #include <fx.h>
41 #include "GUISUMOViewParent.h"
42 
43 
44 // ===========================================================================
45 // class declarations
46 // ===========================================================================
47 class GUILoadThread;
48 class GUIRunThread;
49 class GUIMessageWindow;
50 class GUIEvent;
53 
54 
55 // ===========================================================================
56 // class definition
57 // ===========================================================================
68  // FOX-declarations
69  FXDECLARE(GUIApplicationWindow)
70 public:
71 
76  GUIApplicationWindow(FXApp* a, const std::string& configPattern);
77 
78 
80  virtual ~GUIApplicationWindow();
81 
82 
85 
87  virtual void create();
88 
90  virtual void detach();
92 
93  void loadOnStartup();
94 
95 
96  void dependentBuild();
97 
98  void setStatusBarText(const std::string& text);
99 
100  void addRecentFile(const FX::FXString& f, const bool isNet);
101 
102  FXGLCanvas* getBuildGLCanvas() const;
103  SUMOTime getCurrentSimTime() const;
104  double getTrackerInterval() const;
105 
106  FXCursor* getDefaultCursor();
107 
108 
109 
110 
113 
114  virtual void eventOccurred();
117  void handleEvent_Message(GUIEvent* e);
120 
121 
122 
125 
127  long onCmdOpenConfiguration(FXObject*, FXSelector, void*);
128 
130  long onCmdOpenNetwork(FXObject*, FXSelector, void*);
131 
133  long onCmdOpenShapes(FXObject*, FXSelector, void*);
134 
136  long onCmdOpenEdgeData(FXObject*, FXSelector, void*);
137 
139  long onCmdReload(FXObject*, FXSelector, void*);
140 
142  long onCmdOpenRecent(FXObject*, FXSelector, void*);
143 
145  long onCmdClose(FXObject*, FXSelector, void*);
146 
150  long onCmdQuit(FXObject*, FXSelector, void*);
151 
153  long onCmdEditChosen(FXObject*, FXSelector, void*);
154 
156  long onCmdEditBreakpoints(FXObject*, FXSelector, void*);
157 
159  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
160 
162  long onCmdEditViewport(FXObject*, FXSelector, void*);
163 
165  long onCmdHelp(FXObject* sender, FXSelector sel, void* ptr);
166 
168  long onCmdNetedit(FXObject*, FXSelector, void*);
169 
171  long onCmdAppSettings(FXObject*, FXSelector, void*);
172 
174  long onCmdGaming(FXObject*, FXSelector, void*);
175 
177  long onCmdFullScreen(FXObject*, FXSelector, void*);
178 
180  long onCmdListInternal(FXObject*, FXSelector, void*);
181 
183  long onCmdListParking(FXObject*, FXSelector, void*);
184 
186  long onCmdListTeleporting(FXObject*, FXSelector, void*);
187 
189  long onCmdAbout(FXObject*, FXSelector, void*);
190 
192  long onCmdStart(FXObject*, FXSelector, void*);
193 
195  long onCmdStop(FXObject*, FXSelector, void*);
196 
198  long onCmdStep(FXObject*, FXSelector, void*);
199 
201  long onCmdSaveState(FXObject*, FXSelector, void*);
202 
204  long onCmdTimeToggle(FXObject*, FXSelector, void*);
205 
207  long onCmdDelayToggle(FXObject*, FXSelector, void*);
208 
210  long onCmdDemandScale(FXObject*, FXSelector, void*);
211 
213  long onCmdNewView(FXObject*, FXSelector, void*);
214 
215 #ifdef HAVE_OSG
216  long onCmdNewOSG(FXObject*, FXSelector, void*);
218 #endif
219 
221  long onUpdOpen(FXObject*, FXSelector, void*);
222 
224  long onUpdReload(FXObject*, FXSelector, void*);
225 
227  long onUpdOpenRecent(FXObject*, FXSelector, void*);
228 
230  long onUpdAddView(FXObject*, FXSelector, void*);
231 
233  long onUpdStart(FXObject* sender, FXSelector, void* ptr);
234 
236  long onUpdStop(FXObject*, FXSelector, void*);
237 
239  long onUpdStep(FXObject*, FXSelector, void*);
240 
242  long onUpdNeedsSimulation(FXObject*, FXSelector, void*);
243 
245  long onUpdTraCIStatus(FXObject*, FXSelector, void*);
246 
248  long onCmdClearMsgWindow(FXObject*, FXSelector, void*);
249 
251  long onCmdLocate(FXObject*, FXSelector, void*);
252 
254  long onCmdShowStats(FXObject*, FXSelector, void*);
255 
257  long onLoadThreadEvent(FXObject*, FXSelector, void*);
258 
260  long onRunThreadEvent(FXObject*, FXSelector, void*);
261 
263  long onClipboardRequest(FXObject* sender, FXSelector sel, void* ptr);
264 
266  long onKeyPress(FXObject* o, FXSelector sel, void* data);
267  long onKeyRelease(FXObject* o, FXSelector sel, void* data);
269 
270 
274  virtual double getDelay() const {
275  return mySimDelay;
276  }
277 
281  virtual void setDelay(double delay) {
282  mySimDelay = delay;
283  }
284 
287  virtual void setBreakpoints(const std::vector<SUMOTime>& breakpoints);
288 
292  virtual void sendBlockingEvent(GUIEvent* event);
293 
294  const std::vector<SUMOTime> retrieveBreakpoints() const;
295 
296 protected:
297  virtual void addToWindowsMenu(FXMenuPane*) { }
298 
299 private:
301  void loadConfigOrNet(const std::string& file, bool isNet);
302 
304  void closeAllWindows();
305 
307  void updateTimeLCD(SUMOTime time);
308 
311 
313  void checkGamingEvents();
314  void checkGamingEventsDRT();
315 
316 protected:
319 
320 protected:
322  virtual void fillMenuBar();
323 
325  virtual void buildToolBars();
326 
327 protected:
329  std::string myName;
330 
333 
336 
339 
342 
345 
350 
352  FXMenuCascade* mySelectLanesMenuCascade;
353 
355  std::vector<FXButton*> myStatButtons;
356 
359 
361  FXSplitter* myMainSplitter;
362 
367 
369  double mySimDelay;
370  FXDataTarget* mySimDelayTarget;
371  FXRealSpinner* mySimDelaySpinner;
372  FXSlider* mySimDelaySlider;
373 
375  FXRealSpinner* myDemandScaleSpinner;
376 
379 
382 
384  FXMDIMenu* myMDIMenu;
385 
387  FXMenuBar* myMenuBar;
388 
391 
394 
397 
400 
402  FXRecentFiles myRecentConfigs;
403 
405  FXRecentFiles myRecentNets;
406 
408  std::string myConfigPattern;
409 
411 
414 
417 
419  FXMutex myEventMutex;
420 
422  FXCondition myEventCondition;
423 
431  static std::mt19937 myGamingRNG;
434  bool myTLSGame;
435 
448 
449 };
450 
451 
452 #endif
453 
454 /****************************************************************************/
455 
GUIApplicationWindow::setDelay
virtual void setDelay(double delay)
Sets the delay of the parent application.
Definition: GUIApplicationWindow.h:281
GUIApplicationWindow::myLCDLabel
FXEX::FXLCDLabel * myLCDLabel
the simulation step display
Definition: GUIApplicationWindow.h:393
GUIApplicationWindow::myToolBar3
FXToolBar * myToolBar3
Definition: GUIApplicationWindow.h:390
GUIApplicationWindow::handleEvent_SimulationStep
void handleEvent_SimulationStep(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1509
GUIApplicationWindow::myAlternateSimDelay
double myAlternateSimDelay
The alternate simulation delay in milliseconds for toggling.
Definition: GUIApplicationWindow.h:378
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:63
GUIApplicationWindow::onCmdEditChosen
long onCmdEditChosen(FXObject *, FXSelector, void *)
Called on menu Edit->Edit Chosen.
Definition: GUIApplicationWindow.cpp:733
GUIApplicationWindow::myTLSGame
bool myTLSGame
current game mode
Definition: GUIApplicationWindow.h:434
GUIApplicationWindow::onUpdOpen
long onUpdOpen(FXObject *, FXSelector, void *)
Determines whether opening is enabled.
Definition: GUIApplicationWindow.cpp:965
MFXInterThreadEventClient
Definition: MFXInterThreadEventClient.h:28
GUIApplicationWindow::onUpdStop
long onUpdStop(FXObject *, FXSelector, void *)
Determines whether "stop" is enabled.
Definition: GUIApplicationWindow.cpp:1113
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:73
GUIApplicationWindow::myToolBarDrag4
FXToolBarShell * myToolBarDrag4
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow::hadDependentBuild
bool hadDependentBuild
Definition: GUIApplicationWindow.h:410
GUIApplicationWindow::myJamSounds
RandomDistributor< std::string > myJamSounds
Definition: GUIApplicationWindow.h:426
GUIApplicationWindow::onCmdOpenNetwork
long onCmdOpenNetwork(FXObject *, FXSelector, void *)
Called on menu File->Open Network.
Definition: GUIApplicationWindow.cpp:856
GUIApplicationWindow::mySimDelaySlider
FXSlider * mySimDelaySlider
Definition: GUIApplicationWindow.h:372
GUIApplicationWindow::myWaitingTime
SUMOTime myWaitingTime
Definition: GUIApplicationWindow.h:441
GUIApplicationWindow::onCmdSaveState
long onCmdSaveState(FXObject *, FXSelector, void *)
Called on "save state".
Definition: GUIApplicationWindow.cpp:1046
GUIMessageWindow
A logging window for the gui.
Definition: GUIMessageWindow.h:54
GUIApplicationWindow::onCmdDemandScale
long onCmdDemandScale(FXObject *, FXSelector, void *)
Called on "demand scale".
Definition: GUIApplicationWindow.cpp:1087
GUIApplicationWindow::onUpdNeedsSimulation
long onUpdNeedsSimulation(FXObject *, FXSelector, void *)
Determines whether some buttons which require an active simulation may be shown.
Definition: GUIApplicationWindow.cpp:1133
GUIApplicationWindow::onCmdClearMsgWindow
long onCmdClearMsgWindow(FXObject *, FXSelector, void *)
Called if the message window shall be cleared.
Definition: GUIApplicationWindow.cpp:1096
GUIApplicationWindow::myLocatorMenu
FXMenuPane * myLocatorMenu
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::myWasStarted
bool myWasStarted
the information whether the simulation was started before
Definition: GUIApplicationWindow.h:338
GUIApplicationWindow::onCmdNetedit
long onCmdNetedit(FXObject *, FXSelector, void *)
Called on menu Edit->Netedit.
Definition: GUIApplicationWindow.cpp:801
GUIApplicationWindow::myWindowsMenu
FXMenuPane * myWindowsMenu
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::onKeyPress
long onKeyPress(FXObject *o, FXSelector sel, void *data)
handle keys
Definition: GUIApplicationWindow.cpp:1832
GUIApplicationWindow::myDemandScaleSpinner
FXRealSpinner * myDemandScaleSpinner
the demand scale
Definition: GUIApplicationWindow.h:375
GUIApplicationWindow::updateTimeLCD
void updateTimeLCD(SUMOTime time)
updates the simulation time display
Definition: GUIApplicationWindow.cpp:1798
GUIApplicationWindow::onCmdTimeToggle
long onCmdTimeToggle(FXObject *, FXSelector, void *)
Called on "time toggle".
Definition: GUIApplicationWindow.cpp:1068
GUIApplicationWindow::myStatButtons
std::vector< FXButton * > myStatButtons
Buttons showing and running values and triggering statistic windows.
Definition: GUIApplicationWindow.h:355
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
GUIApplicationWindow::loadConfigOrNet
void loadConfigOrNet(const std::string &file, bool isNet)
Definition: GUIApplicationWindow.cpp:1661
GUIRunThread
Definition: GUIRunThread.h:57
GUIApplicationWindow::myPreviousCollisionNumber
int myPreviousCollisionNumber
Definition: GUIApplicationWindow.h:432
GUIApplicationWindow::myEmergencyVehicleLabel
FXEX::FXLCDLabel * myEmergencyVehicleLabel
Definition: GUIApplicationWindow.h:440
GUIApplicationWindow::myEmergencyVehicleCount
SUMOTime myEmergencyVehicleCount
Definition: GUIApplicationWindow.h:443
GUIApplicationWindow::onUpdAddView
long onUpdAddView(FXObject *, FXSelector, void *)
Determines whether adding a view is enabled.
Definition: GUIApplicationWindow.cpp:993
GUIApplicationWindow::setBreakpoints
virtual void setBreakpoints(const std::vector< SUMOTime > &breakpoints)
Sets the breakpoints of the parent application.
Definition: GUIApplicationWindow.cpp:1867
GUIApplicationWindow::getDefaultCursor
FXCursor * getDefaultCursor()
Definition: GUIApplicationWindow.cpp:1756
GUIApplicationWindow::~GUIApplicationWindow
virtual ~GUIApplicationWindow()
Destructor.
Definition: GUIApplicationWindow.cpp:331
GUIApplicationWindow::onClipboardRequest
long onClipboardRequest(FXObject *sender, FXSelector sel, void *ptr)
Somebody wants our clipped text.
Definition: GUIApplicationWindow.cpp:1324
GUIApplicationWindow::onKeyRelease
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
Definition: GUIApplicationWindow.cpp:1845
GUIApplicationWindow::myToolBar8
FXToolBar * myToolBar8
Definition: GUIApplicationWindow.h:390
GUIApplicationWindow::detach
virtual void detach()
Detaches the tool/menu bar.
Definition: GUIApplicationWindow.cpp:363
FXSynchQue.h
GUIApplicationWindow::onCmdOpenRecent
long onCmdOpenRecent(FXObject *, FXSelector, void *)
Called on opening a recent file.
Definition: GUIApplicationWindow.cpp:946
GUIApplicationWindow::onCmdShowStats
long onCmdShowStats(FXObject *, FXSelector, void *)
Called on commands from the statistic buttons.
Definition: GUIApplicationWindow.cpp:1165
GUIApplicationWindow::onCmdStop
long onCmdStop(FXObject *, FXSelector, void *)
Called on "stop".
Definition: GUIApplicationWindow.cpp:1021
GUIMainWindow.h
GUIApplicationWindow::myToolBar6
FXToolBar * myToolBar6
Definition: GUIApplicationWindow.h:445
GUIApplicationWindow::myHaveNotifiedAboutSimEnd
bool myHaveNotifiedAboutSimEnd
whether the simulation end was already announced
Definition: GUIApplicationWindow.h:416
GUIApplicationWindow::myConfigPattern
std::string myConfigPattern
Input file pattern.
Definition: GUIApplicationWindow.h:408
GUIApplicationWindow::GUIApplicationWindow
GUIApplicationWindow()
FOX needs this for static members.
Definition: GUIApplicationWindow.h:318
GUIApplicationWindow::myWaitingTimeLabel
FXEX::FXLCDLabel * myWaitingTimeLabel
performance indicators
Definition: GUIApplicationWindow.h:437
GUIApplicationWindow::onUpdOpenRecent
long onUpdOpenRecent(FXObject *, FXSelector, void *)
Determines whether opening a recent file is enabled.
Definition: GUIApplicationWindow.cpp:984
GUIApplicationWindow::retrieveBreakpoints
const std::vector< SUMOTime > retrieveBreakpoints() const
retrieve breakpoints if provided by the application
Definition: GUIApplicationWindow.cpp:1876
GUIApplicationWindow::myMenuBar
FXMenuBar * myMenuBar
The application menu bar.
Definition: GUIApplicationWindow.h:387
GUIApplicationWindow::myName
std::string myName
the name of the simulation
Definition: GUIApplicationWindow.h:329
GUIApplicationWindow::myToolBarDrag7
FXToolBarShell * myToolBarDrag7
Definition: GUIApplicationWindow.h:446
GUILoadThread
Definition: GUILoadThread.h:50
RandomDistributor.h
GUIApplicationWindow::myGamingRNG
static std::mt19937 myGamingRNG
A random number generator used to choose a gaming sound.
Definition: GUIApplicationWindow.h:431
GUIApplicationWindow::onCmdListParking
long onCmdListParking(FXObject *, FXSelector, void *)
Toggle listing of parking vehicles.
Definition: GUIApplicationWindow.cpp:1287
GUIApplicationWindow::myMenuBarDrag
FXToolBarShell * myMenuBarDrag
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow::buildToolBars
virtual void buildToolBars()
Builds the tool bar.
Definition: GUIApplicationWindow.cpp:585
GUIApplicationWindow::onCmdFullScreen
long onCmdFullScreen(FXObject *, FXSelector, void *)
Toggle full screen mode.
Definition: GUIApplicationWindow.cpp:1235
GUIApplicationWindow::myToolBarDrag3
FXToolBarShell * myToolBarDrag3
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow::onCmdListInternal
long onCmdListInternal(FXObject *, FXSelector, void *)
Toggle listing of internal structures.
Definition: GUIApplicationWindow.cpp:1280
GUIApplicationWindow::eventOccurred
virtual void eventOccurred()
Definition: GUIApplicationWindow.cpp:1347
GUIApplicationWindow::myToolBarDrag6
FXToolBarShell * myToolBarDrag6
Definition: GUIApplicationWindow.h:446
GUIApplicationWindow::addToWindowsMenu
virtual void addToWindowsMenu(FXMenuPane *)
Definition: GUIApplicationWindow.h:297
GUIApplicationWindow::myControlMenu
FXMenuPane * myControlMenu
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::checkGamingEvents
void checkGamingEvents()
handles additional game-related events
Definition: GUIApplicationWindow.cpp:1587
GUIApplicationWindow::onCmdAbout
long onCmdAbout(FXObject *, FXSelector, void *)
Shows the about dialog.
Definition: GUIApplicationWindow.cpp:1316
GUIApplicationWindow::myToolBarDrag8
FXToolBarShell * myToolBarDrag8
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow::myRecentNets
FXRecentFiles myRecentNets
List of recent nets.
Definition: GUIApplicationWindow.h:405
GUIApplicationWindow::mySimDelayTarget
FXDataTarget * mySimDelayTarget
Definition: GUIApplicationWindow.h:370
GUIApplicationWindow::onCmdEditViewport
long onCmdEditViewport(FXObject *, FXSelector, void *)
Called on menu Edit->Viewport.
Definition: GUIApplicationWindow.cpp:776
GUIApplicationWindow::onCmdLocate
long onCmdLocate(FXObject *, FXSelector, void *)
Called on menu commands from the Locator menu.
Definition: GUIApplicationWindow.cpp:1153
GUISUMOViewParent::ViewType
ViewType
Available view types.
Definition: GUISUMOViewParent.h:65
GUIApplicationWindow::loadOnStartup
void loadOnStartup()
Definition: GUIApplicationWindow.cpp:1774
GUIApplicationWindow::myToolBarDrag1
FXToolBarShell * myToolBarDrag1
for some menu detaching fun
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow
The main window of the SUMO-gui.
Definition: GUIApplicationWindow.h:66
GUIApplicationWindow::myHelpMenu
FXMenuPane * myHelpMenu
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::myRunThreadEvent
FXEX::FXThreadEvent myRunThreadEvent
io-event with the run-thread
Definition: GUIApplicationWindow.h:399
GUIApplicationWindow::myTimeLoss
SUMOTime myTimeLoss
Definition: GUIApplicationWindow.h:442
GUIApplicationWindow::closeAllWindows
void closeAllWindows()
Definition: GUIApplicationWindow.cpp:1719
GUISUMOViewParent.h
GUIApplicationWindow::myTotalDistance
double myTotalDistance
Definition: GUIApplicationWindow.h:444
GUIApplicationWindow::myShowTimeAsHMS
bool myShowTimeAsHMS
whether to show time as hour:minute:second
Definition: GUIApplicationWindow.h:413
MFXInterThreadEventClient.h
FXLCDLabel.h
GUIApplicationWindow::mySimDelaySpinner
FXRealSpinner * mySimDelaySpinner
Definition: GUIApplicationWindow.h:371
GUIApplicationWindow::myEvents
FXSynchQue< GUIEvent * > myEvents
List of got requests.
Definition: GUIApplicationWindow.h:381
GUIApplicationWindow::onCmdStart
long onCmdStart(FXObject *, FXSelector, void *)
Called on "play".
Definition: GUIApplicationWindow.cpp:1003
GUIApplicationWindow::myEventCondition
FXCondition myEventCondition
the semaphore when waiting for event completion
Definition: GUIApplicationWindow.h:422
GUIApplicationWindow::myMainSplitter
FXSplitter * myMainSplitter
The splitter that divides the main window into vies and the log window.
Definition: GUIApplicationWindow.h:361
GUIApplicationWindow::onCmdAppSettings
long onCmdAppSettings(FXObject *, FXSelector, void *)
Opens the application settings menu (Settings->Application Settings...)
Definition: GUIApplicationWindow.cpp:1175
GUIApplicationWindow::mySettingsMenu
FXMenuPane * mySettingsMenu
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::mySelectLanesMenuCascade
FXMenuCascade * mySelectLanesMenuCascade
the menu cascades
Definition: GUIApplicationWindow.h:352
GUIApplicationWindow::onCmdGaming
long onCmdGaming(FXObject *, FXSelector, void *)
Toggle gaming mode.
Definition: GUIApplicationWindow.cpp:1184
GUIApplicationWindow::dependentBuild
void dependentBuild()
Definition: GUIApplicationWindow.cpp:229
FXSynchQue< GUIEvent * >
GUIApplicationWindow::onCmdNewView
long onCmdNewView(FXObject *, FXSelector, void *)
Called if a new view shall be opened (2D view)
Definition: GUIApplicationWindow.cpp:1300
GUIApplicationWindow::myToolBarDrag5
FXToolBarShell * myToolBarDrag5
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow::myMessageWindow
GUIMessageWindow * myMessageWindow
A window to display messages, warnings and error in.
Definition: GUIApplicationWindow.h:358
GUIApplicationWindow::myToolBar10
FXToolBar * myToolBar10
Definition: GUIApplicationWindow.h:445
RandomDistributor< std::string >
GUIApplicationWindow::onUpdReload
long onUpdReload(FXObject *, FXSelector, void *)
Determines whether reloading is enabled.
Definition: GUIApplicationWindow.cpp:974
GUIParameterTracker
A window which displays the time line of one (or more) value(s)
Definition: GUIParameterTracker.h:49
GUIApplicationWindow::myFileMenu
FXMenuPane * myFileMenu
the submenus
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::getDelay
virtual double getDelay() const
Returns the simulation delay.
Definition: GUIApplicationWindow.h:274
GUIApplicationWindow::myEditMenu
FXMenuPane * myEditMenu
Definition: GUIApplicationWindow.h:347
ValueRetriever.h
GUIApplicationWindow::onCmdOpenEdgeData
long onCmdOpenEdgeData(FXObject *, FXSelector, void *)
Called on menu File->Load EdgeData.
Definition: GUIApplicationWindow.cpp:906
GUIApplicationWindow::handleEvent_Message
void handleEvent_Message(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1551
GUIApplicationWindow::onCmdClose
long onCmdClose(FXObject *, FXSelector, void *)
Called on menu File->Close.
Definition: GUIApplicationWindow.cpp:958
ValueSource.h
GUIMainWindow
Definition: GUIMainWindow.h:47
GUIApplicationWindow::myToolBar5
FXToolBar * myToolBar5
Definition: GUIApplicationWindow.h:390
GUIApplicationWindow::myRecentConfigs
FXRecentFiles myRecentConfigs
List of recent config files.
Definition: GUIApplicationWindow.h:402
GUIApplicationWindow::onUpdStart
long onUpdStart(FXObject *sender, FXSelector, void *ptr)
Determines whether "play" is enabled.
Definition: GUIApplicationWindow.cpp:1103
FXEX::FXLCDLabel
Definition: FXLCDLabel.h:49
GUIApplicationWindow::mySimDelay
double mySimDelay
the simulation delay in milliseconds
Definition: GUIApplicationWindow.h:369
GUIApplicationWindow::onCmdOpenShapes
long onCmdOpenShapes(FXObject *, FXSelector, void *)
Called on menu File->Load Shapes.
Definition: GUIApplicationWindow.cpp:876
GUIEvent
Definition: GUIEvent.h:77
GUIApplicationWindow::myJamSoundTime
double myJamSoundTime
waiting time after which vehicles trigger jam sounds
Definition: GUIApplicationWindow.h:429
GUIApplicationWindow::fillMenuBar
virtual void fillMenuBar()
Builds the menu bar.
Definition: GUIApplicationWindow.cpp:371
GUIApplicationWindow::myLoadThreadEvent
FXEX::FXThreadEvent myLoadThreadEvent
io-event with the load-thread
Definition: GUIApplicationWindow.h:396
GUIApplicationWindow::myToolBarDrag9
FXToolBarShell * myToolBarDrag9
Definition: GUIApplicationWindow.h:446
GUIApplicationWindow::myViewNumber
int myViewNumber
The current view number.
Definition: GUIApplicationWindow.h:341
GUIApplicationWindow::mySelectByPermissions
FXMenuPane * mySelectByPermissions
Definition: GUIApplicationWindow.h:347
GUIApplicationWindow::onCmdEditBreakpoints
long onCmdEditBreakpoints(FXObject *, FXSelector, void *)
Called on menu Edit->Edit Breakpoints.
Definition: GUIApplicationWindow.cpp:768
GUIApplicationWindow::onCmdReload
long onCmdReload(FXObject *, FXSelector, void *)
Called on reload.
Definition: GUIApplicationWindow.cpp:933
GUIApplicationWindow::onCmdOpenConfiguration
long onCmdOpenConfiguration(FXObject *, FXSelector, void *)
Called on menu File->Open Configuration.
Definition: GUIApplicationWindow.cpp:836
GUIApplicationWindow::myMDIMenu
FXMDIMenu * myMDIMenu
The menu used for the MDI-windows.
Definition: GUIApplicationWindow.h:384
GUIApplicationWindow::onCmdStep
long onCmdStep(FXObject *, FXSelector, void *)
Called on "step".
Definition: GUIApplicationWindow.cpp:1029
GUIApplicationWindow::myToolBar4
FXToolBar * myToolBar4
Definition: GUIApplicationWindow.h:390
GUIApplicationWindow::sendBlockingEvent
virtual void sendBlockingEvent(GUIEvent *event)
Sends an event from the application thread to the GUI and waits until it is handled.
Definition: GUIApplicationWindow.cpp:1858
GUIApplicationWindow::onLoadThreadEvent
long onLoadThreadEvent(FXObject *, FXSelector, void *)
Called on an event from the loading thread.
Definition: GUIApplicationWindow.cpp:1333
GUIApplicationWindow::onCmdEditViewScheme
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
Called on menu Edit->Visualization.
Definition: GUIApplicationWindow.cpp:785
GUIApplicationWindow::onRunThreadEvent
long onRunThreadEvent(FXObject *, FXSelector, void *)
Called on an event from the simulation thread.
Definition: GUIApplicationWindow.cpp:1340
GUIApplicationWindow::onCmdListTeleporting
long onCmdListTeleporting(FXObject *, FXSelector, void *)
Toggle listing of teleporting vehicles.
Definition: GUIApplicationWindow.cpp:1293
GUIApplicationWindow::myToolBar7
FXToolBar * myToolBar7
Definition: GUIApplicationWindow.h:445
GUIApplicationWindow::myAmLoading
bool myAmLoading
information whether the gui is currently loading and the load-options shall be greyed out
Definition: GUIApplicationWindow.h:344
FXThreadEvent.h
GUIApplicationWindow::onCmdDelayToggle
long onCmdDelayToggle(FXObject *, FXSelector, void *)
Called on "delay toggle".
Definition: GUIApplicationWindow.cpp:1078
config.h
GUIApplicationWindow::myCollisionSounds
RandomDistributor< std::string > myCollisionSounds
Definition: GUIApplicationWindow.h:427
GUIApplicationWindow::myRunThread
GUIRunThread * myRunThread
the thread that runs simulations
Definition: GUIApplicationWindow.h:335
GUIApplicationWindow::getBuildGLCanvas
FXGLCanvas * getBuildGLCanvas() const
Definition: GUIApplicationWindow.cpp:1708
GUIApplicationWindow::onCmdHelp
long onCmdHelp(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Documentation
Definition: GUIApplicationWindow.cpp:794
GUIApplicationWindow::create
virtual void create()
Creates the main window (required by FOX)
Definition: GUIApplicationWindow.cpp:295
GUIApplicationWindow::myToolBarDrag2
FXToolBarShell * myToolBarDrag2
Definition: GUIApplicationWindow.h:364
GUIApplicationWindow::onCmdQuit
long onCmdQuit(FXObject *, FXSelector, void *)
Called by FOX if the application shall be closed.
Definition: GUIApplicationWindow.cpp:721
GUIApplicationWindow::myTimeLossLabel
FXEX::FXLCDLabel * myTimeLossLabel
Definition: GUIApplicationWindow.h:438
GUIApplicationWindow::onUpdStep
long onUpdStep(FXObject *, FXSelector, void *)
Determines whether "step" is enabled.
Definition: GUIApplicationWindow.cpp:1123
FXEX::FXThreadEvent
Definition: FXThreadEvent.h:106
GUIApplicationWindow::getTrackerInterval
double getTrackerInterval() const
Definition: GUIApplicationWindow.cpp:1768
GUIApplicationWindow::setStatusBarText
void setStatusBarText(const std::string &text)
Definition: GUIApplicationWindow.cpp:1780
GUIApplicationWindow::checkGamingEventsDRT
void checkGamingEventsDRT()
Definition: GUIApplicationWindow.cpp:1642
GUIApplicationWindow::onUpdTraCIStatus
long onUpdTraCIStatus(FXObject *, FXSelector, void *)
Determines whether traci is active.
Definition: GUIApplicationWindow.cpp:1146
GUIApplicationWindow::myToolBar9
FXToolBar * myToolBar9
Definition: GUIApplicationWindow.h:445
GUIApplicationWindow::myToolBar1
FXToolBar * myToolBar1
The application tool bar.
Definition: GUIApplicationWindow.h:390
GUIApplicationWindow::addRecentFile
void addRecentFile(const FX::FXString &f, const bool isNet)
Definition: GUIApplicationWindow.cpp:1788
GUIApplicationWindow::getCurrentSimTime
SUMOTime getCurrentSimTime() const
Definition: GUIApplicationWindow.cpp:1762
GUIApplicationWindow::myToolBarDrag10
FXToolBarShell * myToolBarDrag10
Definition: GUIApplicationWindow.h:446
GUIApplicationWindow::openNewView
GUISUMOAbstractView * openNewView(GUISUMOViewParent::ViewType vt=GUISUMOViewParent::VIEW_2D_OPENGL)
Definition: GUIApplicationWindow.cpp:1674
GUISUMOViewParent::VIEW_2D_OPENGL
plain 2D openGL view (
Definition: GUISUMOViewParent.h:67
GUIApplicationWindow::myLoadThread
GUILoadThread * myLoadThread
the thread that loads simulations
Definition: GUIApplicationWindow.h:332
GUIApplicationWindow::myTotalDistanceLabel
FXEX::FXLCDLabel * myTotalDistanceLabel
Definition: GUIApplicationWindow.h:439
GUIApplicationWindow::myEventMutex
FXMutex myEventMutex
the mutex for the waiting semaphore
Definition: GUIApplicationWindow.h:419
GUIApplicationWindow::myToolBar2
FXToolBar * myToolBar2
Definition: GUIApplicationWindow.h:390
GUIApplicationWindow::handleEvent_SimulationLoaded
void handleEvent_SimulationLoaded(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1384
GUIApplicationWindow::handleEvent_SimulationEnded
void handleEvent_SimulationEnded(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1562