![]() |
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 58 of file GUIGlChildWindow.cpp.
References buildColoringToolBar(), buildNavigationToolBar(), buildScreenshotToolBar(), GUIDesignChildWindowContentFrame, GUIDesignToolbarMenuBar, GUIGlChildWindow(), myChildWindowContentFrame, myGripNavigationToolbar, myGUIMainWindowParent, myStaticNavigationToolBar, and myView.
Referenced by GNEViewParent::GNEViewParent(), GUIGlChildWindow(), GUIGlChildWindow(), GUISUMOViewParent::GUISUMOViewParent(), and operator=().
|
virtual |
destructor
Definition at line 80 of file GUIGlChildWindow.cpp.
References myLocatorPopup, and myStaticNavigationToolBar.
|
privatedelete |
Invalidated copy constructor.
References GUIGlChildWindow().
|
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().
|
protected |
build navigation toolbar
Definition at line 116 of file GUIGlChildWindow.cpp.
References EDITVIEWPORT, GUIIconSubSys::getIcon(), 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, SHOWTOOLTIPS_MENU, SHOWTOOLTIPS_VIEW, TL, TLC, and ZOOMSTYLE.
Referenced by GUIGlChildWindow().
|
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().
|
virtual |
create GUIGlChildWindow
Definition at line 90 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 178 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 196 of file GUIGlChildWindow.cpp.
References myColoringSchemes.
Referenced by GNEViewNet::buildViewToolBars(), and GUIViewTraffic::buildViewToolBars().
| GUIMainWindow * GUIGlChildWindow::getGUIMainWindowParent | ( | ) |
Returns the GUIMainWindow parent.
Definition at line 110 of file GUIGlChildWindow.cpp.
References myGUIMainWindowParent.
| 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().
| FXToolBar * GUIGlChildWindow::getNavigationToolBar | ( | GUISUMOAbstractView & | v | ) |
return a reference to navigation toolbar
Definition at line 184 of file GUIGlChildWindow.cpp.
References myGripNavigationToolbar, and myStaticNavigationToolBar.
|
inlinevirtual |
Reimplemented in GUISUMOViewParent.
Definition at line 77 of file GUIGlChildWindow.h.
References UNUSED_PARAMETER.
| MFXCheckableButton * GUIGlChildWindow::getShowToolTipsMenu | ( | ) | const |
get menu for tooltips menu
Definition at line 202 of file GUIGlChildWindow.cpp.
References myShowToolTipsMenu.
| GUISUMOAbstractView * GUIGlChildWindow::getView | ( | ) | const |
return GUISUMOAbstractView
Definition at line 104 of file GUIGlChildWindow.cpp.
References myView.
Referenced by GUIMainWindow::getActiveView(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdOpenShapes(), GUIApplicationWindow::onCmdShowStats(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), GUIApplicationWindow::onCmdToggleSecondaryShape(), and GUIApplicationWindow::openNewView().
|
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.
| long GUIGlChildWindow::onCmdChangeColorScheme | ( | FXObject * | , |
| FXSelector | sel, | ||
| void * | ptr ) |
Definition at line 264 of file GUIGlChildWindow.cpp.
References myView.
Referenced by FXDEFMAP().
| long GUIGlChildWindow::onCmdEditViewport | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Definition at line 216 of file GUIGlChildWindow.cpp.
References myView.
Referenced by FXDEFMAP().
| long GUIGlChildWindow::onCmdEditViewScheme | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Definition at line 223 of file GUIGlChildWindow.cpp.
References myView.
Referenced by FXDEFMAP().
| long GUIGlChildWindow::onCmdRecenterView | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Definition at line 208 of file GUIGlChildWindow.cpp.
References myView.
Referenced by FXDEFMAP().
| long GUIGlChildWindow::onCmdShowToolTipsMenu | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ) |
Definition at line 241 of file GUIGlChildWindow.cpp.
References myGUIMainWindowParent, and myShowToolTipsMenu.
Referenced by FXDEFMAP().
| long GUIGlChildWindow::onCmdShowToolTipsView | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ) |
Definition at line 230 of file GUIGlChildWindow.cpp.
References myGUIMainWindowParent, and myShowToolTipsView.
Referenced by FXDEFMAP().
| long GUIGlChildWindow::onCmdZoomStyle | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | ) |
Definition at line 254 of file GUIGlChildWindow.cpp.
References myView, and myZoomStyle.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
References GUIGlChildWindow().
| 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 271 of file GUIGlChildWindow.cpp.
References myView.
Referenced by GUIMessageWindow::setCursorPos().
|
protected |
The contents frame.
Definition at line 132 of file GUIGlChildWindow.h.
Referenced by GNEViewParent::GNEViewParent(), GUIGlChildWindow(), and 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(), getNavigationToolBar(), GNEViewParent::GNEViewParent(), and GUIGlChildWindow().
|
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(), GNEViewParent::GNEViewParent(), GUIGlChildWindow(), GUISUMOViewParent::GUISUMOViewParent(), 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(), GNEViewParent::onCmdLocate(), and GUISUMOViewParent::onCmdLocate().
|
protected |
The locator menu.
Definition at line 120 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), create(), getLocatorPopup(), GNEViewParent::onCmdLocate(), GUISUMOViewParent::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(), GUIGlChildWindow(), GUISUMOViewParent::init(), GUISUMOViewParent::setToolBarVisibility(), and ~GUIGlChildWindow().
|
protected |
The view.
Definition at line 114 of file GUIGlChildWindow.h.
Referenced by create(), getBuildGLCanvas(), getView(), GNEViewParent::GNEViewParent(), GUIGlChildWindow(), GUISUMOViewParent::init(), onCmdChangeColorScheme(), onCmdEditViewport(), onCmdEditViewScheme(), GNEViewParent::onCmdLocate(), GNEViewParent::onCmdMakeSnapshot(), GUISUMOViewParent::onCmdMakeSnapshot(), onCmdRecenterView(), GUISUMOViewParent::onCmdSpeedFactor(), onCmdZoomStyle(), GNEViewParent::onKeyPress(), GUISUMOViewParent::onKeyPress(), GNEViewParent::onKeyRelease(), GUISUMOViewParent::onKeyRelease(), GUISUMOViewParent::onSimStep(), GUISUMOViewParent::onUpdSpeedFactor(), and setView().
|
protected |
Zoom but.
Definition at line 117 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), and onCmdZoomStyle().