SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUIMainWindow Class Reference

#include <GUIMainWindow.h>

Inheritance diagram for GUIMainWindow:
FXMainWindow GUIApplicationWindow

Public Member Functions

void addChild (FXMDIChild *child, bool updateOnSimStep=true)
 Adds a further child window to the list.
void addChild (FXMainWindow *child, bool updateOnSimStep=true)
FXFont * getBoldFont ()
virtual FXGLCanvasgetBuildGLCanvas () const =0
FXLabelgetCartesianLabel ()
virtual SUMOTime getCurrentSimTime () const =0
FXLabelgetGeoLabel ()
FXGLVisual * getGLVisual () const
FXMDIChildgetViewByID (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
bool listInternal () const
 return whether to list internal structures
void removeChild (FXMDIChild *child)
 removes the given child window from the list
void removeChild (FXMainWindow *child)
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
FXFont * myBoldFont
 Font used for popup-menu titles.
FXDockSite * myBottomDock
FXLabelmyCartesianCoordinate
 Labels for the current cartesian and geo-coordinate.
FXHorizontalFramemyCartesianFrame
FXLabelmyGeoCoordinate
FXHorizontalFramemyGeoFrame
FXGLVisual * myGLVisual
 The gl-visual used.
FXDockSite * myLeftDock
bool myListInternal
 information whether the locator should list internal structures
FXMDIClient * myMDIClient
 The multi view panel.
FXDockSite * myRightDock
FXStatusBar * myStatusbar
 The status bar.
std::vector< FXMDIChild * > mySubWindows
FXDockSite * myTopDock
MFXMutex myTrackerLock
 A lock to make the removal and addition of trackers secure.
std::vector< FXMainWindow * > myTrackerWindows

Static Protected Attributes

static GUIMainWindowmyInstance = 0
 the singleton window instance

Detailed Description

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

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

GUIMainWindow::GUIMainWindow ( )
inlineprotected

Definition at line 123 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 89 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 142 of file GUIMainWindow.cpp.

References myBoldFont.

Referenced by GUIGlObject::buildPopupHeader().

virtual FXGLCanvas* GUIMainWindow::getBuildGLCanvas ( ) const
pure virtual

Implemented in GUIApplicationWindow.

FXLabel & GUIMainWindow::getCartesianLabel ( )

Definition at line 167 of file GUIMainWindow.cpp.

References myCartesianCoordinate.

Referenced by GUISUMOAbstractView::updatePositionInformation().

virtual SUMOTime GUIMainWindow::getCurrentSimTime ( ) const
pure virtual
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().

GUIMainWindow * GUIMainWindow::getInstance ( void  )
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.

bool GUIMainWindow::isGaming ( ) const
inline
bool GUIMainWindow::listInternal ( ) const
inline

return whether to list internal structures

Definition at line 82 of file GUIMainWindow.h.

References myListInternal.

Referenced by GUISUMOViewParent::onCmdLocate().

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

Reimplemented in GUIApplicationWindow.

Definition at line 71 of file GUIMainWindow.h.

Referenced by GUISUMOAbstractView::getObjectsInBoundary().

Field Documentation

bool GUIMainWindow::myAmGaming
protected

information whether the gui is currently in gaming mode

Definition at line 114 of file GUIMainWindow.h.

Referenced by GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::handleEvent_SimulationStep(), isGaming(), and GUIApplicationWindow::onCmdGaming().

FXFont* GUIMainWindow::myBoldFont
protected

Font used for popup-menu titles.

Definition at line 95 of file GUIMainWindow.h.

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

FXDockSite * GUIMainWindow::myBottomDock
protected

Definition at line 111 of file GUIMainWindow.h.

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

FXLabel* GUIMainWindow::myCartesianCoordinate
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().

FXHorizontalFrame* GUIMainWindow::myCartesianFrame
protected
FXLabel * GUIMainWindow::myGeoCoordinate
protected
FXHorizontalFrame * GUIMainWindow::myGeoFrame
protected
FXGLVisual* GUIMainWindow::myGLVisual
protected

The gl-visual used.

Definition at line 109 of file GUIMainWindow.h.

Referenced by getGLVisual(), and GUIApplicationWindow::~GUIApplicationWindow().

GUIMainWindow * GUIMainWindow::myInstance = 0
staticprotected

the singleton window instance

Definition at line 120 of file GUIMainWindow.h.

Referenced by getInstance(), and GUIMainWindow().

FXDockSite * GUIMainWindow::myLeftDock
protected

Definition at line 111 of file GUIMainWindow.h.

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

bool GUIMainWindow::myListInternal
protected

information whether the locator should list internal structures

Definition at line 117 of file GUIMainWindow.h.

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

FXMDIClient* GUIMainWindow::myMDIClient
protected
FXDockSite * GUIMainWindow::myRightDock
protected

Definition at line 111 of file GUIMainWindow.h.

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

std::vector<FXMDIChild*> GUIMainWindow::mySubWindows
protected
FXDockSite* GUIMainWindow::myTopDock
protected
MFXMutex GUIMainWindow::myTrackerLock
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().

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

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