SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
 
GUISUMOAbstractViewgetActiveView () const
 get the active view or 0 More...
 
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 54 of file GUIMainWindow.h.

Constructor & Destructor Documentation

GUIMainWindow::GUIMainWindow ( FXApp *  a)

Definition at line 58 of file GUIMainWindow.cpp.

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

GUIMainWindow::~GUIMainWindow ( )
virtual

Definition at line 80 of file GUIMainWindow.cpp.

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

GUIMainWindow::GUIMainWindow ( )
inlineprotected

Definition at line 151 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 91 of file GUIMainWindow.cpp.

References mySubWindows.

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

void GUIMainWindow::addChild ( FXMainWindow *  child,
bool  updateOnSimStep = true 
)
GUISUMOAbstractView * GUIMainWindow::getActiveView ( ) const

get the active view or 0

Definition at line 190 of file GUIMainWindow.cpp.

References GUIGlChildWindow::getView(), and myMDIClient.

Referenced by GUIVehicle::drawOutsideNetwork().

FXFont * GUIMainWindow::getBoldFont ( )

Definition at line 144 of file GUIMainWindow.cpp.

References myBoldFont.

Referenced by GUIGlObject::buildPopupHeader().

virtual FXGLCanvas* GUIMainWindow::getBuildGLCanvas ( ) const
pure virtual
FXLabel & GUIMainWindow::getCartesianLabel ( )

Definition at line 169 of file GUIMainWindow.cpp.

References myCartesianCoordinate.

Referenced by GUISUMOAbstractView::updatePositionInformation().

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 99 of file GUIMainWindow.h.

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

FXLabel & GUIMainWindow::getGeoLabel ( )

Definition at line 175 of file GUIMainWindow.cpp.

References myGeoCoordinate.

Referenced by GUISUMOAbstractView::updatePositionInformation().

FXGLVisual * GUIMainWindow::getGLVisual ( ) const

Definition at line 163 of file GUIMainWindow.cpp.

References myGLVisual.

Referenced by GUISUMOViewParent::init().

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

Definition at line 133 of file GUIMainWindow.cpp.

References mySubWindows.

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

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

Definition at line 123 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 90 of file GUIMainWindow.h.

References 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 110 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 105 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 124 of file GUIMainWindow.h.

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

FXDockSite * GUIMainWindow::myBottomDock
protected

Definition at line 139 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 148 of file GUIMainWindow.h.

Referenced by getInstance(), and GUIMainWindow().

FXDockSite * GUIMainWindow::myLeftDock
protected

Definition at line 139 of file GUIMainWindow.h.

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

bool GUIMainWindow::myListInternal
protected

information whether the locator should list internal structures

Definition at line 145 of file GUIMainWindow.h.

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

FXDockSite * GUIMainWindow::myRightDock
protected

Definition at line 139 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 121 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: