Eclipse SUMO - Simulation of Urban MObility
GUIApplicationWindow Class Reference

The main window of the SUMO-gui. More...

#include <GUIApplicationWindow.h>

Inheritance diagram for GUIApplicationWindow:
Collaboration diagram for GUIApplicationWindow:

Public Member Functions

void addChild (FXMainWindow *child)
 
void addGLChild (GUIGlChildWindow *child)
 Adds a further child window to the list. More...
 
void addRecentFile (const FX::FXString &f, const bool isNet)
 
void dependentBuild ()
 
GUISUMOAbstractViewgetActiveView () const
 get the active view or 0 More...
 
FXFont * getBoldFont ()
 
FXGLCanvas * getBuildGLCanvas () const
 
FXLabel & getCartesianLabel ()
 
SUMOTime getCurrentSimTime () const
 
FXCursor * getDefaultCursor ()
 
virtual double getDelay () const
 Returns the simulation delay. More...
 
FXLabel & getGeoLabel ()
 
FXGLVisual * getGLVisual () const
 
double getTrackerInterval () const
 
GUIGlChildWindowgetViewByID (const std::string &id) const
 
std::vector< std::string > getViewIDs () const
 
const std::vector< GUIGlChildWindow * > & getViews () const
 
 GUIApplicationWindow (FXApp *a, const std::string &configPattern)
 Constructor. More...
 
bool isFullScreen ()
 
bool isGaming () const
 return whether the gui is in gaming mode More...
 
bool listInternal () const
 return whether to list internal structures More...
 
bool listParking () const
 return whether to list parking vehicles More...
 
bool listTeleporting () const
 return whether to list teleporting vehicles More...
 
void loadOnStartup ()
 
void removeChild (FXMainWindow *child)
 
void removeGLChild (GUIGlChildWindow *child)
 removes the given child window from the list More...
 
const std::vector< SUMOTimeretrieveBreakpoints () const
 retrieve breakpoints if provided by the application More...
 
virtual void sendBlockingEvent (GUIEvent *event)
 Sends an event from the application thread to the GUI and waits until it is handled. More...
 
virtual void setBreakpoints (const std::vector< SUMOTime > &breakpoints)
 Sets the breakpoints of the parent application. More...
 
virtual void setDelay (double delay)
 Sets the delay of the parent application. More...
 
void setStatusBarText (const std::string &text)
 
void updateChildren ()
 
virtual ~GUIApplicationWindow ()
 Destructor. More...
 
FOX-interactions

