Eclipse SUMO - Simulation of Urban MObility
GUIGlChildWindow Class Reference

#include <GUIGlChildWindow.h>

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

Public Member Functions

virtual void create ()
 create GUIGlChildWindow More...
 
virtual FXGLCanvas * getBuildGLCanvas () const
 get build GL Canvas More...
 
MFXComboBoxIcongetColoringSchemesCombo ()
 return combobox with the current coloring schemes (standard, fastest standard, real world...) More...
 
GUIMainWindowgetGUIMainWindowParent ()
 Returns the GUIMainWindow parent. More...
 
FXPopup * getLocatorPopup ()
 @ brief return a pointer to locator popup More...
 
FXToolBar * getNavigationToolBar (GUISUMOAbstractView &v)
 return a reference to navigation toolbar More...
 
virtual std::vector< GUIGlIDgetObjectIDs (int messageId) const
 
MFXCheckableButtongetShowToolTipsMenu () const
 get menu for tooltips menu More...
 
GUISUMOAbstractViewgetView () const
 return GUISUMOAbstractView More...
 
 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 More...
 
virtual bool isSelected (GUIGlObject *o) const
 true if the object is selected (may include extra logic besides calling gSelected) More...
 
void setView (GUIGlID id)
 Centers the view onto the given artifact. More...
 
virtual ~GUIGlChildWindow ()
 destructor More...
 
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 More...
 
void buildNavigationToolBar ()
 build navigation toolbar More...
 
void buildScreenshotToolBar ()
 build screenshot toolbar More...
 

Protected Attributes

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

Private Member Functions

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

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 
)

constructor

Definition at line 57 of file GUIGlChildWindow.cpp.

References GUIDesignChildWindowContentFrame, and GUIDesignToolbarMenuBar.

◆ ~GUIGlChildWindow()

GUIGlChildWindow::~GUIGlChildWindow ( )
virtual

destructor

Definition at line 79 of file GUIGlChildWindow.cpp.

References myLocatorPopup, and myStaticNavigationToolBar.

◆ GUIGlChildWindow() [2/2]

GUIGlChildWindow::GUIGlChildWindow ( const GUIGlChildWindow )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildColoringToolBar()

◆ buildNavigationToolBar()

◆ buildScreenshotToolBar()

void GUIGlChildWindow::buildScreenshotToolBar ( )
protected

◆ create()

void GUIGlChildWindow::create ( )
virtual

create GUIGlChildWindow

Definition at line 89 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 177 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 195 of file GUIGlChildWindow.cpp.

References myColoringSchemes.

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

Here is the caller graph for this function:

◆ getGUIMainWindowParent()

GUIMainWindow * GUIGlChildWindow::getGUIMainWindowParent ( )

Returns the GUIMainWindow parent.

Definition at line 109 of file GUIGlChildWindow.cpp.

References myGUIMainWindowParent.

Referenced by MFXDecalsTable::Column::Column(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTipFor(), GUISUMOAbstractView::updateToolTip(), and GUIDialog_ChooserAbstract::~GUIDialog_ChooserAbstract().

Here is the caller graph for this function:

◆ getLocatorPopup()

FXPopup * GUIGlChildWindow::getLocatorPopup ( )

@ brief return a pointer to locator popup

Definition at line 189 of file GUIGlChildWindow.cpp.

References myLocatorPopup.

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

Here is the caller graph for this function:

◆ getNavigationToolBar()

FXToolBar * GUIGlChildWindow::getNavigationToolBar ( GUISUMOAbstractView v)

return a reference to navigation toolbar

Definition at line 183 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.

Referenced by GUIDialog_ChooserAbstract::onCmdUpdate().

Here is the caller graph for this function:

◆ getShowToolTipsMenu()

MFXCheckableButton * GUIGlChildWindow::getShowToolTipsMenu ( ) const

get menu for tooltips menu

Definition at line 201 of file GUIGlChildWindow.cpp.

References myShowToolTipsMenu.

Referenced by GNEOptionsDialog::onCmdShowToolTipsMenu(), and GNEPythonToolDialog::onCmdShowToolTipsMenu().

Here is the caller graph for this function:

◆ 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 278 of file GUIGlChildWindow.cpp.

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

Referenced by GUIDialog_ChooserAbstract::refreshList().

Here is the caller graph for this function:

◆ onCmdChangeColorScheme()

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

Definition at line 263 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::setColorScheme().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdEditViewport()

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

Definition at line 215 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewportEditor().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdEditViewScheme()

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

Definition at line 222 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewschemeEditor().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRecenterView()

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

Definition at line 207 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::recenterView().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowToolTipsMenu()

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

Definition at line 240 of file GUIGlChildWindow.cpp.

References MFXCheckableButton::amChecked(), MFXStaticToolTip::enableStaticToolTip(), GUIMainWindow::getStaticTooltipMenu(), myGUIMainWindowParent, myShowToolTipsMenu, and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowToolTipsView()

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

Definition at line 229 of file GUIGlChildWindow.cpp.

References MFXCheckableButton::amChecked(), MFXStaticToolTip::enableStaticToolTip(), GUIMainWindow::getStaticTooltipView(), myGUIMainWindowParent, myShowToolTipsView, and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdZoomStyle()

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

Definition at line 253 of file GUIGlChildWindow.cpp.

References MFXCheckableButton::amChecked(), myView, myZoomStyle, and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ 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 270 of file GUIGlChildWindow.cpp.

References GUISUMOAbstractView::centerTo(), and myView.

Referenced by GUIDialog_ChooserAbstract::onCmdCenter(), GUIDialog_ChooserAbstract::onCmdText(), GUIDialog_ChooserAbstract::onCmdTrack(), and 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 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(), GUISUMOViewParent::onCmdLocate(), and GNEViewParent::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

FXToolBar* GUIGlChildWindow::myStaticNavigationToolBar = nullptr
protected

◆ 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: