![]() |
SUMO - Simulation of Urban MObility
|
The main window of the SUMO-gui. More...
#include <GUIApplicationWindow.h>
Public Member Functions | |
void | addChild (FXMDIChild *child, bool updateOnSimStep=true) |
Adds a further child window to the list. More... | |
void | addChild (FXMainWindow *child, bool updateOnSimStep=true) |
void | addRecentFile (const FX::FXString &f, const bool isNet) |
void | dependentBuild () |
GUISUMOAbstractView * | getActiveView () 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 |
FXMDIChild * | getViewByID (const std::string &id) const |
std::vector< std::string > | getViewIDs () const |
GUIApplicationWindow (FXApp *a, const std::string &configPattern) | |
Constructor. More... | |
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 (FXMDIChild *child) |
removes the given child window from the list More... | |
void | removeChild (FXMainWindow *child) |
virtual void | sendBlockingEvent (GUIEvent *event) |
Sends an event from the application thread to the GUI and waits until it is handled. 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 | eventOccured () |
void | handleEvent_SimulationLoaded (GUIEvent *e) |
void | handleEvent_SimulationStep (GUIEvent *e) |
void | handleEvent_Message (GUIEvent *e) |
void | handleEvent_SimulationEnded (GUIEvent *e) |
void | handleEvent_Screenshot (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 | onCmdReload (FXObject *, FXSelector, void *) |
Called on reload. More... | |
long | onCmdOpenRecent (FXObject *, FXSelector, void *) |
Called on opening a recent file. 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 | 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 | onCmdTimeToggle (FXObject *, FXSelector, void *) |
Called on "time toggle". More... | |
long | onCmdDelayToggle (FXObject *, FXSelector, void *) |
Called on "delay toggle". 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 | 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 GUIMainWindow * | getInstance () |
Protected Member Functions | |
virtual void | addToWindowsMenu (FXMenuPane *) |
virtual void | buildToolBars () |
Builds the tool bar. More... | |
virtual void | fillMenuBar () |
Builds the menu bar. More... | |
GUIApplicationWindow () | |
FOX needs this for static members. More... | |
void | setWindowSizeAndPos () |
perform initial window positioning and sizing according to user options / previous call More... | |
Protected Attributes | |
bool | hadDependentBuild |
SUMOTime | myAlternateSimDelay |
The alternate simulation delay 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 |
FXMenuPane * | myEditMenu |
FXCondition | myEventCondition |
the semaphore when waiting for event completion More... | |
FXMutex | myEventMutex |
the mutex for the waiting semaphore More... | |
MFXEventQue< GUIEvent * > | myEvents |
List of got requests. More... | |
FXMenuPane * | myFileMenu |
the submenus More... | |
FXLabel * | myGeoCoordinate |
FXHorizontalFrame * | myGeoFrame |
FXGLVisual * | myGLVisual |
The gl-visual used. More... | |
bool | myHaveNotifiedAboutSimEnd |
whether the simulation end was already announced More... | |
FXMenuPane * | myHelpMenu |
FXEX::FXLCDLabel * | myLCDLabel |
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... | |
GUILoadThread * | myLoadThread |
FXEX::FXThreadEvent | myLoadThreadEvent |
io-event with the load-thread More... | |
FXMenuPane * | myLocatorMenu |
FXSplitter * | myMainSplitter |
The splitter that divides the main window into vies and the log window. More... | |
FXMDIClient * | myMDIClient |
The multi view panel. More... | |
FXMDIMenu * | myMDIMenu |
The menu used for the MDI-windows. More... | |
FXMenuBar * | myMenuBar |
The application menu bar. More... | |
FXToolBarShell * | myMenuBarDrag |
GUIMessageWindow * | myMessageWindow |
A window to display messages, warnings and error in. More... | |
std::string | myName |
FXRecentFiles | myRecentConfigs |
List of recent config files. More... | |
FXRecentFiles | myRecentNets |
List of recent nets. More... | |
FXDockSite * | myRightDock |
GUIRunThread * | myRunThread |
FXEX::FXThreadEvent | myRunThreadEvent |
io-event with the run-thread More... | |
FXMenuPane * | mySelectByPermissions |
FXMenuPane * | mySettingsMenu |
bool | myShowTimeAsHMS |
whether to show time as hour:minute:second More... | |
FXRealSpinDial * | mySimDelayTarget |
std::vector< FXButton * > | myStatButtons |
Buttons showing and running values and triggering statistic windows. More... | |
FXStatusBar * | myStatusbar |
The status bar. More... | |
std::vector< FXMDIChild * > | mySubWindows |
FXToolBar * | myToolBar1 |
The application tool bar. More... | |
FXToolBar * | myToolBar2 |
FXToolBar * | myToolBar3 |
FXToolBar * | myToolBar4 |
FXToolBar * | myToolBar5 |
FXToolBarShell * | myToolBarDrag1 |
for some menu detaching fun More... | |
FXToolBarShell * | myToolBarDrag2 |
FXToolBarShell * | myToolBarDrag3 |
FXToolBarShell * | myToolBarDrag4 |
FXToolBarShell * | myToolBarDrag5 |
FXDockSite * | myTopDock |
MFXMutex | 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 |
FXMenuPane * | myWindowsMenu |
Static Protected Attributes | |
static GUIMainWindow * | myInstance = 0 |
the singleton window instance More... | |
Private Member Functions | |
void | checkGamingEvents () |
handles additional game-related events More... | |
void | closeAllWindows () |
void | loadConfigOrNet (const std::string &file, bool isNet) |
GUISUMOAbstractView * | openNewView (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 |
FXEX::FXLCDLabel * | myWaitingTimeLabel |
performance indicators More... | |
FXEX::FXLCDLabel * | myTimeLossLabel |
SUMOTime | myWaitingTime |
SUMOTime | myTimeLoss |
FXToolBar * | myToolBar6 |
FXToolBar * | myToolBar7 |
FXToolBarShell * | myToolBarDrag6 |
FXToolBarShell * | myToolBarDrag7 |
static std::mt19937 | myGamingRNG |
A random number generator used to choose a gaming sound. More... | |
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 73 of file GUIApplicationWindow.h.
GUIApplicationWindow::GUIApplicationWindow | ( | FXApp * | a, |
const std::string & | configPattern | ||
) |
Constructor.
[in] | a | The FOX application |
[in] | configPattern | The pattern used for loading configurations |
Definition at line 195 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::initIcons().
|
virtual |
Destructor.
Definition at line 315 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::close(), closeAllWindows(), MFXEventQue< T >::empty(), myControlMenu, myEditMenu, myEvents, myFileMenu, GUIMainWindow::myGLVisual, myHelpMenu, myLoadThread, myLocatorMenu, myRunThread, mySelectByPermissions, mySettingsMenu, myToolBarDrag1, myWindowsMenu, MFXEventQue< T >::pop(), GUIRunThread::prepareDestruction(), and MFXEventQue< T >::top().
|
inlineprotected |
FOX needs this for static members.
Definition at line 300 of file GUIApplicationWindow.h.
References buildToolBars(), and fillMenuBar().
|
inherited |
Adds a further child window to the list.
Definition at line 99 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
|
inherited |
Definition at line 114 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
void GUIApplicationWindow::addRecentFile | ( | const FX::FXString & | f, |
const bool | isNet | ||
) |
Definition at line 1580 of file GUIApplicationWindow.cpp.
References myRecentConfigs, and myRecentNets.
Referenced by GUILoadThread::run().
|
inlineprotectedvirtual |
Definition at line 280 of file GUIApplicationWindow.h.
References checkGamingEvents(), closeAllWindows(), loadConfigOrNet(), openNewView(), updateTimeLCD(), and GUISUMOViewParent::VIEW_2D_OPENGL.
Referenced by fillMenuBar().
|
protectedvirtual |
Builds the tool bar.
game specific stuff
Definition at line 554 of file GUIApplicationWindow.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignButtonToolbarText, GUIDesignSpinDial, GUIDesignToolBarGrip, GUIDesignToolBarShell1, GUIDesignToolBarShell2, GUIDesignToolBarShell3, ICON_MICROVIEW, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_RELOAD, ICON_START, ICON_STEP, ICON_STOP, MID_DELAY_TOOGLE, MID_NEW_MICROVIEW, MID_NEW_OSGVIEW, MID_OPEN_CONFIG, MID_OPEN_NETWORK, MID_RELOAD, MID_SIMDELAY, MID_START, MID_STEP, MID_STOP, MID_TIME_TOOGLE, myLCDLabel, mySimDelayTarget, myTimeLossLabel, myToolBar1, myToolBar2, myToolBar3, myToolBar4, myToolBar5, myToolBar6, myToolBar7, myToolBarDrag1, myToolBarDrag2, myToolBarDrag3, myToolBarDrag4, myToolBarDrag5, myToolBarDrag6, myToolBarDrag7, GUIMainWindow::myTopDock, myWaitingTimeLabel, FXEX::FXLCDLabel::setGroove(), FXEX::FXLCDLabel::setHorizontal(), FX::FXRealSpinDial::setIncrements(), FX::FXRealSpinDial::setNumberFormat(), FX::FXRealSpinDial::setRange(), FXEX::FXLCDLabel::setText(), FXEX::FXLCDLabel::setThickness(), FX::FXRealSpinDial::setValue(), and FXEX::FXLCDLabel::setVertical().
Referenced by dependentBuild(), and GUIApplicationWindow().
|
private |
handles additional game-related events
Definition at line 1394 of file GUIApplicationWindow.cpp.
References DELTA_T, RandomDistributor< T >::get(), MSVehicleControl::getCollisionCount(), MSBaseVehicle::getEdge(), MSNet::getInstance(), MSVehicleType::getMaxSpeed(), RandomDistributor< T >::getOverallProb(), MSVehicle::getSpeed(), MSEdge::getSpeedLimit(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicle::isOnRoad(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), MIN2(), myCollisionSounds, myGamingRNG, myJamSounds, myJamSoundTime, myPreviousCollisionNumber, myTimeLoss, myTimeLossLabel, myWaitingTime, myWaitingTimeLabel, SysUtils::runHiddenCommand(), FXEX::FXLCDLabel::setText(), SUMO_const_haltingSpeed, TIME2STEPS, time2string(), and TS.
Referenced by addToWindowsMenu(), and handleEvent_SimulationStep().
|
private |
this method closes all windows and deletes the current simulation
Definition at line 1503 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::addSeparator(), GUISelectedStorage::clear(), GUITexturesHelper::clearTextures(), GUIRunThread::deleteSim(), MFXUtils::getTitleText(), gSelected, MFXMutex::lock(), GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myGeoCoordinate, myLCDLabel, myMessageWindow, myRunThread, myStatButtons, GUIMainWindow::mySubWindows, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, GLHelper::resetFont(), FXEX::FXLCDLabel::setText(), MFXMutex::unlock(), and VERSION_STRING.
Referenced by addToWindowsMenu(), handleEvent_SimulationEnded(), handleEvent_SimulationLoaded(), loadConfigOrNet(), onCmdClose(), onCmdReload(), and ~GUIApplicationWindow().
|
virtual |
Creates the main window (required by FOX)
Definition at line 279 of file GUIApplicationWindow.cpp.
References gCurrentFolder, OptionsCont::getOptions(), myAlternateSimDelay, GUIMainWindow::myCartesianFrame, myControlMenu, myEditMenu, myFileMenu, GUIMainWindow::myGeoFrame, myHelpMenu, myLocatorMenu, myMenuBarDrag, mySelectByPermissions, mySettingsMenu, myShowTimeAsHMS, myToolBarDrag1, myToolBarDrag2, myToolBarDrag3, myToolBarDrag4, myToolBarDrag5, myToolBarDrag6, myToolBarDrag7, myWindowsMenu, and GUIMainWindow::setWindowSizeAndPos().
void GUIApplicationWindow::dependentBuild | ( | ) |
Definition at line 216 of file GUIApplicationWindow.cpp.
References buildToolBars(), fillMenuBar(), GUIIconSubSys::getIcon(), MFXUtils::getTitleText(), GUIDesignBar, GUIDesignHorizontalFrameStatusBar, GUIDesignMDIButtonLeft, GUIDesignMDIButtonRight, GUIDesignSplitter, GUIDesignSplitterMDI, GUIDesignStatusBar, GUIDesignToolBarGrip, GUIDesignToolBarShell3, hadDependentBuild, ICON_APP, ICON_GREENEDGE, ICON_GREENPERSON, ICON_GREENVEHICLE, ID_LOADTHREAD_EVENT, ID_RUNTHREAD_EVENT, MID_SHOWPERSONSTATS, MID_SHOWVEHSTATS, MID_WINDOW, GUIMainWindow::myCartesianCoordinate, GUIMainWindow::myCartesianFrame, myEvents, GUIMainWindow::myGeoCoordinate, GUIMainWindow::myGeoFrame, myLoadThread, myLoadThreadEvent, myMainSplitter, GUIMainWindow::myMDIClient, myMDIMenu, myMenuBar, myMenuBarDrag, myMessageWindow, myRunThread, myRunThreadEvent, mySimDelayTarget, myStatButtons, GUIMainWindow::myStatusbar, myToolBar6, myToolBar7, GUIMainWindow::myTopDock, FXEX::FXBaseObject::setSelector(), FXEX::FXBaseObject::setTarget(), and VERSION_STRING.
Referenced by main().
|
virtual |
Detaches the tool/menu bar.
Definition at line 347 of file GUIApplicationWindow.cpp.
References myMenuBarDrag, and myToolBarDrag1.
|
virtual |
Implements MFXInterThreadEventClient.
Definition at line 1179 of file GUIApplicationWindow.cpp.
References MFXEventQue< T >::empty(), EVENT_ERROR_OCCURED, EVENT_MESSAGE_OCCURED, EVENT_SCREENSHOT, EVENT_SIMULATION_ENDED, EVENT_SIMULATION_LOADED, EVENT_SIMULATION_STEP, EVENT_STATUS_OCCURED, EVENT_WARNING_OCCURED, GUIEvent::getOwnType(), handleEvent_Message(), handleEvent_Screenshot(), handleEvent_SimulationEnded(), handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), myEvents, myRunThread, myToolBar2, myToolBar3, MFXEventQue< T >::pop(), GUIRunThread::simulationAvailable(), and MFXEventQue< T >::top().
Referenced by onLoadThreadEvent(), and onRunThreadEvent().
|
protectedvirtual |
Builds the menu bar.
Definition at line 355 of file GUIApplicationWindow.cpp.
References addToWindowsMenu(), GUIIconSubSys::getIcon(), MSGlobals::gUseMesoSim, ICON_APP, ICON_CLOSE, ICON_FLAG, ICON_LOCATEADD, ICON_LOCATEEDGE, ICON_LOCATEJUNCTION, ICON_LOCATEPERSON, ICON_LOCATEPOI, ICON_LOCATEPOLY, ICON_LOCATETLS, ICON_LOCATEVEHICLE, ICON_OPEN_CONFIG, ICON_OPEN_NET, ICON_OPEN_SHAPES, ICON_RELOAD, ICON_START, ICON_STEP, ICON_STOP, ICON_WINDOWS_CASCADE, ICON_WINDOWS_TILE_HORI, ICON_WINDOWS_TILE_VERT, GUIMainWindow::listParking(), MID_ABOUT, MID_APPSETTINGS, MID_CLEARMESSAGEWINDOW, MID_CLOSE, MID_EDIT_BREAKPOINTS, MID_EDITCHOSEN, MID_FULLSCREEN, MID_GAMING, MID_HELP, 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_NETWORK, MID_OPEN_SHAPES, MID_QUIT, MID_RECENTFILE, MID_RELOAD, MID_START, MID_STEP, MID_STOP, myControlMenu, myEditMenu, myFileMenu, myHelpMenu, GUIMainWindow::myListParking, myLocatorMenu, GUIMainWindow::myMDIClient, myMenuBar, myMessageWindow, myRecentConfigs, myRecentNets, mySelectByPermissions, mySettingsMenu, GUIMainWindow::myStatusbar, myToolBar3, myToolBar4, myWindowsMenu, and SumoVehicleClassStrings.
Referenced by dependentBuild(), and GUIApplicationWindow().
|
inherited |
get the active view or 0
Definition at line 198 of file GUIMainWindow.cpp.
References GUIGlChildWindow::getView(), and GUIMainWindow::myMDIClient.
Referenced by GUIVehicle::drawOutsideNetwork(), and GUIMainWindow::sendBlockingEvent().
|
inherited |
Definition at line 152 of file GUIMainWindow.cpp.
References GUIMainWindow::myBoldFont.
Referenced by GUIGlObject::buildPopupHeader(), GNEDeleteFrame::createPopUpMenu(), and GNEInspectorFrame::createPopUpMenu().
|
virtual |
Implements GUIMainWindow.
Definition at line 1492 of file GUIApplicationWindow.cpp.
References GUIGlChildWindow::getBuildGLCanvas(), and GUIMainWindow::myMDIClient.
Referenced by openNewView().
|
inherited |
Definition at line 177 of file GUIMainWindow.cpp.
References GUIMainWindow::myCartesianCoordinate.
Referenced by GUIMainWindow::setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
virtual |
Implements GUIMainWindow.
Definition at line 1554 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), and myRunThread.
FXCursor * GUIApplicationWindow::getDefaultCursor | ( | ) |
Definition at line 1548 of file GUIApplicationWindow.cpp.
|
inlinevirtual |
Returns the simulation delay.
Reimplemented from GUIMainWindow.
Definition at line 264 of file GUIApplicationWindow.h.
References FX::FXRealSpinDial::getValue(), and mySimDelayTarget.
|
inherited |
Definition at line 183 of file GUIMainWindow.cpp.
References GUIMainWindow::myGeoCoordinate.
Referenced by GUIMainWindow::setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
inherited |
Definition at line 171 of file GUIMainWindow.cpp.
References GUIMainWindow::myGLVisual.
Referenced by GUISUMOViewParent::init().
|
staticinherited |
Definition at line 189 of file GUIMainWindow.cpp.
References GUIMainWindow::myInstance.
Referenced by GUIVehicle::drawOutsideNetwork(), TraCIServerAPI_GUI::getNamedView(), GUITexturesHelper::getTextureID(), GUIMainWindow::listTeleporting(), TraCIServerAPI_GUI::processGet(), and GUIMessageWindow::setCursorPos().
|
virtual |
Implements GUIMainWindow.
Definition at line 1560 of file GUIApplicationWindow.cpp.
References GUIGlobals::gTrackerInterval.
|
inherited |
Definition at line 141 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by TraCIServerAPI_GUI::getNamedView(), and GUIMessageWindow::setCursorPos().
|
inherited |
Definition at line 131 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by TraCIServerAPI_GUI::processGet(), and GUIMessageWindow::setCursorPos().
void GUIApplicationWindow::handleEvent_Message | ( | GUIEvent * | e | ) |
Definition at line 1345 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::appendMsg(), EVENT_STATUS_OCCURED, GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), myMessageWindow, and setStatusBarText().
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_Screenshot | ( | GUIEvent * | e | ) |
Definition at line 1381 of file GUIApplicationWindow.cpp.
References GUISUMOAbstractView::makeSnapshot(), myEventCondition, myEventMutex, GUIEvent_Screenshot::myFile, GUIEvent_Screenshot::myView, and WRITE_WARNING.
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_SimulationEnded | ( | GUIEvent * | e | ) |
Definition at line 1356 of file GUIApplicationWindow.cpp.
References closeAllWindows(), GUIGlobals::gDemoAutoReload, GUIEvent_SimulationEnded::getReason(), MSNet::getStateMessage(), GUIEvent_SimulationEnded::getTimeStep(), GUIGlobals::gQuitOnEnd, myHaveNotifiedAboutSimEnd, onCmdReload(), onCmdStop(), MSNet::SIMSTATE_ERROR_IN_SIM, MSNet::SIMSTATE_LOADING, and time2string().
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_SimulationLoaded | ( | GUIEvent * | e | ) |
Definition at line 1217 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(), GUIMainWindow::isGaming(), myAmLoading, GUIEvent_SimulationLoaded::myBegin, myCollisionSounds, GUIEvent_SimulationLoaded::myEnd, GUIEvent_SimulationLoaded::myFile, myHaveNotifiedAboutSimEnd, myJamSounds, myJamSoundTime, myLCDLabel, GUIEvent_SimulationLoaded::myNet, GUIEvent_SimulationLoaded::myOsgView, myRunThread, GUIEvent_SimulationLoaded::mySettingsFiles, mySimDelayTarget, myStatButtons, myViewNumber, myWasStarted, onCmdGaming(), onCmdStart(), openNewView(), GUISettingsHandler::setSnapshots(), setStatusBarText(), FXEX::FXLCDLabel::setText(), FX::FXRealSpinDial::setValue(), GUIMainWindow::setWindowSizeAndPos(), GUIRunThread::simulationIsStartable(), VERSION_STRING, GUISUMOViewParent::VIEW_2D_OPENGL, and GUISUMOViewParent::VIEW_3D_OSG.
Referenced by eventOccured().
void GUIApplicationWindow::handleEvent_SimulationStep | ( | GUIEvent * | e | ) |
Definition at line 1307 of file GUIApplicationWindow.cpp.
References checkGamingEvents(), GUINet::getContainerControl(), MSNet::getCurrentTimeStep(), GUIIconSubSys::getIcon(), MSNet::getInsertionControl(), GUIRunThread::getNet(), GUINet::getPersonControl(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), MSNet::getVehicleControl(), MSInsertionControl::getWaitingVehicleNo(), MSNet::hasContainers(), MSNet::hasPersons(), ICON_GREENVEHICLE, ICON_YELLOWVEHICLE, GUIMainWindow::myAmGaming, myRunThread, myStatButtons, GUIRunThread::simulationIsStartable(), toString(), GUIMainWindow::updateChildren(), and updateTimeLCD().
Referenced by eventOccured().
|
inlineinherited |
return whether the gui is in gaming mode
Definition at line 86 of file GUIMainWindow.h.
References GUIMainWindow::myAmGaming.
Referenced by handleEvent_SimulationLoaded(), GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
|
inlineinherited |
return whether to list internal structures
Definition at line 91 of file GUIMainWindow.h.
References GUIMainWindow::myListInternal.
Referenced by GUISUMOViewParent::onCmdLocate().
|
inlineinherited |
return whether to list parking vehicles
Definition at line 96 of file GUIMainWindow.h.
References GUIMainWindow::myListParking.
Referenced by fillMenuBar(), and GUISUMOViewParent::onCmdLocate().
|
inlineinherited |
return whether to list teleporting vehicles
Definition at line 101 of file GUIMainWindow.h.
References GUIMainWindow::getInstance(), and GUIMainWindow::myListTeleporting.
Referenced by GUISUMOViewParent::onCmdLocate().
|
private |
starts to load a simulation
Definition at line 1445 of file GUIApplicationWindow.cpp.
References closeAllWindows(), gSchemeStorage, GUILoadThread::loadConfigOrNet(), myAmLoading, myLoadThread, GUICompleteSchemeStorage::saveViewport(), and setStatusBarText().
Referenced by addToWindowsMenu(), loadOnStartup(), onCmdOpenConfiguration(), onCmdOpenNetwork(), and onCmdOpenRecent().
void GUIApplicationWindow::loadOnStartup | ( | ) |
Definition at line 1566 of file GUIApplicationWindow.cpp.
References loadConfigOrNet().
Referenced by main().
long GUIApplicationWindow::onClipboardRequest | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Somebody wants our clipped text.
Definition at line 1156 of file GUIApplicationWindow.cpp.
References GUIUserIO::clipped.
long GUIApplicationWindow::onCmdAbout | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Shows the about dialog.
Definition at line 1148 of file GUIApplicationWindow.cpp.
References GUIDialog_AboutSUMO::create().
long GUIApplicationWindow::onCmdAppSettings | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Opens the application settings menu (Settings->Application Settings...)
Definition at line 1018 of file GUIApplicationWindow.cpp.
long GUIApplicationWindow::onCmdClearMsgWindow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called if the message window shall be cleared.
Definition at line 949 of file GUIApplicationWindow.cpp.
References GUIMessageWindow::clear(), and myMessageWindow.
long GUIApplicationWindow::onCmdClose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu File->Close.
Definition at line 842 of file GUIApplicationWindow.cpp.
References closeAllWindows().
long GUIApplicationWindow::onCmdDelayToggle | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on "delay toggle".
Definition at line 940 of file GUIApplicationWindow.cpp.
References FX::FXRealSpinDial::getValue(), myAlternateSimDelay, mySimDelayTarget, and FX::FXRealSpinDial::setValue().
long GUIApplicationWindow::onCmdEditBreakpoints | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu Edit->Edit Breakpoints.
Definition at line 698 of file GUIApplicationWindow.cpp.
References GUIRunThread::getBreakpointLock(), GUIRunThread::getBreakpoints(), myRunThread, and GUIDialog_Breakpoints::show().
long GUIApplicationWindow::onCmdEditChosen | ( | FXObject * | menu, |
FXSelector | , | ||
void * | |||
) |
Called on menu Edit->Edit Chosen.
Definition at line 663 of file GUIApplicationWindow.cpp.
References MSEdge::getAllEdges(), GUIGlObject::getGlID(), MSLane::getPermissions(), GUIGlChildWindow::getView(), GUISUMOAbstractView::getVisualisationSettings(), gSelected, GUIVisualizationSettings::laneColorer, myAmLoading, GUIMainWindow::myMDIClient, myRunThread, GUISelectedStorage::select(), GUIPropertySchemeStorage< T >::setActive(), GUIRunThread::simulationAvailable(), SumoVehicleClassStrings, and GUIMainWindow::updateChildren().
long GUIApplicationWindow::onCmdFullScreen | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Toggle full screen mode.
Definition at line 1068 of file GUIApplicationWindow.cpp.
References myAmFullScreen, GUIMainWindow::myAmGaming, GUIMainWindow::myMDIClient, myMenuBar, myMessageWindow, GUIMainWindow::myStatusbar, myToolBar1, myToolBar2, myToolBar3, myToolBar4, myToolBar5, myToolBar6, myToolBar7, onCmdGaming(), and GUISUMOViewParent::setToolBarVisibility().
long GUIApplicationWindow::onCmdGaming | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Toggle gaming mode.
Definition at line 1027 of file GUIApplicationWindow.cpp.
References GUIVisualizationSettings::gaming, GUICompleteSchemeStorage::getDefault(), MFXUtils::getFXColor(), RGBColor::GREEN, gSchemeStorage, myAmFullScreen, GUIMainWindow::myAmGaming, myLCDLabel, GUIMainWindow::myMDIClient, myMenuBar, myMessageWindow, GUIMainWindow::myStatusbar, myTimeLossLabel, myToolBar1, myToolBar2, myToolBar4, myToolBar5, myToolBar6, myToolBar7, myWaitingTimeLabel, RGBColor::RED, FXEX::FXLCDLabel::setFgColor(), and GUISUMOViewParent::setToolBarVisibility().
Referenced by handleEvent_SimulationLoaded(), and onCmdFullScreen().
long GUIApplicationWindow::onCmdHelp | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called if the user selects help->Documentation
Definition at line 707 of file GUIApplicationWindow.cpp.
References FXLinkLabel::fxexecute().
long GUIApplicationWindow::onCmdListInternal | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Toggle listing of internal structures.
Definition at line 1112 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myListInternal.
long GUIApplicationWindow::onCmdListParking | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Toggle listing of parking vehicles.
Definition at line 1119 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myListParking.
long GUIApplicationWindow::onCmdListTeleporting | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Toggle listing of teleporting vehicles.
Definition at line 1125 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myListTeleporting.
long GUIApplicationWindow::onCmdLocate | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
Called on menu commands from the Locator menu.
Definition at line 996 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GUISUMOViewParent::onCmdLocate().
long GUIApplicationWindow::onCmdNetedit | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu Edit->Netedit.
Definition at line 714 of file GUIApplicationWindow.cpp.
References GUISUMOAbstractView::getChanger(), OptionsCont::getOptions(), OptionsCont::getString(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), FileHelpers::isReadable(), GUIMainWindow::mySubWindows, SysUtils::runHiddenCommand(), and WRITE_MESSAGE.
long GUIApplicationWindow::onCmdNewView | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called if a new view shall be opened (2D view)
Definition at line 1132 of file GUIApplicationWindow.cpp.
References openNewView(), GUISUMOViewParent::VIEW_2D_OPENGL, and GUISUMOViewParent::VIEW_3D_OSG.
long GUIApplicationWindow::onCmdOpenConfiguration | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu File->Open Configuration.
Definition at line 749 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, loadConfigOrNet(), myConfigPattern, and myRecentConfigs.
long GUIApplicationWindow::onCmdOpenNetwork | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu File->Open Network.
Definition at line 769 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, loadConfigOrNet(), and myRecentNets.
long GUIApplicationWindow::onCmdOpenRecent | ( | FXObject * | sender, |
FXSelector | , | ||
void * | data | ||
) |
Called on opening a recent file.
Definition at line 830 of file GUIApplicationWindow.cpp.
References loadConfigOrNet(), myAmLoading, myRecentNets, and GUIMainWindow::myStatusbar.
long GUIApplicationWindow::onCmdOpenShapes | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on menu File->Load Shapes.
Definition at line 789 of file GUIApplicationWindow.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), GUIRunThread::getNet(), MSNet::getShapeContainer(), GUIGlChildWindow::getView(), ICON_EMPTY, GUIMainWindow::myMDIClient, myRunThread, XMLSubSys::runParser(), and WRITE_MESSAGE.
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 646 of file GUIApplicationWindow.cpp.
References gCurrentFolder, myAlternateSimDelay, myAmFullScreen, and myShowTimeAsHMS.
long GUIApplicationWindow::onCmdReload | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on reload.
Definition at line 818 of file GUIApplicationWindow.cpp.
References closeAllWindows(), myAmLoading, myLoadThread, and setStatusBarText().
Referenced by handleEvent_SimulationEnded().
long GUIApplicationWindow::onCmdShowStats | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on commands from the statistic buttons.
Definition at line 1008 of file GUIApplicationWindow.cpp.
References GUINet::getGUIInstance(), GUINet::getParameterWindow(), GUIGlChildWindow::getView(), and GUIMainWindow::myMDIClient.
long GUIApplicationWindow::onCmdStart | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on "play".
Definition at line 887 of file GUIApplicationWindow.cpp.
References GUIRunThread::begin(), myRunThread, GUIMainWindow::myStatusbar, myWasStarted, GUIRunThread::resume(), and GUIRunThread::simulationAvailable().
Referenced by handleEvent_SimulationLoaded().
long GUIApplicationWindow::onCmdStep | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on "step".
Definition at line 913 of file GUIApplicationWindow.cpp.
References GUIRunThread::begin(), myRunThread, GUIMainWindow::myStatusbar, myWasStarted, GUIRunThread::simulationAvailable(), and GUIRunThread::singleStep().
long GUIApplicationWindow::onCmdStop | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on "stop".
Definition at line 905 of file GUIApplicationWindow.cpp.
References myRunThread, and GUIRunThread::stop().
Referenced by handleEvent_SimulationEnded().
long GUIApplicationWindow::onCmdTimeToggle | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on "time toggle".
Definition at line 930 of file GUIApplicationWindow.cpp.
References MSNet::getCurrentTimeStep(), GUIRunThread::getNet(), myRunThread, myShowTimeAsHMS, GUIRunThread::simulationAvailable(), and updateTimeLCD().
long GUIApplicationWindow::onKeyPress | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
handle keys
Definition at line 1624 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GUISUMOViewParent::onKeyPress().
long GUIApplicationWindow::onKeyRelease | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
Definition at line 1637 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myMDIClient, and GUISUMOViewParent::onKeyRelease().
long GUIApplicationWindow::onLoadThreadEvent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on an event from the loading thread.
Definition at line 1165 of file GUIApplicationWindow.cpp.
References eventOccured().
long GUIApplicationWindow::onRunThreadEvent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called on an event from the simulation thread.
Definition at line 1172 of file GUIApplicationWindow.cpp.
References eventOccured().
long GUIApplicationWindow::onUpdAddView | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether adding a view is enabled.
Definition at line 877 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
long GUIApplicationWindow::onUpdNeedsSimulation | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether some buttons which require an active simulation may be shown.
Definition at line 986 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationAvailable().
long GUIApplicationWindow::onUpdOpen | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether opening is enabled.
Definition at line 849 of file GUIApplicationWindow.cpp.
References myAmLoading.
long GUIApplicationWindow::onUpdOpenRecent | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether opening a recent file is enabled.
Definition at line 868 of file GUIApplicationWindow.cpp.
References myAmLoading.
long GUIApplicationWindow::onUpdReload | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether reloading is enabled.
Definition at line 858 of file GUIApplicationWindow.cpp.
References GUILoadThread::getFileName(), myAmLoading, and myLoadThread.
long GUIApplicationWindow::onUpdStart | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether "play" is enabled.
Definition at line 956 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStartable().
long GUIApplicationWindow::onUpdStep | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether "step" is enabled.
Definition at line 976 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStepable().
long GUIApplicationWindow::onUpdStop | ( | FXObject * | sender, |
FXSelector | , | ||
void * | ptr | ||
) |
Determines whether "stop" is enabled.
Definition at line 966 of file GUIApplicationWindow.cpp.
References myAmLoading, myRunThread, and GUIRunThread::simulationIsStopable().
|
private |
opens a new simulation display
Definition at line 1457 of file GUIApplicationWindow.cpp.
References GUISUMOAbstractView::copyViewportTo(), GUIGlChildWindow::create(), getBuildGLCanvas(), GUIIconSubSys::getIcon(), GUIRunThread::getNet(), GUIRunThread::getSnapshots(), GUIRunThread::getSnapshotsLock(), GUIGlChildWindow::getView(), ICON_APP, GUISUMOViewParent::init(), GUIMainWindow::myMDIClient, myMDIMenu, myRunThread, GUIMainWindow::myStatusbar, myViewNumber, GUISUMOAbstractView::setApplicationSnapshots(), GUIRunThread::simulationAvailable(), and toString().
Referenced by addToWindowsMenu(), handleEvent_SimulationLoaded(), and onCmdNewView().
|
inherited |
removes the given child window from the list
Definition at line 105 of file GUIMainWindow.cpp.
References GUIMainWindow::mySubWindows.
Referenced by GNEViewParent::~GNEViewParent(), GUIDialog_Breakpoints::~GUIDialog_Breakpoints(), GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor(), GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUIParameterTracker::~GUIParameterTracker(), GUISUMOViewParent::~GUISUMOViewParent(), and GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow().
|
inherited |
Definition at line 122 of file GUIMainWindow.cpp.
References MFXMutex::lock(), GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
|
virtual |
Sends an event from the application thread to the GUI and waits until it is handled.
event | the event to send |
Reimplemented from GUIMainWindow.
Definition at line 1650 of file GUIApplicationWindow.cpp.
References MFXEventQue< T >::add(), myEventCondition, myEventMutex, myEvents, myRunThreadEvent, and FXEX::FXThreadEvent::signal().
Referenced by setDelay().
|
inlinevirtual |
Sets the delay of the parent application.
Reimplemented from GUIMainWindow.
Definition at line 270 of file GUIApplicationWindow.h.
References mySimDelayTarget, sendBlockingEvent(), and FX::FXRealSpinDial::setValue().
|
virtual |
Reimplemented from GUIMainWindow.
Definition at line 1572 of file GUIApplicationWindow.cpp.
References GUIMainWindow::myStatusbar.
Referenced by handleEvent_Message(), handleEvent_SimulationLoaded(), loadConfigOrNet(), and onCmdReload().
|
protectedinherited |
perform initial window positioning and sizing according to user options / previous call
Definition at line 207 of file GUIMainWindow.cpp.
References TplCheck::_str2int(), TplConvert::_str2int(), OptionsCont::getOptions(), OptionsCont::getStringVector(), OptionsCont::isSet(), MAX2(), MIN2(), and WRITE_ERROR.
Referenced by create(), GNEApplicationWindow::create(), GUIMainWindow::GUIMainWindow(), GNEApplicationWindow::handleEvent_NetworkLoaded(), and handleEvent_SimulationLoaded().
|
inherited |
Definition at line 158 of file GUIMainWindow.cpp.
References MFXMutex::lock(), MID_SIMSTEP, GUIMainWindow::myMDIClient, GUIMainWindow::myTrackerLock, GUIMainWindow::myTrackerWindows, and MFXMutex::unlock().
Referenced by handleEvent_SimulationStep(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdChangeOption(), GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdChangeOption(), GUIDialog_GLChosenEditor::onCmdClear(), GUIDialog_GLChosenEditor::onCmdDeselect(), onCmdEditChosen(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdPreDef(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdUserDef(), GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdUserDef(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onUpdPreDef(), GUICalibrator::GUIManip_Calibrator::onUpdPreDef(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onUpdUserDef(), GUICalibrator::GUIManip_Calibrator::onUpdUserDef(), and GUITriggeredRerouter::GUIManip_TriggeredRerouter::onUpdUserDef().
|
private |
updates the simulation time display
Definition at line 1590 of file GUIApplicationWindow.cpp.
References DELTA_T, GUIRunThread::getSimEndTime(), GUIMainWindow::myAmGaming, myLCDLabel, myRunThread, myShowTimeAsHMS, and FXEX::FXLCDLabel::setText().
Referenced by addToWindowsMenu(), handleEvent_SimulationStep(), and onCmdTimeToggle().
|
protected |
Definition at line 382 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protected |
The alternate simulation delay for toggling.
Definition at line 350 of file GUIApplicationWindow.h.
Referenced by create(), onCmdDelayToggle(), and onCmdQuit().
|
protected |
whether to show the window in full screen mode
Definition at line 388 of file GUIApplicationWindow.h.
Referenced by onCmdFullScreen(), onCmdGaming(), and onCmdQuit().
|
protectedinherited |
information whether the gui is currently in gaming mode
Definition at line 153 of file GUIMainWindow.h.
Referenced by handleEvent_SimulationStep(), GUIMainWindow::isGaming(), onCmdFullScreen(), onCmdGaming(), and updateTimeLCD().
|
protected |
information whether the gui is currently loading and the load-options shall be greyed out
Definition at line 326 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), loadConfigOrNet(), onCmdEditChosen(), onCmdOpenRecent(), onCmdReload(), onUpdAddView(), onUpdNeedsSimulation(), onUpdOpen(), onUpdOpenRecent(), onUpdReload(), onUpdStart(), onUpdStep(), and onUpdStop().
|
protectedinherited |
Font used for popup-menu titles.
Definition at line 135 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getBoldFont(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Definition at line 150 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
Labels for the current cartesian and geo-coordinate.
Definition at line 144 of file GUIMainWindow.h.
Referenced by closeAllWindows(), GNEApplicationWindow::closeAllWindows(), dependentBuild(), GNEApplicationWindow::dependentBuild(), and GUIMainWindow::getCartesianLabel().
|
protectedinherited |
Definition at line 145 of file GUIMainWindow.h.
Referenced by create(), GNEApplicationWindow::create(), dependentBuild(), and GNEApplicationWindow::dependentBuild().
|
protected |
Definition at line 402 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents(), and handleEvent_SimulationLoaded().
|
protected |
Input file pattern.
Definition at line 380 of file GUIApplicationWindow.h.
Referenced by onCmdOpenConfiguration().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
the semaphore when waiting for event completion
Definition at line 397 of file GUIApplicationWindow.h.
Referenced by handleEvent_Screenshot(), and sendBlockingEvent().
|
protected |
the mutex for the waiting semaphore
Definition at line 394 of file GUIApplicationWindow.h.
Referenced by handleEvent_Screenshot(), and sendBlockingEvent().
|
protected |
List of got requests.
Definition at line 353 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), eventOccured(), sendBlockingEvent(), and ~GUIApplicationWindow().
|
protected |
the submenus
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
staticprotected |
A random number generator used to choose a gaming sound.
Definition at line 406 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents().
|
protectedinherited |
Definition at line 144 of file GUIMainWindow.h.
Referenced by closeAllWindows(), GNEApplicationWindow::closeAllWindows(), dependentBuild(), GNEApplicationWindow::dependentBuild(), and GUIMainWindow::getGeoLabel().
|
protectedinherited |
Definition at line 145 of file GUIMainWindow.h.
Referenced by create(), GNEApplicationWindow::create(), dependentBuild(), and GNEApplicationWindow::dependentBuild().
|
protectedinherited |
The gl-visual used.
Definition at line 148 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getGLVisual(), GNEApplicationWindow::~GNEApplicationWindow(), and ~GUIApplicationWindow().
|
protected |
whether the simulation end was already announced
Definition at line 391 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationEnded(), and handleEvent_SimulationLoaded().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
staticprotectedinherited |
the singleton window instance
Definition at line 165 of file GUIMainWindow.h.
Referenced by GUIMainWindow::getInstance(), and GUIMainWindow::GUIMainWindow().
|
protected |
Definition at line 401 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents(), and handleEvent_SimulationLoaded().
|
protected |
waiting time after which vehicles trigger jam sounds
Definition at line 404 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents(), and handleEvent_SimulationLoaded().
|
protected |
the simulation step display
Definition at line 365 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), closeAllWindows(), handleEvent_SimulationLoaded(), onCmdGaming(), and updateTimeLCD().
|
protectedinherited |
Definition at line 150 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
information whether the locator should list internal structures
Definition at line 156 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listInternal(), and onCmdListInternal().
|
protectedinherited |
information whether the locator should list parking vehicles
Definition at line 159 of file GUIMainWindow.h.
Referenced by fillMenuBar(), GUIMainWindow::listParking(), and onCmdListParking().
|
protectedinherited |
information whether the locator should list teleporting vehicles
Definition at line 162 of file GUIMainWindow.h.
Referenced by GUIMainWindow::listTeleporting(), and onCmdListTeleporting().
|
protected |
the thread that loads simulations
Definition at line 314 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), loadConfigOrNet(), onCmdReload(), onUpdReload(), and ~GUIApplicationWindow().
|
protected |
io-event with the load-thread
Definition at line 368 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
The splitter that divides the main window into vies and the log window.
Definition at line 340 of file GUIApplicationWindow.h.
Referenced by dependentBuild().
|
protectedinherited |
The multi view panel.
Definition at line 138 of file GUIMainWindow.h.
Referenced by dependentBuild(), GNEApplicationWindow::dependentBuild(), fillMenuBar(), GUIMainWindow::getActiveView(), getBuildGLCanvas(), GNEApplicationWindow::getBuildGLCanvas(), onCmdEditChosen(), onCmdFullScreen(), onCmdGaming(), GNEApplicationWindow::onCmdLocate(), onCmdLocate(), onCmdOpenShapes(), onCmdShowStats(), GNEApplicationWindow::onKeyPress(), onKeyPress(), GNEApplicationWindow::onKeyRelease(), onKeyRelease(), openNewView(), GNEApplicationWindow::openNewView(), and GUIMainWindow::updateChildren().
|
protected |
The menu used for the MDI-windows.
Definition at line 356 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), and openNewView().
|
protected |
The application menu bar.
Definition at line 359 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), fillMenuBar(), onCmdFullScreen(), and onCmdGaming().
|
protected |
Definition at line 343 of file GUIApplicationWindow.h.
Referenced by create(), dependentBuild(), and detach().
|
protected |
A window to display messages, warnings and error in.
Definition at line 337 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), fillMenuBar(), handleEvent_Message(), onCmdClearMsgWindow(), onCmdFullScreen(), and onCmdGaming().
|
protected |
the name of the simulation
Definition at line 311 of file GUIApplicationWindow.h.
|
protected |
Definition at line 407 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents().
|
protected |
List of recent config files.
Definition at line 374 of file GUIApplicationWindow.h.
Referenced by addRecentFile(), fillMenuBar(), and onCmdOpenConfiguration().
|
protected |
List of recent nets.
Definition at line 377 of file GUIApplicationWindow.h.
Referenced by addRecentFile(), fillMenuBar(), onCmdOpenNetwork(), and onCmdOpenRecent().
|
protectedinherited |
Definition at line 150 of file GUIMainWindow.h.
Referenced by GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protected |
the thread that runs simulations
Definition at line 317 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), eventOccured(), getCurrentSimTime(), handleEvent_SimulationLoaded(), handleEvent_SimulationStep(), onCmdEditBreakpoints(), onCmdEditChosen(), onCmdOpenShapes(), onCmdStart(), onCmdStep(), onCmdStop(), onCmdTimeToggle(), onUpdAddView(), onUpdNeedsSimulation(), onUpdStart(), onUpdStep(), onUpdStop(), openNewView(), updateTimeLCD(), and ~GUIApplicationWindow().
|
protected |
io-event with the run-thread
Definition at line 371 of file GUIApplicationWindow.h.
Referenced by dependentBuild(), and sendBlockingEvent().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().
|
protected |
whether to show time as hour:minute:second
Definition at line 385 of file GUIApplicationWindow.h.
Referenced by create(), onCmdQuit(), onCmdTimeToggle(), and updateTimeLCD().
|
protected |
Definition at line 347 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), getDelay(), handleEvent_SimulationLoaded(), onCmdDelayToggle(), and setDelay().
|
protected |
Buttons showing and running values and triggering statistic windows.
Definition at line 334 of file GUIApplicationWindow.h.
Referenced by closeAllWindows(), dependentBuild(), handleEvent_SimulationLoaded(), and handleEvent_SimulationStep().
|
protectedinherited |
The status bar.
Definition at line 141 of file GUIMainWindow.h.
Referenced by dependentBuild(), GNEApplicationWindow::dependentBuild(), fillMenuBar(), GNEApplicationWindow::fillMenuBar(), onCmdFullScreen(), onCmdGaming(), onCmdOpenRecent(), GNEApplicationWindow::onCmdOpenRecent(), onCmdStart(), onCmdStep(), openNewView(), setStatusBarText(), and GNEApplicationWindow::setStatusBarText().
|
protectedinherited |
Definition at line 129 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GNEApplicationWindow::getView(), GUIMainWindow::getViewByID(), GUIMainWindow::getViewIDs(), onCmdNetedit(), and GUIMainWindow::removeChild().
|
protected |
Definition at line 413 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents().
|
protected |
Definition at line 411 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), checkGamingEvents(), and onCmdGaming().
|
protected |
The application tool bar.
Definition at line 362 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), onCmdFullScreen(), and onCmdGaming().
|
protected |
Definition at line 362 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), eventOccured(), onCmdFullScreen(), and onCmdGaming().
|
protected |
Definition at line 362 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), eventOccured(), fillMenuBar(), and onCmdFullScreen().
|
protected |
Definition at line 362 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), fillMenuBar(), onCmdFullScreen(), and onCmdGaming().
|
protected |
Definition at line 362 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), onCmdFullScreen(), and onCmdGaming().
|
protected |
Definition at line 414 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), onCmdFullScreen(), and onCmdGaming().
|
protected |
Definition at line 414 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), dependentBuild(), onCmdFullScreen(), and onCmdGaming().
|
protected |
for some menu detaching fun
Definition at line 343 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), create(), detach(), and ~GUIApplicationWindow().
|
protected |
Definition at line 343 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protected |
Definition at line 343 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protected |
Definition at line 343 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protected |
Definition at line 343 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protected |
Definition at line 415 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protected |
Definition at line 415 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), and create().
|
protectedinherited |
Definition at line 150 of file GUIMainWindow.h.
Referenced by buildToolBars(), dependentBuild(), GNEApplicationWindow::dependentBuild(), GUIMainWindow::GUIMainWindow(), and GUIMainWindow::~GUIMainWindow().
|
protectedinherited |
A lock to make the removal and addition of trackers secure.
Definition at line 132 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protectedinherited |
Definition at line 130 of file GUIMainWindow.h.
Referenced by GUIMainWindow::addChild(), closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIMainWindow::removeChild(), and GUIMainWindow::updateChildren().
|
protected |
The current view number.
Definition at line 323 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), and openNewView().
|
protected |
Definition at line 412 of file GUIApplicationWindow.h.
Referenced by checkGamingEvents().
|
protected |
performance indicators
Definition at line 410 of file GUIApplicationWindow.h.
Referenced by buildToolBars(), checkGamingEvents(), and onCmdGaming().
|
protected |
the information whether the simulation was started before
Definition at line 320 of file GUIApplicationWindow.h.
Referenced by handleEvent_SimulationLoaded(), onCmdStart(), and onCmdStep().
|
protected |
Definition at line 329 of file GUIApplicationWindow.h.
Referenced by create(), fillMenuBar(), and ~GUIApplicationWindow().