{

virtual void create ()
 Creates the main window (required by FOX) More...
 
virtual void detach ()
 Detaches the tool/menu bar. More...
 
Inter-thread event handling
virtual void eventOccurred ()
 
void handleEvent_SimulationLoaded (GUIEvent *e)
 
void handleEvent_SimulationStep (GUIEvent *e)
 
void handleEvent_Message (GUIEvent *e)
 
void handleEvent_SimulationEnded (GUIEvent *e)
 
FOX-callbacks
long onCmdOpenConfiguration (FXObject *, FXSelector, void *)
 Called on menu File->Open Configuration. More...
 
long onCmdOpenNetwork (FXObject *, FXSelector, void *)
 Called on menu File->Open Network. More...
 
long onCmdOpenShapes (FXObject *, FXSelector, void *)
 Called on menu File->Load Shapes. More...
 
long onCmdOpenEdgeData (FXObject *, FXSelector, void *)
 Called on menu File->Load EdgeData. More...
 
long onCmdReload (FXObject *, FXSelector, void *)
 Called on reload. More...
 
long onCmdOpenRecent (FXObject *, FXSelector, void *)
 Called on opening a recent file. More...
 
long onCmdSaveConfig (FXObject *, FXSelector, void *)
 Called on menu File->Close. More...
 
long onCmdClose (FXObject *, FXSelector, void *)
 Called on menu File->Close. More...
 
long onCmdQuit (FXObject *, FXSelector, void *)
 Called by FOX if the application shall be closed. More...
 
long onCmdEditChosen (FXObject *, FXSelector, void *)
 Called on menu Edit->Edit Chosen. More...
 
long onCmdEditBreakpoints (FXObject *, FXSelector, void *)
 Called on menu Edit->Edit Breakpoints. More...
 
long onCmdEditViewScheme (FXObject *, FXSelector, void *)
 Called on menu Edit->Visualization. More...
 
long onCmdEditViewport (FXObject *, FXSelector, void *)
 Called on menu Edit->Viewport. More...
 
long onCmdHelp (FXObject *sender, FXSelector sel, void *ptr)
 called if the user selects help->Documentation More...
 
long onCmdNetedit (FXObject *, FXSelector, void *)
 Called on menu Edit->Netedit. More...
 
long onCmdAppSettings (FXObject *, FXSelector, void *)
 Opens the application settings menu (Settings->Application Settings...) More...
 
long onCmdGaming (FXObject *, FXSelector, void *)
 Toggle gaming mode. More...
 
long onCmdFullScreen (FXObject *, FXSelector, void *)
 Toggle full screen mode. More...
 
long onCmdListInternal (FXObject *, FXSelector, void *)
 Toggle listing of internal structures. More...
 
long onCmdListParking (FXObject *, FXSelector, void *)
 Toggle listing of parking vehicles. More...
 
long onCmdListTeleporting (FXObject *, FXSelector, void *)
 Toggle listing of teleporting vehicles. More...
 
long onCmdAbout (FXObject *, FXSelector, void *)
 Shows the about dialog. More...
 
long onCmdStart (FXObject *, FXSelector, void *)
 Called on "play". More...
 
long onCmdStop (FXObject *, FXSelector, void *)
 Called on "stop". More...
 
long onCmdStep (FXObject *, FXSelector, void *)
 Called on "step". More...
 
long onCmdSaveState (FXObject *, FXSelector, void *)
 Called on "save state". More...
 
long onCmdTimeToggle (FXObject *, FXSelector, void *)
 Called on "time toggle". More...
 
long onCmdDelayToggle (FXObject *, FXSelector, void *)
 Called on "delay toggle". More...
 
long onCmdDemandScale (FXObject *, FXSelector, void *)
 Called on "demand scale". More...
 
long onCmdNewView (FXObject *, FXSelector, void *)
 Called if a new view shall be opened (2D view) More...
 
long onUpdOpen (FXObject *, FXSelector, void *)
 Determines whether opening is enabled. More...
 
long onUpdReload (FXObject *, FXSelector, void *)
 Determines whether reloading is enabled. More...
 
long onUpdOpenRecent (FXObject *, FXSelector, void *)
 Determines whether opening a recent file is enabled. More...
 
long onUpdAddView (FXObject *, FXSelector, void *)
 Determines whether adding a view is enabled. More...
 
long onUpdStart (FXObject *sender, FXSelector, void *ptr)
 Determines whether "play" is enabled. More...
 
long onUpdStop (FXObject *, FXSelector, void *)
 Determines whether "stop" is enabled. More...
 
long onUpdStep (FXObject *, FXSelector, void *)
 Determines whether "step" is enabled. More...
 
long onUpdNeedsSimulation (FXObject *, FXSelector, void *)
 Determines whether some buttons which require an active simulation may be shown. More...
 
long onUpdTraCIStatus (FXObject *, FXSelector, void *)
 Determines whether traci is active. More...
 
long onCmdClearMsgWindow (FXObject *, FXSelector, void *)
 Called if the message window shall be cleared. More...
 
long onCmdLocate (FXObject *, FXSelector, void *)
 Called on menu commands from the Locator menu. More...
 
long onCmdShowStats (FXObject *, FXSelector, void *)
 Called on commands from the statistic buttons. More...
 
long onLoadThreadEvent (FXObject *, FXSelector, void *)
 Called on an event from the loading thread. More...
 
long onRunThreadEvent (FXObject *, FXSelector, void *)
 Called on an event from the simulation thread. More...
 
long onClipboardRequest (FXObject *sender, FXSelector sel, void *ptr)
 Somebody wants our clipped text. More...
 
long onKeyPress (FXObject *o, FXSelector sel, void *data)
 handle keys More...
 
long onKeyRelease (FXObject *o, FXSelector sel, void *data)
 

Static Public Member Functions

static GUIMainWindowgetInstance ()
 

Protected Member Functions

virtual void addToWindowsMenu (FXMenuPane *)
 
virtual void buildToolBars ()
 Builds the tool bar. More...
 
virtual void fillMenuBar ()
 Builds the menu bar. More...
 
void setWindowSizeAndPos ()
 perform initial window positioning and sizing according to user options / previous call More...
 
void storeWindowSizeAndPos ()
 record window position and size in registry More...
 

Protected Attributes

bool hadDependentBuild
 
double myAlternateSimDelay
 The alternate simulation delay in milliseconds for toggling. More...
 
bool myAmFullScreen
 whether to show the window in full screen mode More...
 
bool myAmGaming
 information whether the gui is currently in gaming mode More...
 
bool myAmLoading
 information whether the gui is currently loading and the load-options shall be greyed out More...
 
FXFont * myBoldFont
 Font used for popup-menu titles. More...
 
FXDockSite * myBottomDock
 
FXLabel * myCartesianCoordinate
 Labels for the current cartesian and geo-coordinate. More...
 
FXHorizontalFrame * myCartesianFrame
 
std::string myConfigPattern
 Input file pattern. More...
 
FXMenuPane * myControlMenu = nullptr
 
FXRealSpinner * myDemandScaleSpinner = nullptr
 the demand scale More...
 
FXMenuPane * myEditMenu = nullptr
 
FXCondition myEventCondition
 the semaphore when waiting for event completion More...
 
FXMutex myEventMutex
 the mutex for the waiting semaphore More...
 
FXSynchQue< GUIEvent * > myEvents
 List of got requests. More...
 
FXMenuPane * myFileMenu = nullptr
 the submenus More...
 
FXLabel * myGeoCoordinate
 
FXHorizontalFrame * myGeoFrame
 
FXGLVisual * myGLVisual
 The gl-visual used. More...
 
std::vector< GUIGlChildWindow * > myGLWindows
 
bool myHaveNotifiedAboutSimEnd
 whether the simulation end was already announced More...
 
FXMenuPane * myHelpMenu = nullptr
 
FXEX::FXLCDLabelmyLCDLabel = nullptr
 the simulation step display More...
 
FXDockSite * myLeftDock
 
bool myListInternal
 information whether the locator should list internal structures More...
 
bool myListParking
 information whether the locator should list parking vehicles More...
 
bool myListTeleporting
 information whether the locator should list teleporting vehicles More...
 
GUILoadThreadmyLoadThread
 the thread that loads simulations More...
 
FXEX::FXThreadEvent myLoadThreadEvent
 io-event with the load-thread More...
 
FXMenuPane * myLocatorMenu
 
FXSplitter * myMainSplitter = nullptr
 The splitter that divides the main window into views and the log window. More...
 
FXMDIClient * myMDIClient
 The multi view panel. More...
 
FXMDIMenu * myMDIMenu = nullptr
 The menu used for the MDI-windows. More...
 
FXMenuBar * myMenuBar = nullptr
 The application menu bar. More...
 
FXToolBarShell * myMenuBarDrag = nullptr
 
GUIMessageWindowmyMessageWindow = nullptr
 A window to display messages, warnings and error in. More...
 
std::string myName
 the name of the simulation More...
 
FXRecentFiles myRecentConfigs
 List of recent config files. More...
 
FXRecentFiles myRecentNets
 List of recent nets. More...
 
FXDockSite * myRightDock
 
GUIRunThreadmyRunThread
 the thread that runs simulations More...
 
FXEX::FXThreadEvent myRunThreadEvent
 io-event with the run-thread More...
 
FXMenuPane * mySelectByPermissions = nullptr
 
FXMenuCascade * mySelectLanesMenuCascade = nullptr
 the menu cascades More...
 
FXMenuPane * mySettingsMenu = nullptr
 
bool myShowTimeAsHMS
 whether to show time as hour:minute:second More...
 
double mySimDelay = 0.
 the simulation delay in milliseconds More...
 
FXSlider * mySimDelaySlider = nullptr
 
FXRealSpinner * mySimDelaySpinner = nullptr
 
FXDataTarget * mySimDelayTarget = nullptr
 
std::vector< FXButton * > myStatButtons
 Buttons showing and running values and triggering statistic windows. More...
 
FXStatusBar * myStatusbar
 The status bar. More...
 
FXToolBar * myToolBar1 = nullptr
 The application tool bar. More...
 
FXToolBar * myToolBar2 = nullptr
 
FXToolBar * myToolBar3 = nullptr
 
FXToolBar * myToolBar4 = nullptr
 
FXToolBar * myToolBar5 = nullptr
 
FXToolBar * myToolBar8 = nullptr
 
FXToolBarShell * myToolBarDrag1 = nullptr
 for some menu detaching fun More...
 
FXToolBarShell * myToolBarDrag2 = nullptr
 
FXToolBarShell * myToolBarDrag3 = nullptr
 
FXToolBarShell * myToolBarDrag4 = nullptr
 
FXToolBarShell * myToolBarDrag5 = nullptr
 
FXToolBarShell * myToolBarDrag8 = nullptr
 
FXDockSite * myTopDock
 
FXMutex myTrackerLock
 A lock to make the removal and addition of trackers secure. More...
 
std::vector< FXMainWindow * > myTrackerWindows
 
int myViewNumber
 The current view number. More...
 
bool myWasStarted = false
 the information whether the simulation was started before More...
 
FXMenuPane * myWindowsMenu
 

Static Protected Attributes

static GUIMainWindowmyInstance = nullptr
 the singleton window instance More...
 

Private Member Functions

void checkGamingEvents ()
 handles additional game-related events More...
 
void checkGamingEventsDRT ()
 
void closeAllWindows ()
 
void loadConfigOrNet (const std::string &file, bool isNet)
 
GUISUMOAbstractViewopenNewView (GUISUMOViewParent::ViewType vt=GUISUMOViewParent::VIEW_2D_OPENGL)
 
void updateTimeLCD (SUMOTime time)
 updates the simulation time display More...
 

game related things

{

RandomDistributor< std::string > myJamSounds
 
RandomDistributor< std::string > myCollisionSounds
 
double myJamSoundTime
 waiting time after which vehicles trigger jam sounds More...
 
int myPreviousCollisionNumber
 
bool myTLSGame
 current game mode More...
 
FXEX::FXLCDLabelmyWaitingTimeLabel = nullptr
 performance indicators More...
 
FXEX::FXLCDLabelmyTimeLossLabel = nullptr
 
FXEX::FXLCDLabelmyTotalDistanceLabel = nullptr
 
FXEX::FXLCDLabelmyEmergencyVehicleLabel = nullptr
 
SUMOTime myWaitingTime
 
SUMOTime myTimeLoss
 
SUMOTime myEmergencyVehicleCount
 
double myTotalDistance
 
FXToolBar * myToolBar6 = nullptr
 
FXToolBar * myToolBar7 = nullptr
 
FXToolBar * myToolBar9 = nullptr
 
FXToolBar * myToolBar10 = nullptr
 
FXToolBarShell * myToolBarDrag6 = nullptr
 
FXToolBarShell * myToolBarDrag7 = nullptr
 
FXToolBarShell * myToolBarDrag9 = nullptr
 
FXToolBarShell * myToolBarDrag10 = nullptr
 
static std::mt19937 myGamingRNG
 A random number generator used to choose a gaming sound. More...
 

Detailed Description

The main window of the SUMO-gui.

Beside views on the simulation, shown within a MDI-window, the main window may also have some further views (children) assigned which are stored within a separate list.

Definition at line 65 of file GUIApplicationWindow.h.

Constructor & Destructor Documentation

◆ GUIApplicationWindow()

GUIApplicationWindow::GUIApplicationWindow ( FXApp *  a,
const std::string &  configPattern 
)

Constructor.

Parameters
[in]aThe FOX application
[in]configPatternThe pattern used for loading configurations

Definition at line 206 of file GUIApplicationWindow.cpp.

References GUICursorSubSys::initCursors(), and GUIIconSubSys::initIcons().

◆ ~GUIApplicationWindow()

Member Function Documentation

◆ addChild()

void GUIMainWindow::addChild ( FXMainWindow *  child)
inherited

◆ addGLChild()

void GUIMainWindow::addGLChild ( GUIGlChildWindow child)
inherited

Adds a further child window to the list.

Definition at line 92 of file GUIMainWindow.cpp.

References GUIMainWindow::myGLWindows.

◆ addRecentFile()

void GUIApplicationWindow::addRecentFile ( const FX::FXString &  f,
const bool  isNet 
)

Definition at line 1831 of file GUIApplicationWindow.cpp.

References myRecentConfigs, and myRecentNets.

Referenced by GUILoadThread::run().

◆ addToWindowsMenu()

virtual void GUIApplicationWindow::addToWindowsMenu ( FXMenuPane *  )
inlineprotectedvirtual

Definition at line 299 of file GUIApplicationWindow.h.

Referenced by fillMenuBar().

◆ buildToolBars()

◆ checkGamingEvents()

◆ checkGamingEventsDRT()

◆ closeAllWindows()

◆ create()

◆ dependentBuild()

◆ detach()

void GUIApplicationWindow::detach ( )
virtual

Detaches the tool/menu bar.

Definition at line 365 of file GUIApplicationWindow.cpp.

References myMenuBarDrag, and myToolBarDrag1.

◆ eventOccurred()

◆ fillMenuBar()

void GUIApplicationWindow::fillMenuBar ( )
protectedvirtual

Builds the menu bar.

Definition at line 373 of file GUIApplicationWindow.cpp.

References addToWindowsMenu(), GUIShortcutsSubSys::buildSUMOAccelerators(), GUIIconSubSys::getIcon(), MSGlobals::gUseMesoSim, ICON_CLOSE, ICON_FLAG, ICON_LOCATEADD, ICON_LOCATEEDGE, ICON_LOCATEJUNCTION, ICON_LOCATEPERSON, ICON_LOCATEPOI, ICON_LOCATEPOLY, ICON_LOCATETLS, ICON_LOCATEVEHICLE, ICON_NETEDIT_MINI, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_OPEN_SHAPES, ICON_RELOAD, ICON_SAVE, ICON_START, ICON_STEP, ICON_STOP, ICON_SUMO_MINI, ICON_WINDOWS_CASCADE, ICON_WINDOWS_TILE_HORI, ICON_WINDOWS_TILE_VERT, GUIMainWindow::listParking(), MID_APPSETTINGS, MID_CLEARMESSAGEWINDOW, MID_EDITCHOSEN, MID_HOTKEY_CTRL_A_STARTSIMULATION_OPENADDITIONALS, MID_HOTKEY_CTRL_B_EDITBREAKPOINT, MID_HOTKEY_CTRL_D_SINGLESIMULATIONSTEP_OPENDEMAND, MID_HOTKEY_CTRL_F_FULSCREENMODE, MID_HOTKEY_CTRL_G_GAMINGMODE_TOOGLEGRID, MID_HOTKEY_CTRL_I_EDITVIEWPORT, MID_HOTKEY_CTRL_P, MID_HOTKEY_CTRL_Q_CLOSE, MID_HOTKEY_CTRL_R_RELOAD, MID_HOTKEY_CTRL_S_STOPSIMULATION_SAVENETWORK, MID_HOTKEY_CTRL_SHIFT_S_SAVENETWORK_AS, MID_HOTKEY_CTRL_W_CLOSESIMULATION, MID_HOTKEY_F1_ONLINEDOCUMENTATION, MID_HOTKEY_F2_ABOUT, MID_HOTKEY_F9_EDIT_VIEWSCHEME, MID_LISTINTERNAL, MID_LISTPARKING, MID_LISTTELEPORTING, MID_LOCATEADD, MID_LOCATEEDGE, MID_LOCATEJUNCTION, MID_LOCATEPERSON, MID_LOCATEPOI, MID_LOCATEPOLY, MID_LOCATETLS, MID_LOCATEVEHICLE, MID_NETEDIT, MID_OPEN_CONFIG, MID_OPEN_EDGEDATA, MID_OPEN_NETWORK, MID_RECENTFILE, MID_SIMSAVE, myControlMenu, myEditMenu, myFileMenu, myHelpMenu, GUIMainWindow::myListParking, myLocatorMenu, GUIMainWindow::myMDIClient, myMenuBar, myMessageWindow, myRecentConfigs, myRecentNets, mySelectByPermissions, mySelectLanesMenuCascade, mySettingsMenu, GUIMainWindow::myStatusbar, myToolBar3, myToolBar4, myWindowsMenu, and SumoVehicleClassStrings.

Referenced by dependentBuild().

◆ getActiveView()

GUISUMOAbstractView * GUIMainWindow::getActiveView ( ) const
inherited

get the active view or 0

Definition at line 191 of file GUIMainWindow.cpp.

References GUIGlChildWindow::getView(), and GUIMainWindow::myMDIClient.

Referenced by GUIVehicle::drawOutsideNetwork().

◆ getBoldFont()

FXFont * GUIMainWindow::getBoldFont ( )
inherited

Definition at line 145 of file GUIMainWindow.cpp.

References GUIMainWindow::myBoldFont.

Referenced by GUIGlObject::buildPopupHeader().

◆ getBuildGLCanvas()

FXGLCanvas * GUIApplicationWindow::getBuildGLCanvas ( ) const
virtual

Implements GUIMainWindow.

Definition at line 1752 of file GUIApplicationWindow.cpp.

References GUIGlChildWindow::getBuildGLCanvas(), and GUIMainWindow::myMDIClient.

Referenced by openNewView().

◆ getCartesianLabel()

FXLabel & GUIMainWindow::getCartesianLabel ( )
inherited

◆ getCurrentSimTime()

SUMOTime GUIApplicationWindow::getCurrentSimTime ( ) const
virtual

◆ getDefaultCursor()

FXCursor * GUIApplicationWindow::getDefaultCursor ( )

Definition at line 1800 of file GUIApplicationWindow.cpp.

◆ getDelay()

virtual double GUIApplicationWindow::getDelay ( ) const
inlinevirtual

Returns the simulation delay.

Returns
delay in milliseconds

Reimplemented from GUIMainWindow.

Definition at line 276 of file GUIApplicationWindow.h.

References mySimDelay.

◆ getGeoLabel()

FXLabel & GUIMainWindow::getGeoLabel ( )
inherited

◆ getGLVisual()

FXGLVisual * GUIMainWindow::getGLVisual ( ) const
inherited

Definition at line 164 of file GUIMainWindow.cpp.

References GUIMainWindow::myGLVisual.

Referenced by GUISUMOViewParent::init().

◆ getInstance()

◆ getTrackerInterval()

double GUIApplicationWindow::getTrackerInterval ( ) const
virtual

Implements GUIMainWindow.

Definition at line 1812 of file GUIApplicationWindow.cpp.

References GUIGlobals::gTrackerInterval.

◆ getViewByID()

GUIGlChildWindow * GUIMainWindow::getViewByID ( const std::string &  id) const
inherited

Definition at line 134 of file GUIMainWindow.cpp.

References GUIMainWindow::myGLWindows.

Referenced by TraCIServerAPI_GUI::getNamedView().

◆ getViewIDs()

std::vector< std::string > GUIMainWindow::getViewIDs ( ) const
inherited

Definition at line 124 of file GUIMainWindow.cpp.

References GUIMainWindow::myGLWindows.

Referenced by TraCIServerAPI_GUI::processGet().

◆ getViews()

const std::vector<GUIGlChildWindow*>& GUIMainWindow::getViews ( ) const
inlineinherited

Definition at line 60 of file GUIMainWindow.h.

References GUIMainWindow::myGLWindows.

Referenced by GUIRunThread::waitForSnapshots().

◆ handleEvent_Message()

void GUIApplicationWindow::handleEvent_Message ( GUIEvent e)

◆ handleEvent_SimulationEnded()

◆ handleEvent_SimulationLoaded()

void GUIApplicationWindow::handleEvent_SimulationLoaded ( GUIEvent e)

Definition at line 1424 of file GUIApplicationWindow.cpp.

References GUISUMOAbstractView::addDecals(), GUISettingsHandler::addSettings(), GUISettingsHandler::applyViewport(), closeAllWindows(), GUIRunThread::getBreakpointLock(), GUIRunThread::getBreakpoints(), GUISettingsHandler::getBreakpoints(), GUISettingsHandler::getDecals(), GUISettingsHandler::getDelay(), GUISettingsHandler::getEventDistribution(), GUISettingsHandler::getJamSoundTime(), OptionsCont::getOptions(), MFXUtils::getTitleText(), GUISettingsHandler::getViewType(), GUIGlobals::gQuitOnEnd, GUIGlobals::gRunAfterLoad, GUIRunThread::init(), OptionsCont::isDefault(), myAmLoading, GUIEvent_SimulationLoaded::myBegin, myCollisionSounds, myDemandScaleSpinner, GUIEvent_SimulationLoaded::myEnd, GUIEvent_SimulationLoaded::myFile, GUIMainWindow::myGLWindows, myHaveNotifiedAboutSimEnd, myJamSounds, myJamSoundTime, myLCDLabel, GUIEvent_SimulationLoaded::myNet, GUIEvent_SimulationLoaded::myOsgView, myRunThread, GUIEvent_SimulationLoaded::mySettingsFiles, mySimDelay, myStatButtons, myTLSGame, myViewNumber, GUIEvent_SimulationLoaded::myViewportFromRegistry, myWasStarted, onCmdGaming(), onCmdStart(), openNewView(), Position::set(), GUISettingsHandler::setSnapshots(), setStatusBarText(), FXEX::FXLCDLabel::setText(), GUISUMOAbstractView::setViewportFromToRot(), GUIMainWindow::setWindowSizeAndPos(), GUIRunThread::simulationIsStartable(), string2time(), VERSION_STRING, GUISUMOViewParent::VIEW_2D_OPENGL, GUISUMOViewParent::VIEW_3D_OSG, Position::x(), and Position::y().

Referenced by eventOccurred().

◆ handleEvent_SimulationStep()

◆ isFullScreen()

bool GUIMainWindow::isFullScreen ( )
inlineinherited

Definition at line 133 of file GUIMainWindow.h.

References GUIMainWindow::myAmFullScreen.

Referenced by GUIViewTraffic::onDoubleClicked().

◆ isGaming()

bool GUIMainWindow::isGaming ( ) const
inlineinherited

◆ listInternal()

bool GUIMainWindow::listInternal ( ) const
inlineinherited

return whether to list internal structures

Definition at line 87 of file GUIMainWindow.h.

References GUIMainWindow::myListInternal.

Referenced by GUISUMOViewParent::onCmdLocate().

◆ listParking()

bool GUIMainWindow::listParking ( ) const
inlineinherited

return whether to list parking vehicles

Definition at line 92 of file GUIMainWindow.h.

References GUIMainWindow::myListParking.

Referenced by fillMenuBar(), and GUISUMOViewParent::onCmdLocate().

◆ listTeleporting()

bool GUIMainWindow::listTeleporting ( ) const
inlineinherited

return whether to list teleporting vehicles

Definition at line 97 of file GUIMainWindow.h.

References GUIMainWindow::myListTeleporting.

Referenced by GUISUMOViewParent::onCmdLocate().

◆ loadConfigOrNet()

void GUIApplicationWindow::loadConfigOrNet ( const std::string &  file,
bool  isNet 
)
private

◆ loadOnStartup()

void GUIApplicationWindow::loadOnStartup ( )

Definition at line 1818 of file GUIApplicationWindow.cpp.

References loadConfigOrNet().

Referenced by main().

◆ onClipboardRequest()

long GUIApplicationWindow::onClipboardRequest ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Somebody wants our clipped text.

Definition at line 1364 of file GUIApplicationWindow.cpp.

References GUIUserIO::clipped.

Referenced by FXDEFMAP().

◆ onCmdAbout()

long GUIApplicationWindow::onCmdAbout ( FXObject *  ,
FXSelector  ,
void *   
)

Shows the about dialog.

Definition at line 1356 of file GUIApplicationWindow.cpp.

References GUIDialog_AboutSUMO::create().

Referenced by FXDEFMAP().

◆ onCmdAppSettings()

long GUIApplicationWindow::onCmdAppSettings ( FXObject *  ,
FXSelector  ,
void *   
)

Opens the application settings menu (Settings->Application Settings...)

Definition at line 1209 of file GUIApplicationWindow.cpp.

Referenced by FXDEFMAP().

◆ onCmdClearMsgWindow()

long GUIApplicationWindow::onCmdClearMsgWindow ( FXObject *  ,
FXSelector  ,
void *   
)

Called if the message window shall be cleared.

Definition at line 1130 of file GUIApplicationWindow.cpp.

References GUIMessageWindow::clear(), and myMessageWindow.

Referenced by FXDEFMAP().

◆ onCmdClose()

long GUIApplicationWindow::onCmdClose ( FXObject *  ,
FXSelector  ,
void *   
)

Called on menu File->Close.

Definition at line 992 of file GUIApplicationWindow.cpp.

References closeAllWindows().

Referenced by FXDEFMAP().

◆ onCmdDelayToggle()

long GUIApplicationWindow::onCmdDelayToggle ( FXObject *  ,
FXSelector  ,
void *   
)

Called on "delay toggle".

Definition at line 1112 of file GUIApplicationWindow.cpp.

References myAlternateSimDelay, and mySimDelay.

Referenced by FXDEFMAP().

◆ onCmdDemandScale()

long GUIApplicationWindow::onCmdDemandScale ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdEditBreakpoints()

long GUIApplicationWindow::onCmdEditBreakpoints ( FXObject *  ,
FXSelector  ,
void *   
)

Called on menu Edit->Edit Breakpoints.

Definition at line 773 of file GUIApplicationWindow.cpp.

References GUIRunThread::getBreakpointLock(), GUIRunThread::getBreakpoints(), myRunThread, and GUIDialog_Breakpoints::show().

Referenced by FXDEFMAP().

◆ onCmdEditChosen()

◆ onCmdEditViewport()

long GUIApplicationWindow::onCmdEditViewport ( FXObject *  ,
FXSelector  ,
void *   
)

Called on menu Edit->Viewport.

Definition at line 781 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myGLWindows.

Referenced by FXDEFMAP().

◆ onCmdEditViewScheme()

long GUIApplicationWindow::onCmdEditViewScheme ( FXObject *  ,
FXSelector  ,
void *   
)

Called on menu Edit->Visualization.

Definition at line 790 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myGLWindows.

Referenced by FXDEFMAP().

◆ onCmdFullScreen()

long GUIApplicationWindow::onCmdFullScreen ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

◆ onCmdGaming()

◆ onCmdHelp()

long GUIApplicationWindow::onCmdHelp ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

called if the user selects help->Documentation

Definition at line 799 of file GUIApplicationWindow.cpp.

References FXLinkLabel::fxexecute().

Referenced by FXDEFMAP().

◆ onCmdListInternal()

long GUIApplicationWindow::onCmdListInternal ( FXObject *  ,
FXSelector  ,
void *   
)

Toggle listing of internal structures.

Definition at line 1320 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myListInternal.

Referenced by FXDEFMAP().

◆ onCmdListParking()

long GUIApplicationWindow::onCmdListParking ( FXObject *  ,
FXSelector  ,
void *   
)

Toggle listing of parking vehicles.

Definition at line 1327 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myListParking.

Referenced by FXDEFMAP().

◆ onCmdListTeleporting()

long GUIApplicationWindow::onCmdListTeleporting ( FXObject *  ,
FXSelector  ,
void *   
)

Toggle listing of teleporting vehicles.

Definition at line 1333 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myListTeleporting.

Referenced by FXDEFMAP().

◆ onCmdLocate()

long GUIApplicationWindow::onCmdLocate ( FXObject *  ,
FXSelector  sel,
void *   
)

Called on menu commands from the Locator menu.

Definition at line 1187 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myMDIClient, and GUISUMOViewParent::onCmdLocate().

Referenced by FXDEFMAP().

◆ onCmdNetedit()

◆ onCmdNewView()

long GUIApplicationWindow::onCmdNewView ( FXObject *  ,
FXSelector  ,
void *   
)

Called if a new view shall be opened (2D view)

Definition at line 1340 of file GUIApplicationWindow.cpp.

References openNewView(), and GUISUMOViewParent::VIEW_2D_OPENGL.

Referenced by FXDEFMAP().

◆ onCmdOpenConfiguration()

long GUIApplicationWindow::onCmdOpenConfiguration ( FXObject *  ,
FXSelector  ,
void *   
)

Called on menu File->Open Configuration.

Definition at line 841 of file GUIApplicationWindow.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, loadConfigOrNet(), myConfigPattern, and myRecentConfigs.

Referenced by FXDEFMAP().

◆ onCmdOpenEdgeData()

long GUIApplicationWindow::onCmdOpenEdgeData ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdOpenNetwork()

long GUIApplicationWindow::onCmdOpenNetwork ( FXObject *  ,
FXSelector  ,
void *   
)

Called on menu File->Open Network.

Definition at line 861 of file GUIApplicationWindow.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, loadConfigOrNet(), and myRecentNets.

Referenced by FXDEFMAP().

◆ onCmdOpenRecent()

long GUIApplicationWindow::onCmdOpenRecent ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Called on opening a recent file.

Definition at line 953 of file GUIApplicationWindow.cpp.

References loadConfigOrNet(), myAmLoading, myRecentNets, and GUIMainWindow::myStatusbar.

Referenced by FXDEFMAP().

◆ onCmdOpenShapes()

long GUIApplicationWindow::onCmdOpenShapes ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdQuit()

long GUIApplicationWindow::onCmdQuit ( FXObject *  ,
FXSelector  ,
void *   
)

Called by FOX if the application shall be closed.

Called either by FileMenu->Quit, the normal close-menu or SIGINT

Definition at line 726 of file GUIApplicationWindow.cpp.

References gCurrentFolder, myAlternateSimDelay, myShowTimeAsHMS, and GUIMainWindow::storeWindowSizeAndPos().

Referenced by FXDEFMAP().

◆ onCmdReload()

long GUIApplicationWindow::onCmdReload ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSaveConfig()

long GUIApplicationWindow::onCmdSaveConfig ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSaveState()

long GUIApplicationWindow::onCmdSaveState ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdShowStats()

long GUIApplicationWindow::onCmdShowStats ( FXObject *  ,
FXSelector  ,
void *   
)

Called on commands from the statistic buttons.

Definition at line 1199 of file GUIApplicationWindow.cpp.

References GUINet::getGUIInstance(), GUINet::getParameterWindow(), GUIGlChildWindow::getView(), and GUIMainWindow::myMDIClient.

Referenced by FXDEFMAP().

◆ onCmdStart()

long GUIApplicationWindow::onCmdStart ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdStep()

long GUIApplicationWindow::onCmdStep ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdStop()

long GUIApplicationWindow::onCmdStop ( FXObject *  ,
FXSelector  ,
void *   
)

Called on "stop".

Definition at line 1055 of file GUIApplicationWindow.cpp.

References myRunThread, and GUIRunThread::stop().

Referenced by FXDEFMAP(), and handleEvent_SimulationEnded().

◆ onCmdTimeToggle()

long GUIApplicationWindow::onCmdTimeToggle ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onKeyPress()

long GUIApplicationWindow::onKeyPress ( FXObject *  o,
FXSelector  sel,
void *  data 
)

handle keys

Definition at line 1875 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myMDIClient, and GUISUMOViewParent::onKeyPress().

Referenced by FXDEFMAP().

◆ onKeyRelease()

long GUIApplicationWindow::onKeyRelease ( FXObject *  o,
FXSelector  sel,
void *  data 
)

Definition at line 1888 of file GUIApplicationWindow.cpp.

References GUIMainWindow::myMDIClient, and GUISUMOViewParent::onKeyRelease().

Referenced by FXDEFMAP().

◆ onLoadThreadEvent()

long GUIApplicationWindow::onLoadThreadEvent ( FXObject *  ,
FXSelector  ,
void *   
)

Called on an event from the loading thread.

Definition at line 1373 of file GUIApplicationWindow.cpp.

References eventOccurred().

Referenced by FXDEFMAP().

◆ onRunThreadEvent()

long GUIApplicationWindow::onRunThreadEvent ( FXObject *  ,
FXSelector  ,
void *   
)

Called on an event from the simulation thread.

Definition at line 1380 of file GUIApplicationWindow.cpp.

References eventOccurred().

Referenced by FXDEFMAP().

◆ onUpdAddView()

long GUIApplicationWindow::onUpdAddView ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether adding a view is enabled.

Definition at line 1027 of file GUIApplicationWindow.cpp.

References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().

Referenced by FXDEFMAP().

◆ onUpdNeedsSimulation()

long GUIApplicationWindow::onUpdNeedsSimulation ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether some buttons which require an active simulation may be shown.

Definition at line 1167 of file GUIApplicationWindow.cpp.

References myAmLoading, myRunThread, mySelectLanesMenuCascade, and GUIRunThread::simulationAvailable().

Referenced by FXDEFMAP().

◆ onUpdOpen()

long GUIApplicationWindow::onUpdOpen ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether opening is enabled.

Definition at line 999 of file GUIApplicationWindow.cpp.

References myAmLoading.

Referenced by FXDEFMAP().

◆ onUpdOpenRecent()

long GUIApplicationWindow::onUpdOpenRecent ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether opening a recent file is enabled.

Definition at line 1018 of file GUIApplicationWindow.cpp.

References myAmLoading.

Referenced by FXDEFMAP().

◆ onUpdReload()

long GUIApplicationWindow::onUpdReload ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether reloading is enabled.

Definition at line 1008 of file GUIApplicationWindow.cpp.

References GUILoadThread::getFileName(), TraCIServer::getInstance(), myAmLoading, and myLoadThread.

Referenced by FXDEFMAP().

◆ onUpdStart()

long GUIApplicationWindow::onUpdStart ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether "play" is enabled.

Definition at line 1137 of file GUIApplicationWindow.cpp.

References myAmLoading, myRunThread, and GUIRunThread::simulationIsStartable().

Referenced by FXDEFMAP().

◆ onUpdStep()

long GUIApplicationWindow::onUpdStep ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether "step" is enabled.

Definition at line 1157 of file GUIApplicationWindow.cpp.

References myAmLoading, myRunThread, and GUIRunThread::simulationIsStepable().

Referenced by FXDEFMAP().

◆ onUpdStop()

long GUIApplicationWindow::onUpdStop ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether "stop" is enabled.

Definition at line 1147 of file GUIApplicationWindow.cpp.

References myAmLoading, myRunThread, and GUIRunThread::simulationIsStopable().

Referenced by FXDEFMAP().

◆ onUpdTraCIStatus()

long GUIApplicationWindow::onUpdTraCIStatus ( FXObject *  sender,
FXSelector  ,
void *  ptr 
)

Determines whether traci is active.

Definition at line 1180 of file GUIApplicationWindow.cpp.

References TraCIServer::getInstance().

Referenced by FXDEFMAP().

◆ openNewView()

◆ removeChild()

◆ removeGLChild()

void GUIMainWindow::removeGLChild ( GUIGlChildWindow child)
inherited

removes the given child window from the list

Definition at line 98 of file GUIMainWindow.cpp.

References GUIMainWindow::myGLWindows.

Referenced by GNEViewParent::~GNEViewParent(), and GUISUMOViewParent::~GUISUMOViewParent().

◆ retrieveBreakpoints()

const std::vector< SUMOTime > GUIApplicationWindow::retrieveBreakpoints ( ) const
virtual

retrieve breakpoints if provided by the application

Reimplemented from GUIMainWindow.

Definition at line 1919 of file GUIApplicationWindow.cpp.

References GUIRunThread::getBreakpointLock(), GUIRunThread::getBreakpoints(), and myRunThread.

◆ sendBlockingEvent()

void GUIApplicationWindow::sendBlockingEvent ( GUIEvent event)
virtual

Sends an event from the application thread to the GUI and waits until it is handled.

Parameters
eventthe event to send

Reimplemented from GUIMainWindow.

Definition at line 1901 of file GUIApplicationWindow.cpp.

References myEventCondition, myEventMutex, myEvents, myRunThreadEvent, FXSynchQue< T, Container >::push_back(), and FXEX::FXThreadEvent::signal().

◆ setBreakpoints()

void GUIApplicationWindow::setBreakpoints ( const std::vector< SUMOTime > &  breakpoints)
virtual

Sets the breakpoints of the parent application.

Reimplemented from GUIMainWindow.

Definition at line 1910 of file GUIApplicationWindow.cpp.

References GUIRunThread::getBreakpointLock(), GUIRunThread::getBreakpoints(), and myRunThread.

◆ setDelay()

virtual void GUIApplicationWindow::setDelay ( double  delay)
inlinevirtual

Sets the delay of the parent application.

Parameters
delaythe new delay in milliseconds

Reimplemented from GUIMainWindow.

Definition at line 283 of file GUIApplicationWindow.h.

References mySimDelay.

◆ setStatusBarText()

void GUIApplicationWindow::setStatusBarText ( const std::string &  text)
virtual

◆ setWindowSizeAndPos()

void GUIMainWindow::setWindowSizeAndPos ( )
protectedinherited

◆ storeWindowSizeAndPos()

void GUIMainWindow::storeWindowSizeAndPos ( )
protectedinherited

record window position and size in registry

Definition at line 241 of file GUIMainWindow.cpp.

References GUIMainWindow::myAmFullScreen.

Referenced by loadConfigOrNet(), GNEApplicationWindow::loadConfigOrNet(), onCmdQuit(), GNEApplicationWindow::onCmdQuit(), and onCmdReload().

◆ updateChildren()

◆ updateTimeLCD()

void GUIApplicationWindow::updateTimeLCD ( SUMOTime  time)
private

Field Documentation

◆ hadDependentBuild

bool GUIApplicationWindow::hadDependentBuild
protected

Definition at line 411 of file GUIApplicationWindow.h.

Referenced by dependentBuild().

◆ myAlternateSimDelay

double GUIApplicationWindow::myAlternateSimDelay
protected

The alternate simulation delay in milliseconds for toggling.

Definition at line 379 of file GUIApplicationWindow.h.

Referenced by create(), onCmdDelayToggle(), and onCmdQuit().

◆ myAmFullScreen

bool GUIMainWindow::myAmFullScreen
protectedinherited

whether to show the window in full screen mode

Definition at line 144 of file GUIMainWindow.h.

Referenced by GUIMainWindow::isFullScreen(), onCmdFullScreen(), onCmdGaming(), and GUIMainWindow::storeWindowSizeAndPos().

◆ myAmGaming

bool GUIMainWindow::myAmGaming
protectedinherited

information whether the gui is currently in gaming mode

Definition at line 170 of file GUIMainWindow.h.

Referenced by handleEvent_SimulationStep(), GUIMainWindow::isGaming(), onCmdFullScreen(), onCmdGaming(), and updateTimeLCD().

◆ myAmLoading

bool GUIApplicationWindow::myAmLoading
protected

information whether the gui is currently loading and the load-options shall be greyed out

Definition at line 345 of file GUIApplicationWindow.h.

Referenced by handleEvent_SimulationLoaded(), loadConfigOrNet(), onCmdEditChosen(), onCmdOpenRecent(), onCmdReload(), onUpdAddView(), onUpdNeedsSimulation(), onUpdOpen(), onUpdOpenRecent(), onUpdReload(), onUpdStart(), onUpdStep(), and onUpdStop().

◆ myBoldFont

FXFont* GUIMainWindow::myBoldFont
protectedinherited

Font used for popup-menu titles.

Definition at line 152 of file GUIMainWindow.h.

Referenced by GUIMainWindow::getBoldFont(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().

◆ myBottomDock

FXDockSite * GUIMainWindow::myBottomDock
protectedinherited

Definition at line 167 of file GUIMainWindow.h.

Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().

◆ myCartesianCoordinate

FXLabel* GUIMainWindow::myCartesianCoordinate
protectedinherited

Labels for the current cartesian and geo-coordinate.

Definition at line 161 of file GUIMainWindow.h.

Referenced by closeAllWindows(), GNEApplicationWindow::closeAllWindows(), dependentBuild(), GNEApplicationWindow::dependentBuild(), and GUIMainWindow::getCartesianLabel().

◆ myCartesianFrame

FXHorizontalFrame* GUIMainWindow::myCartesianFrame
protectedinherited

◆ myCollisionSounds

RandomDistributor<std::string> GUIApplicationWindow::myCollisionSounds
protected

Definition at line 428 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents(), and handleEvent_SimulationLoaded().

◆ myConfigPattern

std::string GUIApplicationWindow::myConfigPattern
protected

Input file pattern.

Definition at line 409 of file GUIApplicationWindow.h.

Referenced by onCmdOpenConfiguration().

◆ myControlMenu

FXMenuPane * GUIApplicationWindow::myControlMenu = nullptr
protected

Definition at line 349 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ myDemandScaleSpinner

FXRealSpinner* GUIApplicationWindow::myDemandScaleSpinner = nullptr
protected

the demand scale

Definition at line 376 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), handleEvent_SimulationLoaded(), and onCmdDemandScale().

◆ myEditMenu

FXMenuPane * GUIApplicationWindow::myEditMenu = nullptr
protected

Definition at line 348 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ myEmergencyVehicleCount

SUMOTime GUIApplicationWindow::myEmergencyVehicleCount
protected

Definition at line 444 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents().

◆ myEmergencyVehicleLabel

FXEX::FXLCDLabel* GUIApplicationWindow::myEmergencyVehicleLabel = nullptr
protected

Definition at line 441 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), checkGamingEvents(), and onCmdGaming().

◆ myEventCondition

FXCondition GUIApplicationWindow::myEventCondition
protected

the semaphore when waiting for event completion

Definition at line 423 of file GUIApplicationWindow.h.

Referenced by sendBlockingEvent().

◆ myEventMutex

FXMutex GUIApplicationWindow::myEventMutex
protected

the mutex for the waiting semaphore

Definition at line 420 of file GUIApplicationWindow.h.

Referenced by sendBlockingEvent().

◆ myEvents

FXSynchQue<GUIEvent*> GUIApplicationWindow::myEvents
protected

List of got requests.

Definition at line 382 of file GUIApplicationWindow.h.

Referenced by dependentBuild(), eventOccurred(), sendBlockingEvent(), and ~GUIApplicationWindow().

◆ myFileMenu

FXMenuPane* GUIApplicationWindow::myFileMenu = nullptr
protected

the submenus

Definition at line 348 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ myGamingRNG

std::mt19937 GUIApplicationWindow::myGamingRNG
staticprotected

A random number generator used to choose a gaming sound.

Definition at line 432 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents().

◆ myGeoCoordinate

FXLabel * GUIMainWindow::myGeoCoordinate
protectedinherited

◆ myGeoFrame

FXHorizontalFrame * GUIMainWindow::myGeoFrame
protectedinherited

◆ myGLVisual

FXGLVisual* GUIMainWindow::myGLVisual
protectedinherited

◆ myGLWindows

◆ myHaveNotifiedAboutSimEnd

bool GUIApplicationWindow::myHaveNotifiedAboutSimEnd
protected

whether the simulation end was already announced

Definition at line 417 of file GUIApplicationWindow.h.

Referenced by handleEvent_SimulationEnded(), and handleEvent_SimulationLoaded().

◆ myHelpMenu

FXMenuPane * GUIApplicationWindow::myHelpMenu = nullptr
protected

Definition at line 350 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ myInstance

GUIMainWindow * GUIMainWindow::myInstance = nullptr
staticprotectedinherited

the singleton window instance

Definition at line 182 of file GUIMainWindow.h.

Referenced by GUIMainWindow::getInstance(), and GUIMainWindow::GUIMainWindow().

◆ myJamSounds

RandomDistributor<std::string> GUIApplicationWindow::myJamSounds
protected

Definition at line 427 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents(), and handleEvent_SimulationLoaded().

◆ myJamSoundTime

double GUIApplicationWindow::myJamSoundTime
protected

waiting time after which vehicles trigger jam sounds

Definition at line 430 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents(), and handleEvent_SimulationLoaded().

◆ myLCDLabel

FXEX::FXLCDLabel* GUIApplicationWindow::myLCDLabel = nullptr
protected

the simulation step display

Definition at line 394 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), closeAllWindows(), handleEvent_SimulationLoaded(), onCmdGaming(), and updateTimeLCD().

◆ myLeftDock

FXDockSite * GUIMainWindow::myLeftDock
protectedinherited

Definition at line 167 of file GUIMainWindow.h.

Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().

◆ myListInternal

bool GUIMainWindow::myListInternal
protectedinherited

information whether the locator should list internal structures

Definition at line 173 of file GUIMainWindow.h.

Referenced by GUIMainWindow::listInternal(), and onCmdListInternal().

◆ myListParking

bool GUIMainWindow::myListParking
protectedinherited

information whether the locator should list parking vehicles

Definition at line 176 of file GUIMainWindow.h.

Referenced by fillMenuBar(), GUIMainWindow::listParking(), and onCmdListParking().

◆ myListTeleporting

bool GUIMainWindow::myListTeleporting
protectedinherited

information whether the locator should list teleporting vehicles

Definition at line 179 of file GUIMainWindow.h.

Referenced by GUIMainWindow::listTeleporting(), and onCmdListTeleporting().

◆ myLoadThread

GUILoadThread* GUIApplicationWindow::myLoadThread
protected

the thread that loads simulations

Definition at line 333 of file GUIApplicationWindow.h.

Referenced by dependentBuild(), loadConfigOrNet(), onCmdReload(), onUpdReload(), and ~GUIApplicationWindow().

◆ myLoadThreadEvent

