![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A single child window which contains a view of the simulation area. More...
#include <GNEViewParent.h>
Data Structures | |
struct | ACChoosers |
struct for ACChoosers dialog More... | |
struct | Frames |
struct for Frames More... | |
Public Member Functions | |
virtual void | create () |
create GUIGlChildWindow More... | |
void | eraseACChooserDialog (GNEDialogACChooser *chooserDialog) |
remove created chooser dialog More... | |
GNEAdditionalFrame * | getAdditionalFrame () const |
get frame for GNE_NMODE_ADDITIONAL 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... | |
GNEConnectorFrame * | getConnectorFrame () const |
get frame for GNE_NMODE_CONNECT More... | |
GNECreateEdgeFrame * | getCreateEdgeFrame () const |
get frame for GNE_NMODE_CREATEEDGE More... | |
GNECrossingFrame * | getCrossingFrame () const |
get frame for GNE_NMODE_CROSSING More... | |
GNEFrame * | getCurrentShownFrame () const |
get current frame (note: it can be null) More... | |
GNEDeleteFrame * | getDeleteFrame () const |
get frame for GNE_NMODE_DELETE More... | |
GNEApplicationWindow * | getGNEAppWindows () const |
get GNE Application Windows More... | |
GUIMainWindow * | getGUIMainWindow () const |
get GUIMainWindow App More... | |
GNEInspectorFrame * | getInspectorFrame () const |
get frame for GNE_NMODE_INSPECT 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... | |
GNEPersonFrame * | getPersonFrame () const |
get frame for GNE_DMODE_PERSON More... | |
GNEPersonPlanFrame * | getPersonPlanFrame () const |
get frame for GNE_DMODE_PERSONFRAME More... | |
GNEPersonTypeFrame * | getPersonTypeFrame () const |
get frame for GNE_DMODE_PERSONTYPE More... | |
GNEPolygonFrame * | getPolygonFrame () const |
get frame for GNE_NMODE_POLYGON More... | |
GNEProhibitionFrame * | getProhibitionFrame () const |
get frame for GNE_NMODE_PROHIBITION More... | |
GNERouteFrame * | getRouteFrame () const |
get frame for GNE_DMODE_ROUTE More... | |
GNESelectorFrame * | getSelectorFrame () const |
get frame for GNE_NMODE_SELECT More... | |
GNEStopFrame * | getStopFrame () const |
get frame for GNE_DMODE_STOP More... | |
GNETAZFrame * | getTAZFrame () const |
get frame for GNE_NMODE_TAZ More... | |
GNETLSEditorFrame * | getTLSEditorFrame () const |
get frame for GNE_NMODE_TLS More... | |
GNEVehicleFrame * | getVehicleFrame () const |
get frame for GNE_DMODE_VEHICLE More... | |
GNEVehicleTypeFrame * | getVehicleTypeFrame () const |
get frame for GNE_DMODE_VEHICLETYPE More... | |
GUISUMOAbstractView * | getView () const |
return GUISUMOAbstractView More... | |
GNEViewParent (FXMDIClient *p, FXMDIMenu *mdimenu, const FXString &name, GNEApplicationWindow *parentWindow, FXGLCanvas *share, GNENet *net, GNEUndoList *undoList, FXIcon *ic=nullptr, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
FOX-declaration. More... | |
void | hideAllFrames () |
hide all frames More... | |
void | hideFramesArea () |
hide frames area if all GNEFrames are hidden 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... | |
void | showFramesArea () |
show frames area if at least a GNEFrame is showed More... | |
void | updateUndoRedoButtons () |
update toolbar undo/redo buttons (called when user press Ctrl+Z/Y) More... | |
~GNEViewParent () | |
Destructor. More... | |
FOX-callbacks | |
Called if the user wants to make a snapshot (screenshot) | |
long | onCmdMakeSnapshot (FXObject *sender, FXSelector, void *) |
long | onCmdClose (FXObject *, FXSelector, void *) |
Called when the user hits the close button (x) More... | |
long | onCmdLocate (FXObject *, FXSelector, void *) |
locator-callback More... | |
long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
Called when user press a key. More... | |
long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
Called when user releases a key. More... | |
long | onCmdUpdateFrameAreaWidth (FXObject *, FXSelector, void *) |
Called when user change the splitter between FrameArea and ViewNet. More... | |
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 Attributes | |
ACChoosers | myACChoosers |
struct for ACChoosers More... | |
Frames | myFrames |
struct for frames More... | |
FXHorizontalFrame * | myFramesArea |
frame to hold GNEFrames More... | |
FXSplitter * | myFramesSplitter |
Splitter to divide ViewNet und GNEFrames. More... | |
GNEApplicationWindow * | myGNEAppWindows |
pointer to GNEApplicationWindow More... | |
FXButton * | myRedoButton |
toolbar redo button More... | |
FXButton * | myUndoButton |
toolbar undo button More... | |
FXHorizontalFrame * | myViewArea |
frame to hold myView and myAttributePanel More... | |
A single child window which contains a view of the simulation area.
It is made of a tool-bar containing a field to change the type of display, buttons that allow to choose an artifact and some other view controlling options.
The rest of the window is a canvas that contains the display itself
Definition at line 71 of file GNEViewParent.h.
GNEViewParent::GNEViewParent | ( | FXMDIClient * | p, |
FXMDIMenu * | mdimenu, | ||
const FXString & | name, | ||
GNEApplicationWindow * | parentWindow, | ||
FXGLCanvas * | share, | ||
GNENet * | net, | ||
GNEUndoList * | undoList, | ||
FXIcon * | ic = nullptr , |
||
FXuint | opts = 0 , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 |
||
) |
FOX-declaration.
Constructor also builds the view and calls create()
[in] | p | The MDI-pane this window is shown within |
[in] | mdimenu | The MDI-menu for alignment |
[in] | name | The name of the window |
[in] | parentWindow | The main window |
[in] | ic | The icon of this window |
[in] | opts | Window options |
[in] | x | Initial x-position |
[in] | y | Initial x-position |
[in] | w | Initial width |
[in] | h | Initial height |
[in] | share | A canvas tor get the shared context from |
[in] | net | The network to show |
Definition at line 85 of file GNEViewParent.cpp.
References GUIGlChildWindow::create(), GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignFrameArea, GUIDesignSplitter, GUIDesignVerticalSeparator, GUIDesignViewnArea, ICON_REDO, ICON_UNDO, MID_GNE_VIEWPARENT_FRAMEAREAWIDTH, MID_HOTKEY_CTRL_Y_REDO, and MID_HOTKEY_CTRL_Z_UNDO.
GNEViewParent::~GNEViewParent | ( | ) |
Destructor.
Definition at line 159 of file GNEViewParent.cpp.
References GNEApplicationWindow::ToolbarsGrip::destroyParentToolbarsGrips(), GNEApplicationWindow::getToolbarsGrip(), myGNEAppWindows, GUIGlChildWindow::myParent, and GUIMainWindow::removeGLChild().
|
protectedinherited |
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, GUIGlChildWindow::myColoringSchemes, GUIGlChildWindow::myGripNavigationToolbar, and GUIGlChildWindow::myStaticNavigationToolBar.
|
protectedinherited |
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, GUIGlChildWindow::myGripNavigationToolbar, GUIGlChildWindow::myLocatorButton, GUIGlChildWindow::myLocatorPopup, GUIGlChildWindow::myStaticNavigationToolBar, and MFXCheckableButton::setChecked().
|
protectedinherited |
build screenshot toolbar
Definition at line 154 of file GUIGlChildWindow.cpp.
References GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignVerticalSeparator, ICON_CAMERA, MID_MAKESNAPSHOT, GUIGlChildWindow::myGripNavigationToolbar, and GUIGlChildWindow::myStaticNavigationToolBar.
|
virtualinherited |
create GUIGlChildWindow
Definition at line 85 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myGripNavigationToolbar, GUIGlChildWindow::myLocatorPopup, GUIGlChildWindow::myStaticNavigationToolBar, and GUIGlChildWindow::myView.
Referenced by GNEViewParent(), and GUIApplicationWindow::openNewView().
void GNEViewParent::eraseACChooserDialog | ( | GNEDialogACChooser * | chooserDialog | ) |
remove created chooser dialog
Definition at line 320 of file GNEViewParent.cpp.
References GNEViewParent::ACChoosers::ACChooserAdditional, GNEViewParent::ACChoosers::ACChooserEdges, GNEViewParent::ACChoosers::ACChooserJunction, GNEViewParent::ACChoosers::ACChooserPersons, GNEViewParent::ACChoosers::ACChooserPOI, GNEViewParent::ACChoosers::ACChooserPolygon, GNEViewParent::ACChoosers::ACChooserProhibition, GNEViewParent::ACChoosers::ACChooserRoutes, GNEViewParent::ACChoosers::ACChooserStops, GNEViewParent::ACChoosers::ACChooserTLS, GNEViewParent::ACChoosers::ACChooserVehicles, and myACChoosers.
Referenced by GNEDialogACChooser::~GNEDialogACChooser().
GNEAdditionalFrame * GNEViewParent::getAdditionalFrame | ( | ) | const |
get frame for GNE_NMODE_ADDITIONAL
Definition at line 204 of file GNEViewParent.cpp.
References GNEViewParent::Frames::additionalFrame, and myFrames.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawLaneCandidates(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtualinherited |
get build GL Canvas
Definition at line 165 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView.
Referenced by GUIApplicationWindow::getBuildGLCanvas().
|
inherited |
return combobox with the current coloring schemes (standard, fastest standard, real world...)
Definition at line 183 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myColoringSchemes.
Referenced by GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), and GUISUMOAbstractView::getColoringSchemesCombo().
GNEConnectorFrame * GNEViewParent::getConnectorFrame | ( | ) | const |
get frame for GNE_NMODE_CONNECT
Definition at line 192 of file GNEViewParent.cpp.
References GNEViewParent::Frames::connectorFrame, and myFrames.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNECreateEdgeFrame * GNEViewParent::getCreateEdgeFrame | ( | ) | const |
get frame for GNE_NMODE_CREATEEDGE
Definition at line 240 of file GNEViewParent.cpp.
References GNEViewParent::Frames::createEdgeFrame, and myFrames.
Referenced by GNEViewNet::abortOperation(), and GNEViewNet::processLeftButtonPressNetwork().
GNECrossingFrame * GNEViewParent::getCrossingFrame | ( | ) | const |
get frame for GNE_NMODE_CROSSING
Definition at line 210 of file GNEViewParent.cpp.
References GNEViewParent::Frames::crossingFrame, and myFrames.
Referenced by GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEFrame * GNEViewParent::getCurrentShownFrame | ( | ) | const |
get current frame (note: it can be null)
Definition at line 174 of file GNEViewParent.cpp.
References GNEViewParent::Frames::getCurrentShownFrame(), and myFrames.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
GNEDeleteFrame * GNEViewParent::getDeleteFrame | ( | ) | const |
get frame for GNE_NMODE_DELETE
Definition at line 222 of file GNEViewParent.cpp.
References GNEViewParent::Frames::deleteFrame, and myFrames.
Referenced by GNEInspectorFrame::onCmdGoBack(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEApplicationWindow * GNEViewParent::getGNEAppWindows | ( | ) | const |
get GNE Application Windows
Definition at line 314 of file GNEViewParent.cpp.
References myGNEAppWindows.
Referenced by GNENet::requireSaveAdditionals(), GNENet::requireSaveDemandElements(), GNENet::requireSaveTLSPrograms(), GNENet::saveDemandElements(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
GUIMainWindow * GNEViewParent::getGUIMainWindow | ( | ) | const |
get GUIMainWindow App
Definition at line 308 of file GNEViewParent.cpp.
References GUIGlChildWindow::myParent.
GNEInspectorFrame * GNEViewParent::getInspectorFrame | ( | ) | const |
get frame for GNE_NMODE_INSPECT
Definition at line 180 of file GNEViewParent.cpp.
References GNEViewParent::Frames::inspectorFrame, and myFrames.
Referenced by GNENet::computeAndUpdate(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNEApplicationWindow::onCmdAbort(), GNEApplicationWindow::onCmdClearTemplate(), GNEApplicationWindow::onCmdCopyTemplate(), GNEApplicationWindow::onCmdSetTemplate(), GNEViewNet::openObjectDialog(), GNECreateEdgeFrame::processClick(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), GNEViewNet::updateControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
inherited |
@ brief return a pointer to locator popup
Definition at line 177 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myLocatorPopup.
Referenced by GUIViewTraffic::buildViewToolBars(), and GNEViewNet::buildViewToolBars().
|
inherited |
return a reference to navigation toolbar
Definition at line 171 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myGripNavigationToolbar, and GUIGlChildWindow::myStaticNavigationToolBar.
|
inherited |
Returns the main window.
Definition at line 105 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myParent.
Referenced by GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser().
GNEPersonFrame * GNEViewParent::getPersonFrame | ( | ) | const |
get frame for GNE_DMODE_PERSON
Definition at line 276 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::personFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNEPersonPlanFrame * GNEViewParent::getPersonPlanFrame | ( | ) | const |
get frame for GNE_DMODE_PERSONFRAME
Definition at line 282 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::personPlanFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNEPersonTypeFrame * GNEViewParent::getPersonTypeFrame | ( | ) | const |
get frame for GNE_DMODE_PERSONTYPE
Definition at line 270 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::personTypeFrame.
Referenced by GNEViewNet::updateDemandModeSpecificControls().
GNEPolygonFrame * GNEViewParent::getPolygonFrame | ( | ) | const |
get frame for GNE_NMODE_POLYGON
Definition at line 228 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::polygonFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalDrawShape(), GNEViewNet::hotkeyEnter(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::onRightBtnPress(), GNEViewNet::onRightBtnRelease(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::processMoveMouseNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEProhibitionFrame * GNEViewParent::getProhibitionFrame | ( | ) | const |
get frame for GNE_NMODE_PROHIBITION
Definition at line 234 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::prohibitionFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNERouteFrame * GNEViewParent::getRouteFrame | ( | ) | const |
get frame for GNE_DMODE_ROUTE
Definition at line 246 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::routeFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNESelectorFrame * GNEViewParent::getSelectorFrame | ( | ) | const |
get frame for GNE_NMODE_SELECT
Definition at line 186 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::selectorFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::getAttributeCarriersInBoundary(), GNEInspectorFrame::processDemandSupermodeClick(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEInspectorFrame::processNetworkSupermodeClick(), GNENetElement::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEStopFrame * GNEViewParent::getStopFrame | ( | ) | const |
get frame for GNE_DMODE_STOP
Definition at line 264 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::stopFrame.
Referenced by GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNETAZFrame * GNEViewParent::getTAZFrame | ( | ) | const |
get frame for GNE_NMODE_TAZ
Definition at line 216 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::TAZFrame.
Referenced by GNEViewNet::abortOperation(), GNETAZ::drawGL(), GNEViewNet::drawTemporalDrawShape(), GNEViewNet::hotkeyEnter(), GNEApplicationWindow::onCmdAbort(), GNEViewNet::onKeyPress(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::processLeftButtonReleaseNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNETLSEditorFrame * GNEViewParent::getTLSEditorFrame | ( | ) | const |
get frame for GNE_NMODE_TLS
Definition at line 198 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::TLSEditorFrame.
Referenced by GNEViewNet::abortOperation(), GNELane::getPopUpMenu(), GNEViewNet::hotkeyEnter(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNELane::onDefault(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEVehicleFrame * GNEViewParent::getVehicleFrame | ( | ) | const |
get frame for GNE_DMODE_VEHICLE
Definition at line 252 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::vehicleFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNEVehicleTypeFrame * GNEViewParent::getVehicleTypeFrame | ( | ) | const |
get frame for GNE_DMODE_VEHICLETYPE
Definition at line 258 of file GNEViewParent.cpp.
References myFrames, and GNEViewParent::Frames::vehicleTypeFrame.
Referenced by GNEChange_DemandElement::redo(), GNEChange_DemandElement::undo(), and GNEViewNet::updateDemandModeSpecificControls().
|
inherited |
return GUISUMOAbstractView
Definition at line 99 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::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().
void GNEViewParent::hideAllFrames | ( | ) |
hide all frames
Definition at line 168 of file GNEViewParent.cpp.
References GNEViewParent::Frames::hideFrames(), and myFrames.
Referenced by GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
void GNEViewParent::hideFramesArea | ( | ) |
hide frames area if all GNEFrames are hidden
Definition at line 298 of file GNEViewParent.cpp.
References GNEViewParent::Frames::isFrameShown(), myFrames, and myFramesArea.
Referenced by GNEFrame::hide().
|
virtualinherited |
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().
|
inherited |
Definition at line 239 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::setColorScheme().
long GNEViewParent::onCmdClose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user hits the close button (x)
Definition at line 393 of file GNEViewParent.cpp.
References MID_HOTKEY_CTRL_W_CLOSESIMULATION, and GUIGlChildWindow::myParent.
|
inherited |
Definition at line 197 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::showViewportEditor().
|
inherited |
Definition at line 204 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::showViewschemeEditor().
long GNEViewParent::onCmdLocate | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
locator-callback
Definition at line 400 of file GNEViewParent.cpp.
References GNEViewParent::ACChoosers::ACChooserAdditional, GNEViewParent::ACChoosers::ACChooserEdges, GNEViewParent::ACChoosers::ACChooserJunction, GNEViewParent::ACChoosers::ACChooserPersons, GNEViewParent::ACChoosers::ACChooserPOI, GNEViewParent::ACChoosers::ACChooserPolygon, GNEViewParent::ACChoosers::ACChooserRoutes, GNEViewParent::ACChoosers::ACChooserStops, GNEViewParent::ACChoosers::ACChooserTLS, GNEViewParent::ACChoosers::ACChooserVehicles, GNENet::AttributeCarriers::demandElements, GNENet::getAttributeCarriers(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), ICON_LOCATEADD, ICON_LOCATEEDGE, ICON_LOCATEJUNCTION, ICON_LOCATEPERSON, ICON_LOCATEPOI, ICON_LOCATEPOLY, ICON_LOCATEROUTE, ICON_LOCATESTOP, ICON_LOCATETLS, ICON_LOCATEVEHICLE, MID_LOCATEADD, MID_LOCATEEDGE, MID_LOCATEJUNCTION, MID_LOCATEPERSON, MID_LOCATEPOI, MID_LOCATEPOLY, MID_LOCATEROUTE, MID_LOCATESTOP, MID_LOCATETLS, MID_LOCATEVEHICLE, myACChoosers, GUIGlChildWindow::myLocatorButton, GUIGlChildWindow::myLocatorPopup, GUIGlChildWindow::myView, GNENet::retrieveAdditionals(), GNENet::retrieveEdges(), GNENet::retrieveJunctions(), SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, SUMO_TAG_ROUTEFLOW, SUMO_TAG_STOP_BUSSTOP, SUMO_TAG_STOP_CHARGINGSTATION, SUMO_TAG_STOP_CONTAINERSTOP, SUMO_TAG_STOP_LANE, SUMO_TAG_STOP_PARKINGAREA, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.
Referenced by GNEApplicationWindow::onCmdLocate().
long GNEViewParent::onCmdMakeSnapshot | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 359 of file GNEViewParent.cpp.
References gCurrentFolder, GUIIconSubSys::getIcon(), ICON_EMPTY, GUISUMOAbstractView::makeSnapshot(), GUIGlChildWindow::myView, MFXUtils::userPermitsOverwritingWhenFileExists(), and WRITE_DEBUG.
|
inherited |
Definition at line 189 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::recenterView().
|
inherited |
Definition at line 211 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), GUIGlChildWindow::myView, MFXCheckableButton::setChecked(), and GUISUMOAbstractView::showToolTips().
long GNEViewParent::onCmdUpdateFrameAreaWidth | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user change the splitter between FrameArea and ViewNet.
Definition at line 622 of file GNEViewParent.cpp.
References myFrames, myFramesArea, and GNEViewParent::Frames::setWidth().
|
inherited |
Definition at line 225 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), GUIGlChildWindow::myView, and MFXCheckableButton::setChecked().
long GNEViewParent::onKeyPress | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
Called when user press a key.
Definition at line 608 of file GNEViewParent.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::onKeyPress().
Referenced by GNEApplicationWindow::onKeyPress().
long GNEViewParent::onKeyRelease | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
Called when user releases a key.
Definition at line 615 of file GNEViewParent.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::onKeyRelease().
Referenced by GNEApplicationWindow::onKeyRelease().
|
inherited |
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 GUIGlChildWindow::myView.
Referenced by GUIDialog_GLObjChooser::onCmdCenter(), GUIDialog_GLObjChooser::onCmdText(), GUIDialog_GLObjChooser::onCmdTrack(), and GUIMessageWindow::setCursorPos().
void GNEViewParent::showFramesArea | ( | ) |
show frames area if at least a GNEFrame is showed
Definition at line 288 of file GNEViewParent.cpp.
References GNEViewParent::Frames::isFrameShown(), myFrames, and myFramesArea.
Referenced by GNEFrame::show().
void GNEViewParent::updateUndoRedoButtons | ( | ) |
update toolbar undo/redo buttons (called when user press Ctrl+Z/Y)
Definition at line 352 of file GNEViewParent.cpp.
References GNEApplicationWindow::getUndoList(), myGNEAppWindows, myRedoButton, myUndoButton, GNEUndoList::p_onUpdRedo(), and GNEUndoList::p_onUpdUndo().
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
|
private |
struct for ACChoosers
Definition at line 341 of file GNEViewParent.h.
Referenced by eraseACChooserDialog(), and onCmdLocate().
|
protectedinherited |
The coloring schemes.
Definition at line 117 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildColoringToolBar(), and GUIGlChildWindow::getColoringSchemesCombo().
|
protectedinherited |
The contents frame.
Definition at line 114 of file GUIGlChildWindow.h.
Referenced by GUISUMOViewParent::init().
|
private |
struct for frames
Definition at line 338 of file GNEViewParent.h.
Referenced by getAdditionalFrame(), getConnectorFrame(), getCreateEdgeFrame(), getCrossingFrame(), getCurrentShownFrame(), getDeleteFrame(), getInspectorFrame(), getPersonFrame(), getPersonPlanFrame(), getPersonTypeFrame(), getPolygonFrame(), getProhibitionFrame(), getRouteFrame(), getSelectorFrame(), getStopFrame(), getTAZFrame(), getTLSEditorFrame(), getVehicleFrame(), getVehicleTypeFrame(), hideAllFrames(), hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
private |
frame to hold GNEFrames
Definition at line 326 of file GNEViewParent.h.
Referenced by hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
private |
Splitter to divide ViewNet und GNEFrames.
Definition at line 335 of file GNEViewParent.h.
|
private |
pointer to GNEApplicationWindow
Definition at line 320 of file GNEViewParent.h.
Referenced by getGNEAppWindows(), updateUndoRedoButtons(), and ~GNEViewParent().
|
protectedinherited |
The grip navigation tool bar.
Definition at line 99 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildColoringToolBar(), GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::buildScreenshotToolBar(), GUISUMOViewParent::buildSpeedControlToolbar(), GUIGlChildWindow::create(), and GUIGlChildWindow::getNavigationToolBar().
|
protectedinherited |
The locator button.
Definition at line 111 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildNavigationToolBar(), GUISUMOViewParent::onCmdLocate(), and onCmdLocate().
|
protectedinherited |
The locator menu.
Definition at line 108 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::create(), GUIGlChildWindow::getLocatorPopup(), GUISUMOViewParent::onCmdLocate(), onCmdLocate(), and GUIGlChildWindow::~GUIGlChildWindow().
|
protectedinherited |
The parent window.
Definition at line 96 of file GUIGlChildWindow.h.
Referenced by getGUIMainWindow(), GUIGlChildWindow::getParent(), GUISUMOViewParent::init(), onCmdClose(), GUISUMOViewParent::onCmdLocate(), ~GNEViewParent(), and GUISUMOViewParent::~GUISUMOViewParent().
|
private |
toolbar redo button
Definition at line 332 of file GNEViewParent.h.
Referenced by updateUndoRedoButtons().
|
protectedinherited |
The static navigation tool bar.
Definition at line 102 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildColoringToolBar(), GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::buildScreenshotToolBar(), GUISUMOViewParent::buildSpeedControlToolbar(), GUIGlChildWindow::create(), GUIGlChildWindow::getNavigationToolBar(), GUISUMOViewParent::init(), GUISUMOViewParent::setToolBarVisibility(), and GUIGlChildWindow::~GUIGlChildWindow().
|
private |
toolbar undo button
Definition at line 329 of file GNEViewParent.h.
Referenced by updateUndoRedoButtons().
|
protectedinherited |
The view.
Definition at line 105 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::create(), GUIGlChildWindow::getBuildGLCanvas(), GUIGlChildWindow::getView(), GUISUMOViewParent::init(), GUIGlChildWindow::onCmdChangeColorScheme(), GUIGlChildWindow::onCmdEditViewport(), GUIGlChildWindow::onCmdEditViewScheme(), onCmdLocate(), GUISUMOViewParent::onCmdMakeSnapshot(), onCmdMakeSnapshot(), GUIGlChildWindow::onCmdRecenterView(), GUIGlChildWindow::onCmdShowToolTips(), GUISUMOViewParent::onCmdSpeedFactor(), GUIGlChildWindow::onCmdZoomStyle(), GUISUMOViewParent::onKeyPress(), onKeyPress(), GUISUMOViewParent::onKeyRelease(), onKeyRelease(), GUISUMOViewParent::onSimStep(), GUISUMOViewParent::onUpdSpeedFactor(), and GUIGlChildWindow::setView().
|
private |
frame to hold myView and myAttributePanel
Definition at line 323 of file GNEViewParent.h.