Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIGlChildWindow.h>
Public Member Functions | |
virtual void | create () |
create GUIGlChildWindow | |
virtual FXGLCanvas * | getBuildGLCanvas () const |
get build GL Canvas | |
MFXComboBoxIcon * | getColoringSchemesCombo () |
return combobox with the current coloring schemes (standard, fastest standard, real world...) | |
GUIMainWindow * | getGUIMainWindowParent () |
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< GUIGlID > | getObjectIDs (int messageId) const |
MFXCheckableButton * | getShowToolTipsMenu () const |
get menu for tooltips menu | |
GUISUMOAbstractView * | getView () 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. | |
MFXComboBoxIcon * | myColoringSchemes = nullptr |
The coloring schemes. | |
FXMenuBar * | myGripNavigationToolbar = nullptr |
The grip navigation tool bar. | |
GUIMainWindow * | myGUIMainWindowParent = nullptr |
FOX needs this. | |
MFXMenuButtonTooltip * | myLocatorButton = nullptr |
The locator button. | |
FXPopup * | myLocatorPopup = nullptr |
The locator menu. | |
MFXCheckableButton * | myShowToolTipsMenu = nullptr |
menu for tooltips menu | |
MFXCheckableButton * | myShowToolTipsView = nullptr |
menu for tooltips view | |
FXToolBar * | myStaticNavigationToolBar = nullptr |
The static navigation tool bar. | |
GUISUMOAbstractView * | myView = nullptr |
The view. | |
MFXCheckableButton * | myZoomStyle = nullptr |
Zoom but. | |
Private Member Functions | |
GUIGlChildWindow (const GUIGlChildWindow &)=delete | |
Invalidated copy constructor. | |
GUIGlChildWindow & | operator= (const GUIGlChildWindow &)=delete |
Invalidated assignment operator. | |
Definition at line 39 of file GUIGlChildWindow.h.
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.
|
virtual |
destructor
Definition at line 79 of file GUIGlChildWindow.cpp.
References myLocatorPopup, and myStaticNavigationToolBar.
|
privatedelete |
Invalidated copy constructor.
|
protected |
build coloring toolbar
Definition at line 152 of file GUIGlChildWindow.cpp.
References COLORWHEEL, GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), GUIDesignButtonToolbar, GUIDesignComboBoxNCol, GUIDesignComboBoxStatic, GUIDesignComboBoxVisibleItemsSmall, GUIDesignVerticalSeparator, MID_COLORSCHEMECHANGE, MID_HOTKEY_F9_EDIT_VIEWSCHEME, myColoringSchemes, myGripNavigationToolbar, myGUIMainWindowParent, myStaticNavigationToolBar, and TL.
|
protected |
build navigation toolbar
Definition at line 115 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), EDITVIEWPORT, MFXStaticToolTip::enableStaticToolTip(), GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), GUIMainWindow::getStaticTooltipView(), GUIDesignButtonToolbar, GUIDesignButtonToolbarLocator, GUIDesignMFXCheckableButtonSquare, LOCATE, MID_HOTKEY_CTRL_I_EDITVIEWPORT, MID_RECENTERVIEW, MID_SHOWTOOLTIPS_MENU, MID_SHOWTOOLTIPS_VIEW, MID_ZOOM_STYLE, myGripNavigationToolbar, myGUIMainWindowParent, myLocatorButton, myLocatorPopup, myShowToolTipsMenu, myShowToolTipsView, myStaticNavigationToolBar, myZoomStyle, RECENTERVIEW, MFXCheckableButton::setChecked(), SHOWTOOLTIPS_MENU, SHOWTOOLTIPS_VIEW, TL, TLC, and ZOOMSTYLE.
|
protected |
build screenshot toolbar
Definition at line 166 of file GUIGlChildWindow.cpp.
References CAMERA, GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), GUIDesignButtonToolbar, GUIDesignVerticalSeparator, MID_MAKESNAPSHOT, myGripNavigationToolbar, myGUIMainWindowParent, myStaticNavigationToolBar, and TL.
|
virtual |
create GUIGlChildWindow
Definition at line 89 of file GUIGlChildWindow.cpp.
References myGripNavigationToolbar, myLocatorPopup, myStaticNavigationToolBar, and myView.
Referenced by GNEViewParent::GNEViewParent(), and GUIApplicationWindow::openNewView().
|
virtual |
get build GL Canvas
Definition at line 177 of file GUIGlChildWindow.cpp.
References myView.
Referenced by GUIApplicationWindow::getBuildGLCanvas().
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().
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().
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().
FXToolBar * GUIGlChildWindow::getNavigationToolBar | ( | GUISUMOAbstractView & | v | ) |
return a reference to navigation toolbar
Definition at line 183 of file GUIGlChildWindow.cpp.
References myGripNavigationToolbar, and myStaticNavigationToolBar.
|
inlinevirtual |
Reimplemented in GUISUMOViewParent.
Definition at line 77 of file GUIGlChildWindow.h.
References UNUSED_PARAMETER.
Referenced by GUIDialog_ChooserAbstract::onCmdUpdate().
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().
GUISUMOAbstractView * GUIGlChildWindow::getView | ( | ) | const |
return GUISUMOAbstractView
Definition at line 103 of file GUIGlChildWindow.cpp.
References myView.
Referenced by GUIMainWindow::getActiveView(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIDialog_ChooserAbstract::onCmdAddListSelection(), GUIDialog_ChooserAbstract::onCmdCenter(), GUIDialog_ChooserAbstract::onCmdClearListSelection(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdOpenShapes(), GUIApplicationWindow::onCmdShowStats(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), GUIApplicationWindow::onCmdToggleSecondaryShape(), GUIDialog_ChooserAbstract::onCmdToggleSelection(), GUIDialog_ChooserAbstract::onCmdTrack(), and GUIApplicationWindow::openNewView().
|
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().
long GUIGlChildWindow::onCmdChangeColorScheme | ( | FXObject * | , |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 263 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::setColorScheme().
Referenced by FXDEFMAP().
long GUIGlChildWindow::onCmdEditViewport | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 215 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::showViewportEditor().
Referenced by FXDEFMAP().
long GUIGlChildWindow::onCmdEditViewScheme | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 222 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::showViewschemeEditor().
Referenced by FXDEFMAP().
long GUIGlChildWindow::onCmdRecenterView | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 207 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::recenterView().
Referenced by FXDEFMAP().
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().
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().
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().
|
privatedelete |
Invalidated assignment operator.
void GUIGlChildWindow::setView | ( | GUIGlID | id | ) |
Centers the view onto the given artifact.
[in] | id | The 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().
|
protected |
The contents frame.
Definition at line 132 of file GUIGlChildWindow.h.
Referenced by GUISUMOViewParent::init().
|
protected |
The coloring schemes.
Definition at line 135 of file GUIGlChildWindow.h.
Referenced by buildColoringToolBar(), and getColoringSchemesCombo().
|
protected |
The grip navigation tool bar.
Definition at line 108 of file GUIGlChildWindow.h.
Referenced by buildColoringToolBar(), buildNavigationToolBar(), buildScreenshotToolBar(), GUISUMOViewParent::buildSpeedControlToolbar(), create(), and getNavigationToolBar().
|
protected |
FOX needs this.
The parent window
Definition at line 105 of file GUIGlChildWindow.h.
Referenced by buildColoringToolBar(), buildNavigationToolBar(), buildScreenshotToolBar(), GNEViewParent::getGUIMainWindow(), getGUIMainWindowParent(), GUISUMOViewParent::getObjectIDs(), GUISUMOViewParent::init(), GNEViewParent::onCmdClose(), onCmdShowToolTipsMenu(), onCmdShowToolTipsView(), GNEViewParent::~GNEViewParent(), and GUISUMOViewParent::~GUISUMOViewParent().
|
protected |
The locator button.
Definition at line 123 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), GUISUMOViewParent::onCmdLocate(), and GNEViewParent::onCmdLocate().
|
protected |
The locator menu.
Definition at line 120 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), create(), getLocatorPopup(), GUISUMOViewParent::onCmdLocate(), GNEViewParent::onCmdLocate(), and ~GUIGlChildWindow().
|
protected |
menu for tooltips menu
Definition at line 129 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), getShowToolTipsMenu(), and onCmdShowToolTipsMenu().
|
protected |
menu for tooltips view
Definition at line 126 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), and onCmdShowToolTipsView().
|
protected |
The static navigation tool bar.
Definition at line 111 of file GUIGlChildWindow.h.
Referenced by buildColoringToolBar(), buildNavigationToolBar(), buildScreenshotToolBar(), GUISUMOViewParent::buildSpeedControlToolbar(), create(), getNavigationToolBar(), GUISUMOViewParent::init(), GUISUMOViewParent::setToolBarVisibility(), and ~GUIGlChildWindow().
|
protected |
The view.
Definition at line 114 of file GUIGlChildWindow.h.
Referenced by create(), getBuildGLCanvas(), getView(), GUISUMOViewParent::init(), onCmdChangeColorScheme(), onCmdEditViewport(), onCmdEditViewScheme(), GNEViewParent::onCmdLocate(), GUISUMOViewParent::onCmdMakeSnapshot(), GNEViewParent::onCmdMakeSnapshot(), onCmdRecenterView(), GUISUMOViewParent::onCmdSpeedFactor(), onCmdZoomStyle(), GUISUMOViewParent::onKeyPress(), GNEViewParent::onKeyPress(), GUISUMOViewParent::onKeyRelease(), GNEViewParent::onKeyRelease(), GUISUMOViewParent::onSimStep(), GUISUMOViewParent::onUpdSpeedFactor(), and setView().
|
protected |
Zoom but.
Definition at line 117 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), and onCmdZoomStyle().