FXEX::FXThreadEvent GUIApplicationWindow::myLoadThreadEvent
protected

io-event with the load-thread

Definition at line 397 of file GUIApplicationWindow.h.

Referenced by dependentBuild().

◆ myLocatorMenu

FXMenuPane * GUIApplicationWindow::myLocatorMenu
protected

Definition at line 349 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ myMainSplitter

FXSplitter* GUIApplicationWindow::myMainSplitter = nullptr
protected

The splitter that divides the main window into views and the log window.

Definition at line 362 of file GUIApplicationWindow.h.

Referenced by dependentBuild().

◆ myMDIClient

◆ myMDIMenu

FXMDIMenu* GUIApplicationWindow::myMDIMenu = nullptr
protected

The menu used for the MDI-windows.

Definition at line 385 of file GUIApplicationWindow.h.

Referenced by dependentBuild(), and openNewView().

◆ myMenuBar

FXMenuBar* GUIApplicationWindow::myMenuBar = nullptr
protected

The application menu bar.

Definition at line 388 of file GUIApplicationWindow.h.

Referenced by dependentBuild(), fillMenuBar(), onCmdFullScreen(), and onCmdGaming().

◆ myMenuBarDrag

FXToolBarShell * GUIApplicationWindow::myMenuBarDrag = nullptr
protected

