Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIGlChildWindow Class Reference

#include <GUIGlChildWindow.h>

Inheritance diagram for GUIGlChildWindow:
[legend]
Collaboration diagram for GUIGlChildWindow:
[legend]

Public Member Functions

virtual void create ()
 create GUIGlChildWindow
virtual FXGLCanvas * getBuildGLCanvas () const
 get build GL Canvas
MFXComboBoxIcongetColoringSchemesCombo ()
 return combobox with the current coloring schemes (standard, fastest standard, real world...)
GUIMainWindowgetGUIMainWindowParent ()
 Returns the GUIMainWindow parent.
FXPopup * getLocatorPopup ()
 @ brief return a pointer to locator popup
FXToolBar * getNavigationToolBar (GUISUMOAbstractView &v)
 return a reference to navigation toolbar
virtual std::vector< GUIGlIDgetObjectIDs (int messageId) const
MFXCheckableButtongetShowToolTipsMenu () const
 get menu for tooltips menu
GUISUMOAbstractViewgetView () const
 return GUISUMOAbstractView
 GUIGlChildWindow (FXMDIClient *p, GUIMainWindow *GUIMainWindowParent, FXMDIMenu *mdimenu, const FXString &name, FXMenuBar *gripNavigationToolbar, FXIcon *ic=NULL, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 constructor
virtual bool isSelected (GUIGlObject *o) const
 true if the object is selected (may include extra logic besides calling gSelected)
void setView (GUIGlID id)
 Centers the view onto the given artifact.
virtual ~GUIGlChildWindow ()
 destructor
buttons call backs
long onCmdRecenterView (FXObject *, FXSelector, void *)
long onCmdEditViewport (FXObject *, FXSelector, void *)
long onCmdEditViewScheme (FXObject *, FXSelector, void *)
long onCmdShowToolTipsView (FXObject *sender, FXSelector, void *)
long onCmdShowToolTipsMenu (FXObject *sender, FXSelector, void *)
long onCmdZoomStyle (FXObject *sender, FXSelector, void *)
long onCmdChangeColorScheme (FXObject *, FXSelector sel, void *)

Protected Member Functions

void buildColoringToolBar ()
 build coloring toolbar
void buildNavigationToolBar ()
 build navigation toolbar
void buildScreenshotToolBar ()
 build screenshot toolbar

Protected Attributes

FXVerticalFrame * myChildWindowContentFrame = nullptr
 The contents frame.
MFXComboBoxIconmyColoringSchemes = nullptr
 The coloring schemes.
FXMenuBar * myGripNavigationToolbar = nullptr
 The grip navigation tool bar.
GUIMainWindowmyGUIMainWindowParent = nullptr
 FOX needs this.
MFXMenuButtonTooltipmyLocatorButton = nullptr
 The locator button.
FXPopup * myLocatorPopup = nullptr
 The locator menu.
MFXCheckableButtonmyShowToolTipsMenu = nullptr
 menu for tooltips menu
MFXCheckableButtonmyShowToolTipsView = nullptr
 menu for tooltips view
FXToolBar * myStaticNavigationToolBar = nullptr
 The static navigation tool bar.
GUISUMOAbstractViewmyView = nullptr
 The view.
MFXCheckableButtonmyZoomStyle = nullptr
 Zoom but.

Private Member Functions

 GUIGlChildWindow (const GUIGlChildWindow &)=delete
 Invalidated copy constructor.
GUIGlChildWindowoperator= (const GUIGlChildWindow &)=delete
 Invalidated assignment operator.

Detailed Description

Definition at line 39 of file GUIGlChildWindow.h.

Constructor & Destructor Documentation

◆ GUIGlChildWindow() [1/2]

GUIGlChildWindow::GUIGlChildWindow ( FXMDIClient * p,
GUIMainWindow * GUIMainWindowParent,
FXMDIMenu * mdimenu,
const FXString & name,
FXMenuBar * gripNavigationToolbar,
FXIcon * ic = NULL,
FXuint opts = 0,
FXint x = 0,
FXint y = 0,
FXint w = 0,
FXint h = 0 )

◆ ~GUIGlChildWindow()

GUIGlChildWindow::~GUIGlChildWindow ( )
virtual

destructor

Definition at line 80 of file GUIGlChildWindow.cpp.

References myLocatorPopup, and myStaticNavigationToolBar.

◆ GUIGlChildWindow() [2/2]

GUIGlChildWindow::GUIGlChildWindow ( const GUIGlChildWindow & )
privatedelete

Invalidated copy constructor.

References GUIGlChildWindow().

Member Function Documentation

◆ buildColoringToolBar()

void GUIGlChildWindow::buildColoringToolBar ( )
protected

build coloring toolbar

Definition at line 153 of file GUIGlChildWindow.cpp.

References COLORWHEEL, GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignComboBoxStatic, GUIDesignComboBoxVisibleItems, GUIDesignVerticalSeparator, MID_COLORSCHEMECHANGE, MID_HOTKEY_F9_EDIT_VIEWSCHEME, myColoringSchemes, myGripNavigationToolbar, myGUIMainWindowParent, myStaticNavigationToolBar, and TL.

Referenced by GUIGlChildWindow().

Here is the caller graph for this function:

◆ buildNavigationToolBar()

void GUIGlChildWindow::buildNavigationToolBar ( )
protected

◆ buildScreenshotToolBar()

void GUIGlChildWindow::buildScreenshotToolBar ( )
protected

build screenshot toolbar

Definition at line 167 of file GUIGlChildWindow.cpp.

References CAMERA, GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignVerticalSeparator, MID_MAKESNAPSHOT, myGripNavigationToolbar, myGUIMainWindowParent, myStaticNavigationToolBar, and TL.

Referenced by GUIGlChildWindow().

Here is the caller graph for this function:

◆ create()

void GUIGlChildWindow::create ( )
virtual

create GUIGlChildWindow

Definition at line 90 of file GUIGlChildWindow.cpp.

References myGripNavigationToolbar, myLocatorPopup, myStaticNavigationToolBar, and myView.

Referenced by GNEViewParent::GNEViewParent(), and GUIApplicationWindow::openNewView().

Here is the caller graph for this function:

◆ getBuildGLCanvas()

FXGLCanvas * GUIGlChildWindow::getBuildGLCanvas ( ) const
virtual

get build GL Canvas

Definition at line 178 of file GUIGlChildWindow.cpp.

References myView.

Referenced by GUIApplicationWindow::getBuildGLCanvas().

Here is the caller graph for this function:

◆ getColoringSchemesCombo()

MFXComboBoxIcon * GUIGlChildWindow::getColoringSchemesCombo ( )

return combobox with the current coloring schemes (standard, fastest standard, real world...)

Definition at line 196 of file GUIGlChildWindow.cpp.

References myColoringSchemes.

Referenced by GNEViewNet::buildViewToolBars(), and GUIViewTraffic::buildViewToolBars().

Here is the caller graph for this function:

◆ getGUIMainWindowParent()

GUIMainWindow * GUIGlChildWindow::getGUIMainWindowParent ( )

Returns the GUIMainWindow parent.

Definition at line 110 of file GUIGlChildWindow.cpp.

References myGUIMainWindowParent.

◆ getLocatorPopup()

FXPopup * GUIGlChildWindow::getLocatorPopup ( )

@ brief return a pointer to locator popup

Definition at line 190 of file GUIGlChildWindow.cpp.

References myLocatorPopup.

Referenced by GNEViewNet::buildViewToolBars(), and GUIViewTraffic::buildViewToolBars().

Here is the caller graph for this function:

◆ getNavigationToolBar()

FXToolBar * GUIGlChildWindow::getNavigationToolBar ( GUISUMOAbstractView & v)

return a reference to navigation toolbar

Definition at line 184 of file GUIGlChildWindow.cpp.

References myGripNavigationToolbar, and myStaticNavigationToolBar.

◆ getObjectIDs()

virtual std::vector< GUIGlID > GUIGlChildWindow::getObjectIDs ( int messageId) const
inlinevirtual

Reimplemented in GUISUMOViewParent.

Definition at line 77 of file GUIGlChildWindow.h.

References UNUSED_PARAMETER.

◆ getShowToolTipsMenu()

MFXCheckableButton * GUIGlChildWindow::getShowToolTipsMenu ( ) const

get menu for tooltips menu

Definition at line 202 of file GUIGlChildWindow.cpp.

References myShowToolTipsMenu.

◆ getView()

◆ isSelected()

bool GUIGlChildWindow::isSelected ( GUIGlObject * o) const
virtual

true if the object is selected (may include extra logic besides calling gSelected)

Reimplemented in GUISUMOViewParent.

Definition at line 279 of file GUIGlChildWindow.cpp.

References GUIGlObject::getGlID(), GUIGlObject::getType(), and gSelected.

◆ onCmdChangeColorScheme()

long GUIGlChildWindow::onCmdChangeColorScheme ( FXObject * ,
FXSelector sel,
void * ptr )

Definition at line 264 of file GUIGlChildWindow.cpp.

References myView.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdEditViewport()

long GUIGlChildWindow::onCmdEditViewport ( FXObject * ,
FXSelector ,
void *  )

Definition at line 216 of file GUIGlChildWindow.cpp.

References myView.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdEditViewScheme()

long GUIGlChildWindow::onCmdEditViewScheme ( FXObject * ,
FXSelector ,
void *  )

Definition at line 223 of file GUIGlChildWindow.cpp.

References myView.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRecenterView()

long GUIGlChildWindow::onCmdRecenterView ( FXObject * ,
FXSelector ,
void *  )

Definition at line 208 of file GUIGlChildWindow.cpp.

References myView.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowToolTipsMenu()

long GUIGlChildWindow::onCmdShowToolTipsMenu ( FXObject * sender,
FXSelector ,
void *  )

Definition at line 241 of file GUIGlChildWindow.cpp.

References myGUIMainWindowParent, and myShowToolTipsMenu.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowToolTipsView()

long GUIGlChildWindow::onCmdShowToolTipsView ( FXObject * sender,
FXSelector ,
void *  )

Definition at line 230 of file GUIGlChildWindow.cpp.

References myGUIMainWindowParent, and myShowToolTipsView.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdZoomStyle()

long GUIGlChildWindow::onCmdZoomStyle ( FXObject * sender,
FXSelector ,
void *  )

Definition at line 254 of file GUIGlChildWindow.cpp.

References myView, and myZoomStyle.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GUIGlChildWindow & GUIGlChildWindow::operator= ( const GUIGlChildWindow & )
privatedelete

Invalidated assignment operator.

References GUIGlChildWindow().

◆ setView()

void GUIGlChildWindow::setView ( GUIGlID id)

Centers the view onto the given artifact.

Parameters
[in]idThe id of the object to center the view on

Definition at line 271 of file GUIGlChildWindow.cpp.

References myView.

Referenced by GUIMessageWindow::setCursorPos().

Here is the caller graph for this function:

Field Documentation

◆ myChildWindowContentFrame

FXVerticalFrame* GUIGlChildWindow::myChildWindowContentFrame = nullptr
protected

The contents frame.

Definition at line 132 of file GUIGlChildWindow.h.

Referenced by GNEViewParent::GNEViewParent(), GUIGlChildWindow(), and GUISUMOViewParent::init().

◆ myColoringSchemes

MFXComboBoxIcon* GUIGlChildWindow::myColoringSchemes = nullptr
protected

The coloring schemes.

Definition at line 135 of file GUIGlChildWindow.h.

Referenced by buildColoringToolBar(), and getColoringSchemesCombo().

◆ myGripNavigationToolbar

FXMenuBar* GUIGlChildWindow::myGripNavigationToolbar = nullptr
protected

◆ myGUIMainWindowParent

◆ myLocatorButton

MFXMenuButtonTooltip* GUIGlChildWindow::myLocatorButton = nullptr
protected

The locator button.

Definition at line 123 of file GUIGlChildWindow.h.

Referenced by buildNavigationToolBar(), GNEViewParent::onCmdLocate(), and GUISUMOViewParent::onCmdLocate().

◆ myLocatorPopup

FXPopup* GUIGlChildWindow::myLocatorPopup = nullptr
protected

◆ myShowToolTipsMenu

MFXCheckableButton* GUIGlChildWindow::myShowToolTipsMenu = nullptr
protected

menu for tooltips menu

Definition at line 129 of file GUIGlChildWindow.h.

Referenced by buildNavigationToolBar(), getShowToolTipsMenu(), and onCmdShowToolTipsMenu().

◆ myShowToolTipsView

MFXCheckableButton* GUIGlChildWindow::myShowToolTipsView = nullptr
protected

menu for tooltips view

Definition at line 126 of file GUIGlChildWindow.h.

Referenced by buildNavigationToolBar(), and onCmdShowToolTipsView().

◆ myStaticNavigationToolBar

◆ myView

◆ myZoomStyle

MFXCheckableButton* GUIGlChildWindow::myZoomStyle = nullptr
protected

Zoom but.

Definition at line 117 of file GUIGlChildWindow.h.

Referenced by buildNavigationToolBar(), and onCmdZoomStyle().


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