![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIGlChildWindow.h>
Public Member Functions | |
| virtual void | create () |
| create GUIGlChildWindow More... | |
| virtual FXGLCanvas * | getBuildGLCanvas () const |
| get build GL Canvas More... | |
| FXComboBox * | getColoringSchemesCombo () |
| return combobox with the current coloring schemes (standard, fastest standard, real world...) More... | |
| FXPopup * | getLocatorPopup () |
| @ brief return a pointer to locator popup More... | |
| FXToolBar * | getNavigationToolBar (GUISUMOAbstractView &v) |
| return a reference to navigation toolbar More... | |
| GUIMainWindow * | getParent () |
| Returns the main window. More... | |
| GUISUMOAbstractView * | getView () const |
| return GUISUMOAbstractView More... | |
| GUIGlChildWindow (FXMDIClient *p, GUIMainWindow *parentWindow, 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 | onCmdShowToolTips (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 | |
| FXComboBox * | myColoringSchemes |
| The coloring schemes. More... | |
| FXVerticalFrame * | myContentFrame |
| The contents frame. More... | |
| FXMenuBar * | myGripNavigationToolbar |
| The grip navigation tool bar. More... | |
| FXMenuButton * | myLocatorButton |
| The locator button. More... | |
| FXPopup * | myLocatorPopup |
| The locator menu. More... | |
| GUIMainWindow * | myParent |
| The parent window. More... | |
| FXToolBar * | myStaticNavigationToolBar |
| The static navigation tool bar. More... | |
| GUISUMOAbstractView * | myView |
| The view. More... | |
Private Member Functions | |
| GUIGlChildWindow (const GUIGlChildWindow &)=delete | |
| Invalidated copy constructor. More... | |
| GUIGlChildWindow & | operator= (const GUIGlChildWindow &)=delete |
| Invalidated assignment operator. More... | |
Definition at line 40 of file GUIGlChildWindow.h.
| GUIGlChildWindow::GUIGlChildWindow | ( | FXMDIClient * | p, |
| GUIMainWindow * | parentWindow, | ||
| 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 53 of file GUIGlChildWindow.cpp.
References GUIDesignFrameArea, and GUIDesignToolbarMenuBar.
|
virtual |
destructor
Definition at line 75 of file GUIGlChildWindow.cpp.
References myLocatorPopup, and myStaticNavigationToolBar.
|
privatedelete |
Invalidated copy constructor.
|
protected |
build coloring toolbar
Definition at line 140 of file GUIGlChildWindow.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignComboBoxNCol, GUIDesignComboBoxStatic, GUIDesignVerticalSeparator, ICON_COLORWHEEL, MID_COLOURSCHEMECHANGE, MID_HOTKEY_F9_EDIT_VIEWSCHEME, myColoringSchemes, myGripNavigationToolbar, and myStaticNavigationToolBar.
|
protected |
build navigation toolbar
Definition at line 111 of file GUIGlChildWindow.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignButtonToolbarCheckable, GUIDesignButtonToolbarLocator, ICON_EDITVIEWPORT, ICON_LOCATE, ICON_RECENTERVIEW, ICON_SHOWTOOLTIPS, ICON_ZOOMSTYLE, MID_HOTKEY_CTRL_I_EDITVIEWPORT, MID_RECENTERVIEW, MID_SHOWTOOLTIPS, MID_ZOOM_STYLE, myGripNavigationToolbar, myLocatorButton, myLocatorPopup, myStaticNavigationToolBar, and MFXCheckableButton::setChecked().
|
protected |
build screenshot toolbar
Definition at line 154 of file GUIGlChildWindow.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignVerticalSeparator, ICON_CAMERA, MID_MAKESNAPSHOT, myGripNavigationToolbar, and myStaticNavigationToolBar.
|
virtual |
create GUIGlChildWindow
Definition at line 85 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 165 of file GUIGlChildWindow.cpp.
References myView.
Referenced by GUIApplicationWindow::getBuildGLCanvas().
| FXComboBox * GUIGlChildWindow::getColoringSchemesCombo | ( | ) |
return combobox with the current coloring schemes (standard, fastest standard, real world...)
Definition at line 183 of file GUIGlChildWindow.cpp.
References myColoringSchemes.
Referenced by GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), and GUISUMOAbstractView::getColoringSchemesCombo().
| FXPopup * GUIGlChildWindow::getLocatorPopup | ( | ) |
@ brief return a pointer to locator popup
Definition at line 177 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 171 of file GUIGlChildWindow.cpp.
References myGripNavigationToolbar, and myStaticNavigationToolBar.
| GUIMainWindow * GUIGlChildWindow::getParent | ( | ) |
Returns the main window.
Definition at line 105 of file GUIGlChildWindow.cpp.
References myParent.
Referenced by GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser().
| GUISUMOAbstractView * GUIGlChildWindow::getView | ( | ) | const |
return GUISUMOAbstractView
Definition at line 99 of file GUIGlChildWindow.cpp.
References myView.
Referenced by GUIMainWindow::getActiveView(), TraCIServerAPI_GUI::getNamedView(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIDialog_GLObjChooser::onCmdCenter(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdOpenShapes(), GUIApplicationWindow::onCmdShowStats(), GUIDialog_GLObjChooser::onCmdToggleSelection(), GUIDialog_GLObjChooser::onCmdTrack(), and GUIApplicationWindow::openNewView().
|
virtual |
true if the object is selected (may include extra logic besides calling gSelected)
Reimplemented in GUISUMOViewParent.
Definition at line 254 of file GUIGlChildWindow.cpp.
References GUIGlObject::getGlID(), GUIGlObject::getType(), gSelected, and GUISelectedStorage::isSelected().
Referenced by GUIDialog_GLObjChooser::refreshList().
| long GUIGlChildWindow::onCmdChangeColorScheme | ( | FXObject * | , |
| FXSelector | sel, | ||
| void * | data | ||
| ) |
Definition at line 239 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::setColorScheme().
| long GUIGlChildWindow::onCmdEditViewport | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 197 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::showViewportEditor().
| long GUIGlChildWindow::onCmdEditViewScheme | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 204 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::showViewschemeEditor().
| long GUIGlChildWindow::onCmdRecenterView | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 189 of file GUIGlChildWindow.cpp.
References myView, and GUISUMOAbstractView::recenterView().
| long GUIGlChildWindow::onCmdShowToolTips | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 211 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), myView, MFXCheckableButton::setChecked(), and GUISUMOAbstractView::showToolTips().
| long GUIGlChildWindow::onCmdZoomStyle | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 225 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), myView, and MFXCheckableButton::setChecked().
|
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 246 of file GUIGlChildWindow.cpp.
References GUISUMOAbstractView::centerTo(), and myView.
Referenced by GUIDialog_GLObjChooser::onCmdCenter(), GUIDialog_GLObjChooser::onCmdText(), GUIDialog_GLObjChooser::onCmdTrack(), and GUIMessageWindow::setCursorPos().
|
protected |
The coloring schemes.
Definition at line 117 of file GUIGlChildWindow.h.
Referenced by buildColoringToolBar(), and getColoringSchemesCombo().
|
protected |
The contents frame.
Definition at line 114 of file GUIGlChildWindow.h.
Referenced by GUISUMOViewParent::init().
|
protected |
The grip navigation tool bar.
Definition at line 99 of file GUIGlChildWindow.h.
Referenced by buildColoringToolBar(), buildNavigationToolBar(), buildScreenshotToolBar(), GUISUMOViewParent::buildSpeedControlToolbar(), create(), and getNavigationToolBar().
|
protected |
The locator button.
Definition at line 111 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), GUISUMOViewParent::onCmdLocate(), and GNEViewParent::onCmdLocate().
|
protected |
The locator menu.
Definition at line 108 of file GUIGlChildWindow.h.
Referenced by buildNavigationToolBar(), create(), getLocatorPopup(), GUISUMOViewParent::onCmdLocate(), GNEViewParent::onCmdLocate(), and ~GUIGlChildWindow().
|
protected |
The parent window.
Definition at line 96 of file GUIGlChildWindow.h.
Referenced by GNEViewParent::getGUIMainWindow(), getParent(), GUISUMOViewParent::init(), GNEViewParent::onCmdClose(), GUISUMOViewParent::onCmdLocate(), GNEViewParent::~GNEViewParent(), and GUISUMOViewParent::~GUISUMOViewParent().
|
protected |
The static navigation tool bar.
Definition at line 102 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 105 of file GUIGlChildWindow.h.
Referenced by create(), getBuildGLCanvas(), getView(), GUISUMOViewParent::init(), onCmdChangeColorScheme(), onCmdEditViewport(), onCmdEditViewScheme(), GNEViewParent::onCmdLocate(), GUISUMOViewParent::onCmdMakeSnapshot(), GNEViewParent::onCmdMakeSnapshot(), onCmdRecenterView(), onCmdShowToolTips(), GUISUMOViewParent::onCmdSpeedFactor(), onCmdZoomStyle(), GUISUMOViewParent::onKeyPress(), GNEViewParent::onKeyPress(), GUISUMOViewParent::onKeyRelease(), GNEViewParent::onKeyRelease(), GUISUMOViewParent::onSimStep(), GUISUMOViewParent::onUpdSpeedFactor(), and setView().