Definition at line 366 of file GUIApplicationWindow.h.

Referenced by create(), dependentBuild(), and detach().

◆ myMessageWindow

GUIMessageWindow* GUIApplicationWindow::myMessageWindow = nullptr
protected

A window to display messages, warnings and error in.

Definition at line 359 of file GUIApplicationWindow.h.

Referenced by closeAllWindows(), dependentBuild(), fillMenuBar(), handleEvent_Message(), onCmdClearMsgWindow(), onCmdFullScreen(), and onCmdGaming().

◆ myName

std::string GUIApplicationWindow::myName
protected

the name of the simulation

Definition at line 330 of file GUIApplicationWindow.h.

◆ myPreviousCollisionNumber

int GUIApplicationWindow::myPreviousCollisionNumber
protected

Definition at line 433 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents().

◆ myRecentConfigs

FXRecentFiles GUIApplicationWindow::myRecentConfigs
protected

List of recent config files.

Definition at line 403 of file GUIApplicationWindow.h.

Referenced by addRecentFile(), fillMenuBar(), and onCmdOpenConfiguration().

◆ myRecentNets

FXRecentFiles GUIApplicationWindow::myRecentNets
protected

List of recent nets.

Definition at line 406 of file GUIApplicationWindow.h.

Referenced by addRecentFile(), fillMenuBar(), onCmdOpenNetwork(), and onCmdOpenRecent().

◆ myRightDock

FXDockSite * GUIMainWindow::myRightDock
protectedinherited

Definition at line 167 of file GUIMainWindow.h.

Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().

◆ myRunThread

◆ myRunThreadEvent

FXEX::FXThreadEvent GUIApplicationWindow::myRunThreadEvent
protected

io-event with the run-thread

Definition at line 400 of file GUIApplicationWindow.h.

Referenced by dependentBuild(), and sendBlockingEvent().

◆ mySelectByPermissions

FXMenuPane * GUIApplicationWindow::mySelectByPermissions = nullptr
protected

Definition at line 348 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ mySelectLanesMenuCascade

FXMenuCascade* GUIApplicationWindow::mySelectLanesMenuCascade = nullptr
protected

the menu cascades

Definition at line 353 of file GUIApplicationWindow.h.

Referenced by fillMenuBar(), and onUpdNeedsSimulation().

◆ mySettingsMenu

FXMenuPane * GUIApplicationWindow::mySettingsMenu = nullptr
protected

Definition at line 348 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().

◆ myShowTimeAsHMS

bool GUIApplicationWindow::myShowTimeAsHMS
protected

whether to show time as hour:minute:second

Definition at line 414 of file GUIApplicationWindow.h.

Referenced by create(), onCmdQuit(), onCmdTimeToggle(), and updateTimeLCD().

◆ mySimDelay

double GUIApplicationWindow::mySimDelay = 0.
protected

the simulation delay in milliseconds

Definition at line 370 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), dependentBuild(), getDelay(), handleEvent_SimulationLoaded(), onCmdDelayToggle(), and setDelay().

◆ mySimDelaySlider

FXSlider* GUIApplicationWindow::mySimDelaySlider = nullptr
protected

Definition at line 373 of file GUIApplicationWindow.h.

Referenced by buildToolBars().

◆ mySimDelaySpinner

FXRealSpinner* GUIApplicationWindow::mySimDelaySpinner = nullptr
protected

Definition at line 372 of file GUIApplicationWindow.h.

Referenced by buildToolBars().

◆ mySimDelayTarget

FXDataTarget* GUIApplicationWindow::mySimDelayTarget = nullptr
protected

Definition at line 371 of file GUIApplicationWindow.h.

Referenced by buildToolBars().

◆ myStatButtons

std::vector<FXButton*> GUIApplicationWindow::myStatButtons
protected

Buttons showing and running values and triggering statistic windows.

Definition at line 356 of file GUIApplicationWindow.h.

Referenced by closeAllWindows(), dependentBuild(), handleEvent_SimulationLoaded(), and handleEvent_SimulationStep().

◆ myStatusbar

◆ myTimeLoss

SUMOTime GUIApplicationWindow::myTimeLoss
protected

Definition at line 443 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents().

◆ myTimeLossLabel

FXEX::FXLCDLabel* GUIApplicationWindow::myTimeLossLabel = nullptr
protected

Definition at line 439 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), checkGamingEvents(), and onCmdGaming().

◆ myTLSGame

bool GUIApplicationWindow::myTLSGame
protected

current game mode

Definition at line 435 of file GUIApplicationWindow.h.

Referenced by handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), and onCmdGaming().

◆ myToolBar1

FXToolBar* GUIApplicationWindow::myToolBar1 = nullptr
protected

The application tool bar.

Definition at line 391 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), onCmdFullScreen(), and onCmdGaming().

◆ myToolBar10

FXToolBar * GUIApplicationWindow::myToolBar10 = nullptr
protected

Definition at line 446 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), dependentBuild(), and onCmdGaming().

◆ myToolBar2

FXToolBar * GUIApplicationWindow::myToolBar2 = nullptr
protected

Definition at line 391 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), eventOccurred(), onCmdFullScreen(), and onCmdGaming().

◆ myToolBar3

FXToolBar * GUIApplicationWindow::myToolBar3 = nullptr
protected

Definition at line 391 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), eventOccurred(), fillMenuBar(), and onCmdFullScreen().

◆ myToolBar4

FXToolBar * GUIApplicationWindow::myToolBar4 = nullptr
protected

Definition at line 391 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), fillMenuBar(), onCmdFullScreen(), and onCmdGaming().

◆ myToolBar5

FXToolBar * GUIApplicationWindow::myToolBar5 = nullptr
protected

Definition at line 391 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), onCmdFullScreen(), and onCmdGaming().

◆ myToolBar6

FXToolBar* GUIApplicationWindow::myToolBar6 = nullptr
protected

◆ myToolBar7

FXToolBar * GUIApplicationWindow::myToolBar7 = nullptr
protected

◆ myToolBar8

FXToolBar * GUIApplicationWindow::myToolBar8 = nullptr
protected

Definition at line 391 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), onCmdFullScreen(), and onCmdGaming().

◆ myToolBar9

FXToolBar * GUIApplicationWindow::myToolBar9 = nullptr
protected

Definition at line 446 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), dependentBuild(), and onCmdGaming().

◆ myToolBarDrag1

FXToolBarShell* GUIApplicationWindow::myToolBarDrag1 = nullptr
protected

for some menu detaching fun

Definition at line 365 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), create(), detach(), and ~GUIApplicationWindow().

◆ myToolBarDrag10

FXToolBarShell * GUIApplicationWindow::myToolBarDrag10 = nullptr
protected

Definition at line 447 of file GUIApplicationWindow.h.

Referenced by buildToolBars().

◆ myToolBarDrag2

FXToolBarShell * GUIApplicationWindow::myToolBarDrag2 = nullptr
protected

Definition at line 365 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), and create().

◆ myToolBarDrag3

FXToolBarShell * GUIApplicationWindow::myToolBarDrag3 = nullptr
protected

Definition at line 365 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), and create().

◆ myToolBarDrag4

FXToolBarShell * GUIApplicationWindow::myToolBarDrag4 = nullptr
protected

Definition at line 366 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), and create().

◆ myToolBarDrag5

FXToolBarShell * GUIApplicationWindow::myToolBarDrag5 = nullptr
protected

Definition at line 366 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), and create().

◆ myToolBarDrag6

FXToolBarShell* GUIApplicationWindow::myToolBarDrag6 = nullptr
protected

Definition at line 447 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), and create().

◆ myToolBarDrag7

FXToolBarShell * GUIApplicationWindow::myToolBarDrag7 = nullptr
protected

Definition at line 447 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), and create().

◆ myToolBarDrag8

FXToolBarShell * GUIApplicationWindow::myToolBarDrag8 = nullptr
protected

Definition at line 367 of file GUIApplicationWindow.h.

Referenced by buildToolBars().

◆ myToolBarDrag9

FXToolBarShell * GUIApplicationWindow::myToolBarDrag9 = nullptr
protected

Definition at line 447 of file GUIApplicationWindow.h.

Referenced by buildToolBars().

◆ myTopDock

FXDockSite* GUIMainWindow::myTopDock
protectedinherited

◆ myTotalDistance

double GUIApplicationWindow::myTotalDistance
protected

Definition at line 445 of file GUIApplicationWindow.h.

Referenced by checkGamingEventsDRT().

◆ myTotalDistanceLabel

FXEX::FXLCDLabel* GUIApplicationWindow::myTotalDistanceLabel = nullptr
protected

Definition at line 440 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), checkGamingEventsDRT(), and onCmdGaming().

◆ myTrackerLock

FXMutex GUIMainWindow::myTrackerLock
protectedinherited

A lock to make the removal and addition of trackers secure.

Definition at line 149 of file GUIMainWindow.h.

Referenced by GUIMainWindow::addChild(), closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().

◆ myTrackerWindows

std::vector<FXMainWindow*> GUIMainWindow::myTrackerWindows
protectedinherited

◆ myViewNumber

int GUIApplicationWindow::myViewNumber
protected

The current view number.

Definition at line 342 of file GUIApplicationWindow.h.

Referenced by handleEvent_SimulationLoaded(), and openNewView().

◆ myWaitingTime

SUMOTime GUIApplicationWindow::myWaitingTime
protected

Definition at line 442 of file GUIApplicationWindow.h.

Referenced by checkGamingEvents(), and checkGamingEventsDRT().

◆ myWaitingTimeLabel

FXEX::FXLCDLabel* GUIApplicationWindow::myWaitingTimeLabel = nullptr
protected

performance indicators

Definition at line 438 of file GUIApplicationWindow.h.

Referenced by buildToolBars(), checkGamingEvents(), checkGamingEventsDRT(), and onCmdGaming().

◆ myWasStarted

bool GUIApplicationWindow::myWasStarted = false
protected

the information whether the simulation was started before

Definition at line 339 of file GUIApplicationWindow.h.

Referenced by handleEvent_SimulationLoaded(), onCmdStart(), and onCmdStep().

◆ myWindowsMenu

FXMenuPane * GUIApplicationWindow::myWindowsMenu
protected

Definition at line 350 of file GUIApplicationWindow.h.

Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().


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