SUMO - Simulation of Urban MObility
GUIMainWindow Class Referenceabstract

#include <GUIMainWindow.h>

Inheritance diagram for GUIMainWindow:
Inheritance graph
Collaboration diagram for GUIMainWindow:
Collaboration graph

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
 
virtual SUMOReal getDelay () const
 Returns the delay (should be overwritten by subclasses if applicable) More...
 
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 sendBlockingEvent (GUIEvent *event)
 Sends an event from the application thread to the GUI and waits until it is handled. More...
 
virtual void setDelay (SUMOReal)
 Sets the delay of the parent application. More...
 
virtual void setStatusBarText (const std::string &)
 
void updateChildren ()
 
virtual ~GUIMainWindow ()
 

Static Public Member Functions

static GUIMainWindowgetInstance ()
 

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 GUIMainWindowmyInstance = 0
 the singleton window instance More...
 

Detailed Description

Definition at line 53 of file GUIMainWindow.h.

Constructor & Destructor Documentation

GUIMainWindow::GUIMainWindow ( FXApp *  a)

Definition at line 57 of file GUIMainWindow.cpp.

References myBoldFont, myBottomDock, myInstance, myLeftDock, myRightDock, and myTopDock.

GUIMainWindow::~GUIMainWindow ( )
virtual

Definition at line 79 of file GUIMainWindow.cpp.

References myBoldFont, myBottomDock, myLeftDock, myRightDock, and myTopDock.

GUIMainWindow::GUIMainWindow ( )
inlineprotected

Definition at line 148 of file GUIMainWindow.h.

Member Function Documentation

void GUIMainWindow::addChild ( FXMDIChild *  child,
bool  updateOnSimStep = true 
)

Adds a further child window to the list.

Definition at line 90 of file GUIMainWindow.cpp.

References mySubWindows.

Referenced by GUIParameterTableWindow::closeBuilding(), and GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow().

void GUIMainWindow::addChild ( FXMainWindow *  child,
bool  updateOnSimStep = true 
)
FXFont * GUIMainWindow::getBoldFont ( )

Definition at line 143 of file GUIMainWindow.cpp.

References myBoldFont.

Referenced by GUIGlObject::buildPopupHeader().

virtual FXGLCanvas* GUIMainWindow::getBuildGLCanvas ( ) const
pure virtual
FXLabel & GUIMainWindow::getCartesianLabel ( )
virtual SUMOTime GUIMainWindow::getCurrentSimTime ( ) const
pure virtual
virtual SUMOReal GUIMainWindow::getDelay ( ) const
inlinevirtual

Returns the delay (should be overwritten by subclasses if applicable)

Returns
parsed delay in milliseconds

Reimplemented in GUIApplicationWindow.

Definition at line 98 of file GUIMainWindow.h.

Referenced by GUISUMOAbstractView::getDelay(), and GUIViewTraffic::saveFrame().

FXLabel & GUIMainWindow::getGeoLabel ( )
FXGLVisual * GUIMainWindow::getGLVisual ( ) const

Definition at line 162 of file GUIMainWindow.cpp.

References myGLVisual.

Referenced by GUISUMOViewParent::init().

FXMDIChild * GUIMainWindow::getViewByID ( const std::string &  id) const

Definition at line 132 of file GUIMainWindow.cpp.

References mySubWindows.

Referenced by TraCIServerAPI_GUI::getNamedView(), and GUIMessageWindow::setCursorPos().

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

Definition at line 122 of file GUIMainWindow.cpp.

References mySubWindows.

Referenced by TraCIServerAPI_GUI::processGet(), and GUIMessageWindow::setCursorPos().

bool GUIMainWindow::listInternal ( ) const
inline

return whether to list internal structures

Definition at line 89 of file GUIMainWindow.h.

References getInstance(), and myListInternal.

Referenced by GUISUMOViewParent::onCmdLocate().

void GUIMainWindow::removeChild ( FXMainWindow *  child)
virtual void GUIMainWindow::sendBlockingEvent ( GUIEvent event)
inlinevirtual

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

Parameters
eventthe event to send

Reimplemented in GUIApplicationWindow.

Definition at line 109 of file GUIMainWindow.h.

References UNUSED_PARAMETER.

Referenced by TraCIServerAPI_GUI::processSet().

virtual void GUIMainWindow::setDelay ( SUMOReal  )
inlinevirtual

Sets the delay of the parent application.

Reimplemented in GUIApplicationWindow.

Definition at line 104 of file GUIMainWindow.h.

Referenced by GUISUMOAbstractView::setDelay().

virtual void GUIMainWindow::setStatusBarText ( const std::string &  )
inlinevirtual

Field Documentation

bool GUIMainWindow::myAmGaming
protected
FXFont* GUIMainWindow::myBoldFont
protected

Font used for popup-menu titles.

Definition at line 120 of file GUIMainWindow.h.

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

FXDockSite * GUIMainWindow::myBottomDock
protected

Definition at line 136 of file GUIMainWindow.h.

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

FXLabel* GUIMainWindow::myCartesianCoordinate
protected
FXHorizontalFrame* GUIMainWindow::myCartesianFrame
protected
FXHorizontalFrame * GUIMainWindow::myGeoFrame
protected
FXGLVisual* GUIMainWindow::myGLVisual
protected
GUIMainWindow * GUIMainWindow::myInstance = 0
staticprotected

the singleton window instance

Definition at line 145 of file GUIMainWindow.h.

Referenced by getInstance(), and GUIMainWindow().

FXDockSite * GUIMainWindow::myLeftDock
protected

Definition at line 136 of file GUIMainWindow.h.

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

bool GUIMainWindow::myListInternal
protected

information whether the locator should list internal structures

Definition at line 142 of file GUIMainWindow.h.

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

FXDockSite * GUIMainWindow::myRightDock
protected

Definition at line 136 of file GUIMainWindow.h.

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

MFXMutex GUIMainWindow::myTrackerLock
protected

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

Definition at line 117 of file GUIMainWindow.h.

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

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

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