SUMO - Simulation of Urban MObility
|
#include <GUIMainWindow.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) |
FXFont * | getBoldFont () |
virtual FXGLCanvas * | getBuildGLCanvas () const =0 |
FXLabel & | getCartesianLabel () |
virtual SUMOTime | getCurrentSimTime () const =0 |
FXLabel & | getGeoLabel () |
FXGLVisual * | getGLVisual () const |
FXMDIChild * | getViewByID (const std::string &id) const |
std::vector< std::string > | getViewIDs () const |
GUIMainWindow (FXApp *a) | |
bool | isGaming () const |
return whether the gui is in gaming mode More... | |
bool | listInternal () const |
return whether to list internal structures More... | |
void | removeChild (FXMDIChild *child) |
removes the given child window from the list More... | |
void | removeChild (FXMainWindow *child) |
virtual void | setStatusBarText (const std::string &) |
void | updateChildren () |
virtual | ~GUIMainWindow () |
Static Public Member Functions | |
static GUIMainWindow * | getInstance () |
Protected Member Functions | |
GUIMainWindow () | |
Protected Attributes | |
bool | myAmGaming |
information whether the gui is currently in gaming mode 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 |
FXLabel * | myGeoCoordinate |
FXHorizontalFrame * | myGeoFrame |
FXGLVisual * | myGLVisual |
The gl-visual used. More... | |
FXDockSite * | myLeftDock |
bool | myListInternal |
information whether the locator should list internal structures More... | |
FXMDIClient * | myMDIClient |
The multi view panel. More... | |
FXDockSite * | myRightDock |
FXStatusBar * | myStatusbar |
The status bar. More... | |
std::vector< FXMDIChild * > | mySubWindows |
FXDockSite * | myTopDock |
MFXMutex | myTrackerLock |
A lock to make the removal and addition of trackers secure. More... | |
std::vector< FXMainWindow * > | myTrackerWindows |
Static Protected Attributes | |
static GUIMainWindow * | myInstance = 0 |
the singleton window instance More... | |
Definition at line 46 of file GUIMainWindow.h.
GUIMainWindow::GUIMainWindow | ( | FXApp * | a | ) |
Definition at line 57 of file GUIMainWindow.cpp.
References myBoldFont, myBottomDock, myInstance, myLeftDock, myRightDock, and myTopDock.
|
virtual |
Definition at line 78 of file GUIMainWindow.cpp.
References myBoldFont, myBottomDock, myLeftDock, myRightDock, and myTopDock.
|
inlineprotected |
Definition at line 123 of file GUIMainWindow.h.
void GUIMainWindow::addChild | ( | FXMDIChild * | child, |
bool | updateOnSimStep = true |
||
) |
Adds a further child window to the list.
Definition at line 89 of file GUIMainWindow.cpp.
References mySubWindows.
Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().
void GUIMainWindow::addChild | ( | FXMainWindow * | child, |
bool | updateOnSimStep = true |
||
) |
Definition at line 104 of file GUIMainWindow.cpp.
References MFXMutex::lock(), myTrackerLock, myTrackerWindows, and MFXMutex::unlock().
FXFont * GUIMainWindow::getBoldFont | ( | ) |
Definition at line 142 of file GUIMainWindow.cpp.
References myBoldFont.
Referenced by GUIGlObject::buildPopupHeader().
|
pure virtual |
Implemented in GUIApplicationWindow.
FXLabel & GUIMainWindow::getCartesianLabel | ( | ) |
Definition at line 167 of file GUIMainWindow.cpp.
References myCartesianCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
|
pure virtual |
Implemented in GUIApplicationWindow.
Referenced by GUIParam_PopupMenuInterface::onCmdOpenTracker().
FXLabel & GUIMainWindow::getGeoLabel | ( | ) |
Definition at line 173 of file GUIMainWindow.cpp.
References myGeoCoordinate.
Referenced by GUISUMOAbstractView::updatePositionInformation().
FXGLVisual * GUIMainWindow::getGLVisual | ( | ) | const |
Definition at line 161 of file GUIMainWindow.cpp.
References myGLVisual.
Referenced by GUISUMOViewParent::init().
|
static |
Definition at line 179 of file GUIMainWindow.cpp.
References myInstance.
Referenced by GUITexturesHelper::getTextureID().
FXMDIChild * GUIMainWindow::getViewByID | ( | const std::string & | id | ) | const |
Definition at line 131 of file GUIMainWindow.cpp.
References mySubWindows.
Referenced by TraCIServerAPI_GUI::getNamedView().
std::vector< std::string > GUIMainWindow::getViewIDs | ( | ) | const |
Definition at line 121 of file GUIMainWindow.cpp.
References mySubWindows.
Referenced by TraCIServerAPI_GUI::processGet().
|
inline |
return whether the gui is in gaming mode
Definition at line 77 of file GUIMainWindow.h.
References myAmGaming.
Referenced by GUIApplicationWindow::handleEvent_SimulationLoaded(), GUISUMOViewParent::init(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onRightBtnRelease(), and GUIViewTraffic::setColorScheme().
|
inline |
return whether to list internal structures
Definition at line 82 of file GUIMainWindow.h.
References myListInternal.
Referenced by GUISUMOViewParent::onCmdLocate().
void GUIMainWindow::removeChild | ( | FXMDIChild * | child | ) |
removes the given child window from the list
Definition at line 95 of file GUIMainWindow.cpp.
References mySubWindows.
Referenced by GUIDialog_Breakpoints::~GUIDialog_Breakpoints(), GUIDialog_GLChosenEditor::~GUIDialog_GLChosenEditor(), GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser(), GUIParameterTableWindow::~GUIParameterTableWindow(), GUIParameterTracker::~GUIParameterTracker(), GUISUMOViewParent::~GUISUMOViewParent(), and GUITLLogicPhasesTrackerWindow::~GUITLLogicPhasesTrackerWindow().
void GUIMainWindow::removeChild | ( | FXMainWindow * | child | ) |
Definition at line 112 of file GUIMainWindow.cpp.
References MFXMutex::lock(), myTrackerLock, myTrackerWindows, and MFXMutex::unlock().
|
inlinevirtual |
Reimplemented in GUIApplicationWindow.
Definition at line 71 of file GUIMainWindow.h.
Referenced by GUISUMOAbstractView::getObjectsInBoundary().
void GUIMainWindow::updateChildren | ( | ) |
Definition at line 148 of file GUIMainWindow.cpp.
References MFXMutex::lock(), MID_SIMSTEP, myMDIClient, myTrackerLock, myTrackerWindows, and MFXMutex::unlock().
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), GUIDialog_GLChosenEditor::onCmdClear(), and GUIDialog_GLChosenEditor::onCmdDeselect().
|
protected |
information whether the gui is currently in gaming mode
Definition at line 114 of file GUIMainWindow.h.
Referenced by isGaming(), GUIApplicationWindow::onCmdGaming(), and GUIApplicationWindow::updateTimeLCD().
|
protected |
Font used for popup-menu titles.
Definition at line 95 of file GUIMainWindow.h.
Referenced by getBoldFont(), GUIMainWindow(), and ~GUIMainWindow().
|
protected |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
Labels for the current cartesian and geo-coordinate.
Definition at line 104 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), GUIApplicationWindow::dependentBuild(), and getCartesianLabel().
|
protected |
Definition at line 105 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::create(), and GUIApplicationWindow::dependentBuild().
|
protected |
Definition at line 104 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::closeAllWindows(), GUIApplicationWindow::dependentBuild(), and getGeoLabel().
|
protected |
Definition at line 105 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::create(), and GUIApplicationWindow::dependentBuild().
|
protected |
The gl-visual used.
Definition at line 109 of file GUIMainWindow.h.
Referenced by getGLVisual(), and GUIApplicationWindow::~GUIApplicationWindow().
|
staticprotected |
the singleton window instance
Definition at line 120 of file GUIMainWindow.h.
Referenced by getInstance(), and GUIMainWindow().
|
protected |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
information whether the locator should list internal structures
Definition at line 117 of file GUIMainWindow.h.
Referenced by listInternal(), and GUIApplicationWindow::onCmdListInternal().
|
protected |
The multi view panel.
Definition at line 98 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::dependentBuild(), GUIApplicationWindow::fillMenuBar(), GUIApplicationWindow::getBuildGLCanvas(), GUIApplicationWindow::onCmdLocate(), GUIApplicationWindow::openNewView(), and updateChildren().
|
protected |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIMainWindow(), and ~GUIMainWindow().
|
protected |
The status bar.
Definition at line 101 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::dependentBuild(), GUIApplicationWindow::fillMenuBar(), GUIApplicationWindow::onCmdOpenRecent(), GUIApplicationWindow::onCmdStart(), GUIApplicationWindow::onCmdStep(), GUIApplicationWindow::openNewView(), and GUIApplicationWindow::setStatusBarText().
|
protected |
Definition at line 89 of file GUIMainWindow.h.
Referenced by addChild(), GUIApplicationWindow::closeAllWindows(), getViewByID(), getViewIDs(), and removeChild().
|
protected |
Definition at line 111 of file GUIMainWindow.h.
Referenced by GUIApplicationWindow::buildToolBars(), GUIApplicationWindow::dependentBuild(), GUIMainWindow(), and ~GUIMainWindow().
|
protected |
A lock to make the removal and addition of trackers secure.
Definition at line 92 of file GUIMainWindow.h.
Referenced by addChild(), GUIApplicationWindow::closeAllWindows(), removeChild(), and updateChildren().
|
protected |
Definition at line 90 of file GUIMainWindow.h.
Referenced by addChild(), GUIApplicationWindow::closeAllWindows(), removeChild(), and updateChildren().