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 /****************************************************************************/
17 // The main window of the SUMO-gui.
18 /****************************************************************************/
19 #ifndef GUIApplicationWindow_h
20 #define GUIApplicationWindow_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
30 #include <iostream>
31 #include <fx.h>
40 #include "GUISUMOViewParent.h"
41 
42 
43 // ===========================================================================
44 // class declarations
45 // ===========================================================================
46 class GUILoadThread;
47 class GUIRunThread;
48 class GUIMessageWindow;
49 class GUIEvent;
52 
53 
54 // ===========================================================================
55 // class definition
56 // ===========================================================================
67  // FOX-declarations
68  FXDECLARE(GUIApplicationWindow)
69 public:
70 
75  GUIApplicationWindow(FXApp* a, const std::string& configPattern);
76 
77 
79  virtual ~GUIApplicationWindow();
80 
81 
84 
86  virtual void create();
87 
89  virtual void detach();
91 
92  void loadOnStartup();
93 
94 
95  void dependentBuild();
96 
97  void setStatusBarText(const std::string& text);
98 
99  void addRecentFile(const FX::FXString& f, const bool isNet);
100 
101  FXGLCanvas* getBuildGLCanvas() const;
102  SUMOTime getCurrentSimTime() const;
103  double getTrackerInterval() const;
104 
105  FXCursor* getDefaultCursor();
106 
107 
108 
109 
112 
113  virtual void eventOccurred();
116  void handleEvent_Message(GUIEvent* e);
119 
120 
121 
124 
126  long onCmdOpenConfiguration(FXObject*, FXSelector, void*);
127 
129  long onCmdOpenNetwork(FXObject*, FXSelector, void*);
130 
132  long onCmdOpenShapes(FXObject*, FXSelector, void*);
133 
135  long onCmdOpenEdgeData(FXObject*, FXSelector, void*);
136 
138  long onCmdReload(FXObject*, FXSelector, void*);
139 
141  long onCmdOpenRecent(FXObject*, FXSelector, void*);
142 
144  long onCmdSaveConfig(FXObject*, FXSelector, void*);
145 
147  long onCmdClose(FXObject*, FXSelector, void*);
148 
152  long onCmdQuit(FXObject*, FXSelector, void*);
153 
155  long onCmdEditChosen(FXObject*, FXSelector, void*);
156 
158  long onCmdEditBreakpoints(FXObject*, FXSelector, void*);
159 
161  long onCmdEditViewScheme(FXObject*, FXSelector, void*);
162 
164  long onCmdEditViewport(FXObject*, FXSelector, void*);
165 
167  long onCmdHelp(FXObject* sender, FXSelector sel, void* ptr);
168 
170  long onCmdNetedit(FXObject*, FXSelector, void*);
171 
173  long onCmdAppSettings(FXObject*, FXSelector, void*);
174 
176  long onCmdGaming(FXObject*, FXSelector, void*);
177 
179  long onCmdFullScreen(FXObject*, FXSelector, void*);
180 
182  long onCmdListInternal(FXObject*, FXSelector, void*);
183 
185  long onCmdListParking(FXObject*, FXSelector, void*);
186 
188  long onCmdListTeleporting(FXObject*, FXSelector, void*);
189 
191  long onCmdAbout(FXObject*, FXSelector, void*);
192 
194  long onCmdStart(FXObject*, FXSelector, void*);
195 
197  long onCmdStop(FXObject*, FXSelector, void*);
198 
200  long onCmdStep(FXObject*, FXSelector, void*);
201 
203  long onCmdSaveState(FXObject*, FXSelector, void*);
204 
206  long onCmdTimeToggle(FXObject*, FXSelector, void*);
207 
209  long onCmdDelayToggle(FXObject*, FXSelector, void*);
210 
212  long onCmdDemandScale(FXObject*, FXSelector, void*);
213 
215  long onCmdNewView(FXObject*, FXSelector, void*);
216 
217 #ifdef HAVE_OSG
218  long onCmdNewOSG(FXObject*, FXSelector, void*);
220 #endif
221 
223  long onUpdOpen(FXObject*, FXSelector, void*);
224 
226  long onUpdReload(FXObject*, FXSelector, void*);
227 
229  long onUpdOpenRecent(FXObject*, FXSelector, void*);
230 
232  long onUpdAddView(FXObject*, FXSelector, void*);
233 
235  long onUpdStart(FXObject* sender, FXSelector, void* ptr);
236 
238  long onUpdStop(FXObject*, FXSelector, void*);
239 
241  long onUpdStep(FXObject*, FXSelector, void*);
242 
244  long onUpdNeedsSimulation(FXObject*, FXSelector, void*);
245 
247  long onUpdTraCIStatus(FXObject*, FXSelector, void*);
248 
250  long onCmdClearMsgWindow(FXObject*, FXSelector, void*);
251 
253  long onCmdLocate(FXObject*, FXSelector, void*);
254 
256  long onCmdShowStats(FXObject*, FXSelector, void*);
257 
259  long onLoadThreadEvent(FXObject*, FXSelector, void*);
260 
262  long onRunThreadEvent(FXObject*, FXSelector, void*);
263 
265  long onClipboardRequest(FXObject* sender, FXSelector sel, void* ptr);
266 
268  long onKeyPress(FXObject* o, FXSelector sel, void* data);
269  long onKeyRelease(FXObject* o, FXSelector sel, void* data);
271 
272 
276  virtual double getDelay() const {
277  return mySimDelay;
278  }
279 
283  virtual void setDelay(double delay) {
284  mySimDelay = delay;
285  }
286 
289  virtual void setBreakpoints(const std::vector<SUMOTime>& breakpoints);
290 
294  virtual void sendBlockingEvent(GUIEvent* event);
295 
296  const std::vector<SUMOTime> retrieveBreakpoints() const;
297 
298 protected:
299  virtual void addToWindowsMenu(FXMenuPane*) { }
300 
301 private:
303  void loadConfigOrNet(const std::string& file, bool isNet);
304 
306  void closeAllWindows();
307 
309  void updateTimeLCD(SUMOTime time);
310 
313 
315  void checkGamingEvents();
316  void checkGamingEventsDRT();
317 
318 protected:
320 
321 protected:
323  virtual void fillMenuBar();
324 
326  virtual void buildToolBars();
327 
328 protected:
330  std::string myName;
331 
334 
337 
339  bool myWasStarted = false;
340 
343 
346 
348  FXMenuPane* myFileMenu = nullptr, *myEditMenu = nullptr, *mySelectByPermissions = nullptr, *mySettingsMenu = nullptr,
350  *myWindowsMenu, *myHelpMenu = nullptr;
351 
353  FXMenuCascade* mySelectLanesMenuCascade = nullptr;
354 
356  std::vector<FXButton*> myStatButtons;
357 
360 
362  FXSplitter* myMainSplitter = nullptr;
363 
365  FXToolBarShell* myToolBarDrag1 = nullptr, *myToolBarDrag2 = nullptr, *myToolBarDrag3 = nullptr,
366  *myToolBarDrag4 = nullptr, *myToolBarDrag5 = nullptr, *myMenuBarDrag = nullptr,
367  *myToolBarDrag8 = nullptr;
368 
370  double mySimDelay = 0.;
371  FXDataTarget* mySimDelayTarget = nullptr;
372  FXRealSpinner* mySimDelaySpinner = nullptr;
373  FXSlider* mySimDelaySlider = nullptr;
374 
376  FXRealSpinner* myDemandScaleSpinner = nullptr;
377 
380 
383 
385  FXMDIMenu* myMDIMenu = nullptr;
386 
388  FXMenuBar* myMenuBar = nullptr;
389 
391  FXToolBar* myToolBar1 = nullptr, *myToolBar2 = nullptr, *myToolBar3 = nullptr, *myToolBar4 = nullptr, *myToolBar5 = nullptr, *myToolBar8 = nullptr;
392 
395 
398 
401 
403  FXRecentFiles myRecentConfigs;
404 
406  FXRecentFiles myRecentNets;
407 
409  std::string myConfigPattern;
410 
412 
415 
418 
420  FXMutex myEventMutex;
421 
423  FXCondition myEventCondition;
424 
432  static std::mt19937 myGamingRNG;
435  bool myTLSGame;
436 
446  FXToolBar* myToolBar6 = nullptr, *myToolBar7 = nullptr, *myToolBar9 = nullptr, *myToolBar10 = nullptr;
447  FXToolBarShell* myToolBarDrag6 = nullptr, *myToolBarDrag7 = nullptr, *myToolBarDrag9 = nullptr, *myToolBarDrag10 = nullptr;
449 
450 };
451 
452 
453 #endif
454 
455 /****************************************************************************/
456 
GUIApplicationWindow::setDelay
virtual void setDelay(double delay)
Sets the delay of the parent application.
Definition: GUIApplicationWindow.h:283
GUIApplicationWindow::myLCDLabel
FXEX::FXLCDLabel * myLCDLabel
the simulation step display
Definition: GUIApplicationWindow.h:394
GUIApplicationWindow::myToolBar3
FXToolBar * myToolBar3
Definition: GUIApplicationWindow.h:391
GUIApplicationWindow::handleEvent_SimulationStep
void handleEvent_SimulationStep(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1551
GUIApplicationWindow::myAlternateSimDelay
double myAlternateSimDelay
The alternate simulation delay in milliseconds for toggling.
Definition: GUIApplicationWindow.h:379
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUIApplicationWindow::onCmdEditChosen
long onCmdEditChosen(FXObject *, FXSelector, void *)
Called on menu Edit->Edit Chosen.
Definition: GUIApplicationWindow.cpp:738
GUIApplicationWindow::myTLSGame
bool myTLSGame
current game mode
Definition: GUIApplicationWindow.h:435
GUIApplicationWindow::onUpdOpen
long onUpdOpen(FXObject *, FXSelector, void *)
Determines whether opening is enabled.
Definition: GUIApplicationWindow.cpp:999
MFXInterThreadEventClient
Definition: MFXInterThreadEventClient.h:27
GUIApplicationWindow::onUpdStop
long onUpdStop(FXObject *, FXSelector, void *)
Determines whether "stop" is enabled.
Definition: GUIApplicationWindow.cpp:1147
GUISUMOAbstractView
Definition: GUISUMOAbstractView.h:72
GUIApplicationWindow::myToolBarDrag4
FXToolBarShell * myToolBarDrag4
Definition: GUIApplicationWindow.h:366
GUIApplicationWindow::hadDependentBuild
bool hadDependentBuild
Definition: GUIApplicationWindow.h:411
GUIApplicationWindow::myJamSounds
RandomDistributor< std::string > myJamSounds
Definition: GUIApplicationWindow.h:427
GUIApplicationWindow::onCmdOpenNetwork
long onCmdOpenNetwork(FXObject *, FXSelector, void *)
Called on menu File->Open Network.
Definition: GUIApplicationWindow.cpp:861
GUIApplicationWindow::mySimDelaySlider
FXSlider * mySimDelaySlider
Definition: GUIApplicationWindow.h:373
GUIApplicationWindow::myWaitingTime
SUMOTime myWaitingTime
Definition: GUIApplicationWindow.h:442
GUIApplicationWindow::onCmdSaveState
long onCmdSaveState(FXObject *, FXSelector, void *)
Called on "save state".
Definition: GUIApplicationWindow.cpp:1080
GUIMessageWindow
A logging window for the gui.
Definition: GUIMessageWindow.h:53
GUIApplicationWindow::onCmdDemandScale
long onCmdDemandScale(FXObject *, FXSelector, void *)
Called on "demand scale".
Definition: GUIApplicationWindow.cpp:1121
GUIApplicationWindow::onUpdNeedsSimulation
long onUpdNeedsSimulation(FXObject *, FXSelector, void *)
Determines whether some buttons which require an active simulation may be shown.
Definition: GUIApplicationWindow.cpp:1167
GUIApplicationWindow::onCmdClearMsgWindow
long onCmdClearMsgWindow(FXObject *, FXSelector, void *)
Called if the message window shall be cleared.
Definition: GUIApplicationWindow.cpp:1130
GUIApplicationWindow::myLocatorMenu
FXMenuPane * myLocatorMenu
Definition: GUIApplicationWindow.h:348
GUIApplicationWindow::myWasStarted
bool myWasStarted
the information whether the simulation was started before
Definition: GUIApplicationWindow.h:339
GUIApplicationWindow::onCmdNetedit
long onCmdNetedit(FXObject *, FXSelector, void *)
Called on menu Edit->Netedit.
Definition: GUIApplicationWindow.cpp:806
GUIApplicationWindow::myWindowsMenu
FXMenuPane * myWindowsMenu
Definition: GUIApplicationWindow.h:349
GUIApplicationWindow::onKeyPress
long onKeyPress(FXObject *o, FXSelector sel, void *data)
handle keys
Definition: GUIApplicationWindow.cpp:1875
GUIApplicationWindow::myDemandScaleSpinner
FXRealSpinner * myDemandScaleSpinner
the demand scale
Definition: GUIApplicationWindow.h:376
GUIApplicationWindow::updateTimeLCD
void updateTimeLCD(SUMOTime time)
updates the simulation time display
Definition: GUIApplicationWindow.cpp:1841
GUIApplicationWindow::onCmdTimeToggle
long onCmdTimeToggle(FXObject *, FXSelector, void *)
Called on "time toggle".
Definition: GUIApplicationWindow.cpp:1102
GUIApplicationWindow::myStatButtons
std::vector< FXButton * > myStatButtons
Buttons showing and running values and triggering statistic windows.
Definition: GUIApplicationWindow.h:356
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
GUIApplicationWindow::loadConfigOrNet
void loadConfigOrNet(const std::string &file, bool isNet)
Definition: GUIApplicationWindow.cpp:1703
GUIRunThread
Definition: GUIRunThread.h:56
GUIApplicationWindow::myPreviousCollisionNumber
int myPreviousCollisionNumber
Definition: GUIApplicationWindow.h:433
GUIApplicationWindow::myEmergencyVehicleLabel
FXEX::FXLCDLabel * myEmergencyVehicleLabel
Definition: GUIApplicationWindow.h:441
GUIApplicationWindow::GUIApplicationWindow
GUIApplicationWindow(FXApp *a, const std::string &configPattern)
Constructor.
Definition: GUIApplicationWindow.cpp:206
GUIApplicationWindow::myEmergencyVehicleCount
SUMOTime myEmergencyVehicleCount
Definition: GUIApplicationWindow.h:444
GUIApplicationWindow::onUpdAddView
long onUpdAddView(FXObject *, FXSelector, void *)
Determines whether adding a view is enabled.
Definition: GUIApplicationWindow.cpp:1027
GUIApplicationWindow::setBreakpoints
virtual void setBreakpoints(const std::vector< SUMOTime > &breakpoints)
Sets the breakpoints of the parent application.
Definition: GUIApplicationWindow.cpp:1910
GUIApplicationWindow::getDefaultCursor
FXCursor * getDefaultCursor()
Definition: GUIApplicationWindow.cpp:1800
GUIApplicationWindow::~GUIApplicationWindow
virtual ~GUIApplicationWindow()
Destructor.
Definition: GUIApplicationWindow.cpp:333
GUIApplicationWindow::onClipboardRequest
long onClipboardRequest(FXObject *sender, FXSelector sel, void *ptr)
Somebody wants our clipped text.
Definition: GUIApplicationWindow.cpp:1364
GUIApplicationWindow::onKeyRelease
long onKeyRelease(FXObject *o, FXSelector sel, void *data)
Definition: GUIApplicationWindow.cpp:1888
GUIApplicationWindow::myToolBar8
FXToolBar * myToolBar8
Definition: GUIApplicationWindow.h:391
GUIApplicationWindow::detach
virtual void detach()
Detaches the tool/menu bar.
Definition: GUIApplicationWindow.cpp:365
FXSynchQue.h
GUIApplicationWindow::onCmdOpenRecent
long onCmdOpenRecent(FXObject *, FXSelector, void *)
Called on opening a recent file.
Definition: GUIApplicationWindow.cpp:953
GUIApplicationWindow::onCmdShowStats
long onCmdShowStats(FXObject *, FXSelector, void *)
Called on commands from the statistic buttons.
Definition: GUIApplicationWindow.cpp:1199
GUIApplicationWindow::onCmdStop
long onCmdStop(FXObject *, FXSelector, void *)
Called on "stop".
Definition: GUIApplicationWindow.cpp:1055
GUIMainWindow.h
GUIApplicationWindow::myToolBar6
FXToolBar * myToolBar6
Definition: GUIApplicationWindow.h:446
GUIApplicationWindow::myHaveNotifiedAboutSimEnd
bool myHaveNotifiedAboutSimEnd
whether the simulation end was already announced
Definition: GUIApplicationWindow.h:417
GUIApplicationWindow::myConfigPattern
std::string myConfigPattern
Input file pattern.
Definition: GUIApplicationWindow.h:409
GUIApplicationWindow::myWaitingTimeLabel
FXEX::FXLCDLabel * myWaitingTimeLabel
performance indicators
Definition: GUIApplicationWindow.h:438
GUIApplicationWindow::onUpdOpenRecent
long onUpdOpenRecent(FXObject *, FXSelector, void *)
Determines whether opening a recent file is enabled.
Definition: GUIApplicationWindow.cpp:1018
GUIApplicationWindow::retrieveBreakpoints
const std::vector< SUMOTime > retrieveBreakpoints() const
retrieve breakpoints if provided by the application
Definition: GUIApplicationWindow.cpp:1919
GUIApplicationWindow::myMenuBar
FXMenuBar * myMenuBar
The application menu bar.
Definition: GUIApplicationWindow.h:388
GUIApplicationWindow::myName
std::string myName
the name of the simulation
Definition: GUIApplicationWindow.h:330
GUIApplicationWindow::myToolBarDrag7
FXToolBarShell * myToolBarDrag7
Definition: GUIApplicationWindow.h:447
GUILoadThread
Definition: GUILoadThread.h:49
RandomDistributor.h
GUIApplicationWindow::myGamingRNG
static std::mt19937 myGamingRNG
A random number generator used to choose a gaming sound.
Definition: GUIApplicationWindow.h:432
GUIApplicationWindow::onCmdListParking
long onCmdListParking(FXObject *, FXSelector, void *)
Toggle listing of parking vehicles.
Definition: GUIApplicationWindow.cpp:1327
GUIApplicationWindow::myMenuBarDrag
FXToolBarShell * myMenuBarDrag
Definition: GUIApplicationWindow.h:366
GUIApplicationWindow::buildToolBars
virtual void buildToolBars()
Builds the tool bar.
Definition: GUIApplicationWindow.cpp:590
GUIApplicationWindow::onCmdFullScreen
long onCmdFullScreen(FXObject *, FXSelector, void *)
Toggle full screen mode.
Definition: GUIApplicationWindow.cpp:1272
GUIApplicationWindow::myToolBarDrag3
FXToolBarShell * myToolBarDrag3
Definition: GUIApplicationWindow.h:365
GUIApplicationWindow::onCmdListInternal
long onCmdListInternal(FXObject *, FXSelector, void *)
Toggle listing of internal structures.
Definition: GUIApplicationWindow.cpp:1320
GUIApplicationWindow::eventOccurred
virtual void eventOccurred()
Definition: GUIApplicationWindow.cpp:1387
GUIApplicationWindow::myToolBarDrag6
FXToolBarShell * myToolBarDrag6
Definition: GUIApplicationWindow.h:447
GUIApplicationWindow::addToWindowsMenu
virtual void addToWindowsMenu(FXMenuPane *)
Definition: GUIApplicationWindow.h:299
GUIApplicationWindow::myControlMenu
FXMenuPane * myControlMenu
Definition: GUIApplicationWindow.h:349
GUIApplicationWindow::checkGamingEvents
void checkGamingEvents()
handles additional game-related events
Definition: GUIApplicationWindow.cpp:1629
GUIApplicationWindow::onCmdAbout
long onCmdAbout(FXObject *, FXSelector, void *)
Shows the about dialog.
Definition: GUIApplicationWindow.cpp:1356
GUIApplicationWindow::myToolBarDrag8
FXToolBarShell * myToolBarDrag8
Definition: GUIApplicationWindow.h:367
GUIApplicationWindow::myRecentNets
FXRecentFiles myRecentNets
List of recent nets.
Definition: GUIApplicationWindow.h:406
GUIApplicationWindow::mySimDelayTarget
FXDataTarget * mySimDelayTarget
Definition: GUIApplicationWindow.h:371
GUIApplicationWindow::onCmdEditViewport
long onCmdEditViewport(FXObject *, FXSelector, void *)
Called on menu Edit->Viewport.
Definition: GUIApplicationWindow.cpp:781
GUIApplicationWindow::onCmdLocate
long onCmdLocate(FXObject *, FXSelector, void *)
Called on menu commands from the Locator menu.
Definition: GUIApplicationWindow.cpp:1187
GUISUMOViewParent::ViewType
ViewType
Available view types.
Definition: GUISUMOViewParent.h:64
GUIApplicationWindow::loadOnStartup
void loadOnStartup()
Definition: GUIApplicationWindow.cpp:1818
GUIApplicationWindow::myToolBarDrag1
FXToolBarShell * myToolBarDrag1
for some menu detaching fun
Definition: GUIApplicationWindow.h:365
GUIApplicationWindow
The main window of the SUMO-gui.
Definition: GUIApplicationWindow.h:65
GUIApplicationWindow::myHelpMenu
FXMenuPane * myHelpMenu
Definition: GUIApplicationWindow.h:350
GUIApplicationWindow::myRunThreadEvent
FXEX::FXThreadEvent myRunThreadEvent
io-event with the run-thread
Definition: GUIApplicationWindow.h:400
GUIApplicationWindow::myTimeLoss
SUMOTime myTimeLoss
Definition: GUIApplicationWindow.h:443
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
GUIApplicationWindow::closeAllWindows
void closeAllWindows()
Definition: GUIApplicationWindow.cpp:1763
GUISUMOViewParent.h
GUIApplicationWindow::myTotalDistance
double myTotalDistance
Definition: GUIApplicationWindow.h:445
GUIApplicationWindow::myShowTimeAsHMS
bool myShowTimeAsHMS
whether to show time as hour:minute:second
Definition: GUIApplicationWindow.h:414
MFXInterThreadEventClient.h
FXLCDLabel.h
GUIApplicationWindow::mySimDelaySpinner
FXRealSpinner * mySimDelaySpinner
Definition: GUIApplicationWindow.h:372
GUIApplicationWindow::myEvents
FXSynchQue< GUIEvent * > myEvents
List of got requests.
Definition: GUIApplicationWindow.h:382
GUIApplicationWindow::onCmdStart
long onCmdStart(FXObject *, FXSelector, void *)
Called on "play".
Definition: GUIApplicationWindow.cpp:1037
GUIApplicationWindow::myEventCondition
FXCondition myEventCondition
the semaphore when waiting for event completion
Definition: GUIApplicationWindow.h:423
GUIApplicationWindow::myMainSplitter
FXSplitter * myMainSplitter
The splitter that divides the main window into views and the log window.
Definition: GUIApplicationWindow.h:362
GUIApplicationWindow::onCmdAppSettings
long onCmdAppSettings(FXObject *, FXSelector, void *)
Opens the application settings menu (Settings->Application Settings...)
Definition: GUIApplicationWindow.cpp:1209
GUIApplicationWindow::mySettingsMenu
FXMenuPane * mySettingsMenu
Definition: GUIApplicationWindow.h:348
GUIApplicationWindow::mySelectLanesMenuCascade
FXMenuCascade * mySelectLanesMenuCascade
the menu cascades
Definition: GUIApplicationWindow.h:353
GUIApplicationWindow::onCmdGaming
long onCmdGaming(FXObject *, FXSelector, void *)
Toggle gaming mode.
Definition: GUIApplicationWindow.cpp:1218
GUIApplicationWindow::dependentBuild
void dependentBuild()
Definition: GUIApplicationWindow.cpp:231
FXSynchQue< GUIEvent * >
GUIApplicationWindow::onCmdNewView
long onCmdNewView(FXObject *, FXSelector, void *)
Called if a new view shall be opened (2D view)
Definition: GUIApplicationWindow.cpp:1340
GUIApplicationWindow::myToolBarDrag5
FXToolBarShell * myToolBarDrag5
Definition: GUIApplicationWindow.h:366
GUIApplicationWindow::myMessageWindow
GUIMessageWindow * myMessageWindow
A window to display messages, warnings and error in.
Definition: GUIApplicationWindow.h:359
GUIApplicationWindow::myToolBar10
FXToolBar * myToolBar10
Definition: GUIApplicationWindow.h:446
RandomDistributor< std::string >
GUIApplicationWindow::onUpdReload
long onUpdReload(FXObject *, FXSelector, void *)
Determines whether reloading is enabled.
Definition: GUIApplicationWindow.cpp:1008
GUIParameterTracker
A window which displays the time line of one (or more) value(s)
Definition: GUIParameterTracker.h:48
GUIApplicationWindow::myFileMenu
FXMenuPane * myFileMenu
the submenus
Definition: GUIApplicationWindow.h:348
GUIApplicationWindow::getDelay
virtual double getDelay() const
Returns the simulation delay.
Definition: GUIApplicationWindow.h:276
GUIApplicationWindow::myEditMenu
FXMenuPane * myEditMenu
Definition: GUIApplicationWindow.h:348
ValueRetriever.h
GUIApplicationWindow::onCmdOpenEdgeData
long onCmdOpenEdgeData(FXObject *, FXSelector, void *)
Called on menu File->Load EdgeData.
Definition: GUIApplicationWindow.cpp:911
GUIApplicationWindow::handleEvent_Message
void handleEvent_Message(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1593
GUIApplicationWindow::onCmdClose
long onCmdClose(FXObject *, FXSelector, void *)
Called on menu File->Close.
Definition: GUIApplicationWindow.cpp:992
ValueSource.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIApplicationWindow::myToolBar5
FXToolBar * myToolBar5
Definition: GUIApplicationWindow.h:391
GUIApplicationWindow::myRecentConfigs
FXRecentFiles myRecentConfigs
List of recent config files.
Definition: GUIApplicationWindow.h:403
GUIApplicationWindow::onUpdStart
long onUpdStart(FXObject *sender, FXSelector, void *ptr)
Determines whether "play" is enabled.
Definition: GUIApplicationWindow.cpp:1137
FXEX::FXLCDLabel
Definition: FXLCDLabel.h:48
GUIApplicationWindow::mySimDelay
double mySimDelay
the simulation delay in milliseconds
Definition: GUIApplicationWindow.h:370
GUIApplicationWindow::onCmdOpenShapes
long onCmdOpenShapes(FXObject *, FXSelector, void *)
Called on menu File->Load Shapes.
Definition: GUIApplicationWindow.cpp:881
GUIEvent
Definition: GUIEvent.h:76
GUIApplicationWindow::myJamSoundTime
double myJamSoundTime
waiting time after which vehicles trigger jam sounds
Definition: GUIApplicationWindow.h:430
GUIApplicationWindow::fillMenuBar
virtual void fillMenuBar()
Builds the menu bar.
Definition: GUIApplicationWindow.cpp:373
GUIApplicationWindow::myLoadThreadEvent
FXEX::FXThreadEvent myLoadThreadEvent
io-event with the load-thread
Definition: GUIApplicationWindow.h:397
GUIApplicationWindow::myToolBarDrag9
FXToolBarShell * myToolBarDrag9
Definition: GUIApplicationWindow.h:447
GUIApplicationWindow::myViewNumber
int myViewNumber
The current view number.
Definition: GUIApplicationWindow.h:342
GUIApplicationWindow::mySelectByPermissions
FXMenuPane * mySelectByPermissions
Definition: GUIApplicationWindow.h:348
GUIApplicationWindow::onCmdEditBreakpoints
long onCmdEditBreakpoints(FXObject *, FXSelector, void *)
Called on menu Edit->Edit Breakpoints.
Definition: GUIApplicationWindow.cpp:773
GUIApplicationWindow::onCmdReload
long onCmdReload(FXObject *, FXSelector, void *)
Called on reload.
Definition: GUIApplicationWindow.cpp:938
GUIApplicationWindow::onCmdOpenConfiguration
long onCmdOpenConfiguration(FXObject *, FXSelector, void *)
Called on menu File->Open Configuration.
Definition: GUIApplicationWindow.cpp:841
GUIApplicationWindow::myMDIMenu
FXMDIMenu * myMDIMenu
The menu used for the MDI-windows.
Definition: GUIApplicationWindow.h:385
GUIApplicationWindow::onCmdStep
long onCmdStep(FXObject *, FXSelector, void *)
Called on "step".
Definition: GUIApplicationWindow.cpp:1063
GUIApplicationWindow::myToolBar4
FXToolBar * myToolBar4
Definition: GUIApplicationWindow.h:391
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:1901
GUIApplicationWindow::onLoadThreadEvent
long onLoadThreadEvent(FXObject *, FXSelector, void *)
Called on an event from the loading thread.
Definition: GUIApplicationWindow.cpp:1373
GUIApplicationWindow::onCmdEditViewScheme
long onCmdEditViewScheme(FXObject *, FXSelector, void *)
Called on menu Edit->Visualization.
Definition: GUIApplicationWindow.cpp:790
GUIApplicationWindow::onRunThreadEvent
long onRunThreadEvent(FXObject *, FXSelector, void *)
Called on an event from the simulation thread.
Definition: GUIApplicationWindow.cpp:1380
GUIApplicationWindow::onCmdListTeleporting
long onCmdListTeleporting(FXObject *, FXSelector, void *)
Toggle listing of teleporting vehicles.
Definition: GUIApplicationWindow.cpp:1333
GUIApplicationWindow::myToolBar7
FXToolBar * myToolBar7
Definition: GUIApplicationWindow.h:446
GUIApplicationWindow::myAmLoading
bool myAmLoading
information whether the gui is currently loading and the load-options shall be greyed out
Definition: GUIApplicationWindow.h:345
FXThreadEvent.h
GUIApplicationWindow::onCmdDelayToggle
long onCmdDelayToggle(FXObject *, FXSelector, void *)
Called on "delay toggle".
Definition: GUIApplicationWindow.cpp:1112
config.h
GUIApplicationWindow::myCollisionSounds
RandomDistributor< std::string > myCollisionSounds
Definition: GUIApplicationWindow.h:428
GUIApplicationWindow::myRunThread
GUIRunThread * myRunThread
the thread that runs simulations
Definition: GUIApplicationWindow.h:336
GUIApplicationWindow::getBuildGLCanvas
FXGLCanvas * getBuildGLCanvas() const
Definition: GUIApplicationWindow.cpp:1752
GUIApplicationWindow::onCmdHelp
long onCmdHelp(FXObject *sender, FXSelector sel, void *ptr)
called if the user selects help->Documentation
Definition: GUIApplicationWindow.cpp:799
GUIApplicationWindow::create
virtual void create()
Creates the main window (required by FOX)
Definition: GUIApplicationWindow.cpp:297
GUIApplicationWindow::myToolBarDrag2
FXToolBarShell * myToolBarDrag2
Definition: GUIApplicationWindow.h:365
GUIApplicationWindow::onCmdQuit
long onCmdQuit(FXObject *, FXSelector, void *)
Called by FOX if the application shall be closed.
Definition: GUIApplicationWindow.cpp:726
GUIApplicationWindow::myTimeLossLabel
FXEX::FXLCDLabel * myTimeLossLabel
Definition: GUIApplicationWindow.h:439
GUIApplicationWindow::onUpdStep
long onUpdStep(FXObject *, FXSelector, void *)
Determines whether "step" is enabled.
Definition: GUIApplicationWindow.cpp:1157
FXEX::FXThreadEvent
Definition: FXThreadEvent.h:105
GUIApplicationWindow::getTrackerInterval
double getTrackerInterval() const
Definition: GUIApplicationWindow.cpp:1812
GUIApplicationWindow::setStatusBarText
void setStatusBarText(const std::string &text)
Definition: GUIApplicationWindow.cpp:1824
GUIApplicationWindow::checkGamingEventsDRT
void checkGamingEventsDRT()
Definition: GUIApplicationWindow.cpp:1684
GUIApplicationWindow::onUpdTraCIStatus
long onUpdTraCIStatus(FXObject *, FXSelector, void *)
Determines whether traci is active.
Definition: GUIApplicationWindow.cpp:1180
GUIApplicationWindow::myToolBar9
FXToolBar * myToolBar9
Definition: GUIApplicationWindow.h:446
GUIApplicationWindow::myToolBar1
FXToolBar * myToolBar1
The application tool bar.
Definition: GUIApplicationWindow.h:391
GUIApplicationWindow::addRecentFile
void addRecentFile(const FX::FXString &f, const bool isNet)
Definition: GUIApplicationWindow.cpp:1831
GUIApplicationWindow::getCurrentSimTime
SUMOTime getCurrentSimTime() const
Definition: GUIApplicationWindow.cpp:1806
GUIApplicationWindow::onCmdSaveConfig
long onCmdSaveConfig(FXObject *, FXSelector, void *)
Called on menu File->Close.
Definition: GUIApplicationWindow.cpp:965
GUIApplicationWindow::myToolBarDrag10
FXToolBarShell * myToolBarDrag10
Definition: GUIApplicationWindow.h:447
GUIApplicationWindow::openNewView
GUISUMOAbstractView * openNewView(GUISUMOViewParent::ViewType vt=GUISUMOViewParent::VIEW_2D_OPENGL)
Definition: GUIApplicationWindow.cpp:1718
GUISUMOViewParent::VIEW_2D_OPENGL
plain 2D openGL view (
Definition: GUISUMOViewParent.h:66
GUIApplicationWindow::myLoadThread
GUILoadThread * myLoadThread
the thread that loads simulations
Definition: GUIApplicationWindow.h:333
GUIApplicationWindow::myTotalDistanceLabel
FXEX::FXLCDLabel * myTotalDistanceLabel
Definition: GUIApplicationWindow.h:440
GUIApplicationWindow::myEventMutex
FXMutex myEventMutex
the mutex for the waiting semaphore
Definition: GUIApplicationWindow.h:420
GUIApplicationWindow::myToolBar2
FXToolBar * myToolBar2
Definition: GUIApplicationWindow.h:391
GUIApplicationWindow::handleEvent_SimulationLoaded
void handleEvent_SimulationLoaded(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1424
GUIApplicationWindow::handleEvent_SimulationEnded
void handleEvent_SimulationEnded(GUIEvent *e)
Definition: GUIApplicationWindow.cpp:1604