![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A single child window which contains a view of the simulation area. More...
#include <GNEViewParent.h>
Data Structures | |
class | ACChoosers |
struct for ACChoosers dialog More... | |
class | CommonFrames |
class for common frames More... | |
class | DataFrames |
class for data frames More... | |
class | DemandFrames |
class for demand frames More... | |
class | NetworkFrames |
class for network 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 NETWORK_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 NETWORK_CONNECT More... | |
GNECreateEdgeFrame * | getCreateEdgeFrame () const |
get frame for NETWORK_CREATEEDGE More... | |
GNECrossingFrame * | getCrossingFrame () const |
get frame for NETWORK_CROSSING More... | |
GNEFrame * | getCurrentShownFrame () const |
get current frame (note: it can be null) More... | |
GNEDeleteFrame * | getDeleteFrame () const |
get frame for delete elements More... | |
GNEEdgeDataFrame * | getEdgeDataFrame () const |
get frame for DATA_EDGEDATA More... | |
GNEEdgeRelDataFrame * | getEdgeRelDataFrame () const |
get frame for DATA_EDGERELDATA More... | |
GNEApplicationWindow * | getGNEAppWindows () const |
get GNE Application Windows More... | |
GUIMainWindow * | getGUIMainWindow () const |
get GUIMainWindow App More... | |
GNEInspectorFrame * | getInspectorFrame () const |
get frame for inspect elements More... | |
FXPopup * | getLocatorPopup () |
@ brief return a pointer to locator popup More... | |
GNEMoveFrame * | getMoveFrame () const |
get frame for move elements 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 DEMAND_PERSON More... | |
GNEPersonPlanFrame * | getPersonPlanFrame () const |
get frame for DEMAND_PERSONFRAME More... | |
GNEPersonTypeFrame * | getPersonTypeFrame () const |
get frame for DEMAND_PERSONTYPE More... | |
GNEPolygonFrame * | getPolygonFrame () const |
get frame for NETWORK_POLYGON More... | |
GNEProhibitionFrame * | getProhibitionFrame () const |
get frame for NETWORK_PROHIBITION More... | |
GNERouteFrame * | getRouteFrame () const |
get frame for DEMAND_ROUTE More... | |
GNESelectorFrame * | getSelectorFrame () const |
get frame for select elements More... | |
GNEStopFrame * | getStopFrame () const |
get frame for DEMAND_STOP More... | |
GNETAZFrame * | getTAZFrame () const |
get frame for NETWORK_TAZ More... | |
GNETAZRelDataFrame * | getTAZRelDataFrame () const |
get frame for DATA_TAZRELDATA More... | |
GNETLSEditorFrame * | getTLSEditorFrame () const |
get frame for NETWORK_TLS More... | |
GNEVehicleFrame * | getVehicleFrame () const |
get frame for DEMAND_VEHICLE More... | |
GNEVehicleTypeFrame * | getVehicleTypeFrame () const |
get frame for DEMAND_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... | |
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 Attributes | |
ACChoosers | myACChoosers |
struct for ACChoosers More... | |
CommonFrames | myCommonFrames |
struct for common frames More... | |
DataFrames | myDataFrames |
struct for data frames More... | |
DemandFrames | myDemandFrames |
struct for demand frames More... | |
FXHorizontalFrame * | myFramesArea |
frame to hold GNEFrames More... | |
FXSplitter * | myFramesSplitter |
Splitter to divide ViewNet und GNEFrames. More... | |
GNEApplicationWindow * | myGNEAppWindows |
pointer to GNEApplicationWindow More... | |
NetworkFrames | myNetworkFrames |
struct for network frames 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 81 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 87 of file GNEViewParent.cpp.
References GUIGlChildWindow::create(), GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignFrameArea, GUIDesignSplitter, GUIDesignVerticalSeparator, GUIDesignViewnArea, MID_GNE_VIEWPARENT_FRAMEAREAWIDTH, MID_HOTKEY_CTRL_Y_REDO, MID_HOTKEY_CTRL_Z_UNDO, REDO, and UNDO.
GNEViewParent::~GNEViewParent | ( | ) |
Destructor.
Definition at line 145 of file GNEViewParent.cpp.
References GNEApplicationWindowHelper::ToolbarsGrip::destroyParentToolbarsGrips(), GNEApplicationWindow::getToolbarsGrip(), myGNEAppWindows, GUIGlChildWindow::myParent, and GUIMainWindow::removeGLChild().
|
protectedinherited |
build coloring toolbar
Definition at line 139 of file GUIGlChildWindow.cpp.
References COLORWHEEL, GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignComboBoxNCol, GUIDesignComboBoxStatic, GUIDesignVerticalSeparator, MID_COLOURSCHEMECHANGE, MID_HOTKEY_F9_EDIT_VIEWSCHEME, GUIGlChildWindow::myColoringSchemes, GUIGlChildWindow::myGripNavigationToolbar, and GUIGlChildWindow::myStaticNavigationToolBar.
|
protectedinherited |
build navigation toolbar
Definition at line 110 of file GUIGlChildWindow.cpp.
References EDITVIEWPORT, GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignButtonToolbarLocator, GUIDesignMFXCheckableButton, LOCATE, MID_HOTKEY_CTRL_I_EDITVIEWPORT, MID_RECENTERVIEW, MID_SHOWTOOLTIPS, MID_ZOOM_STYLE, GUIGlChildWindow::myGripNavigationToolbar, GUIGlChildWindow::myLocatorButton, GUIGlChildWindow::myLocatorPopup, GUIGlChildWindow::myStaticNavigationToolBar, RECENTERVIEW, MFXCheckableButton::setChecked(), SHOWTOOLTIPS, and ZOOMSTYLE.
|
protectedinherited |
build screenshot toolbar
Definition at line 153 of file GUIGlChildWindow.cpp.
References CAMERA, GUIIconSubSys::getIcon(), GUIDesignButtonToolbar, GUIDesignVerticalSeparator, MID_MAKESNAPSHOT, GUIGlChildWindow::myGripNavigationToolbar, and GUIGlChildWindow::myStaticNavigationToolBar.
|
virtualinherited |
create GUIGlChildWindow
Definition at line 84 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 351 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 NETWORK_ADDITIONAL
Definition at line 215 of file GNEViewParent.cpp.
References GNEViewParent::NetworkFrames::additionalFrame, and myNetworkFrames.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::drawLaneCandidates(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtualinherited |
get build GL Canvas
Definition at line 164 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 182 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myColoringSchemes.
Referenced by GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), and GUISUMOAbstractView::getColoringSchemesCombo().
GNEConnectorFrame * GNEViewParent::getConnectorFrame | ( | ) | const |
get frame for NETWORK_CONNECT
Definition at line 203 of file GNEViewParent.cpp.
References GNEViewParent::NetworkFrames::connectorFrame, and myNetworkFrames.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNECreateEdgeFrame * GNEViewParent::getCreateEdgeFrame | ( | ) | const |
get frame for NETWORK_CREATEEDGE
Definition at line 245 of file GNEViewParent.cpp.
References GNEViewParent::NetworkFrames::createEdgeFrame, and myNetworkFrames.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalJunction(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEViewNet::processLeftButtonPressNetwork(), GNEChange_EdgeType::redo(), GNEEdgeType::setAttribute(), GNEChange_EdgeType::undo(), and GNEViewNet::updateNetworkModeSpecificControls().
GNECrossingFrame * GNEViewParent::getCrossingFrame | ( | ) | const |
get frame for NETWORK_CROSSING
Definition at line 221 of file GNEViewParent.cpp.
References GNEViewParent::NetworkFrames::crossingFrame, and myNetworkFrames.
Referenced by GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEFrame * GNEViewParent::getCurrentShownFrame | ( | ) | const |
get current frame (note: it can be null)
Definition at line 163 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::getCurrentShownFrame(), GNEViewParent::NetworkFrames::getCurrentShownFrame(), GNEViewParent::DemandFrames::getCurrentShownFrame(), GNEViewParent::DataFrames::getCurrentShownFrame(), GNEViewParent::CommonFrames::isCommonFrameShown(), GNEViewParent::DataFrames::isDataFrameShown(), GNEViewParent::DemandFrames::isDemandFrameShown(), GNEViewParent::NetworkFrames::isNetworkFrameShown(), myCommonFrames, myDataFrames, myDemandFrames, and myNetworkFrames.
Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().
GNEDeleteFrame * GNEViewParent::getDeleteFrame | ( | ) | const |
get frame for delete elements
Definition at line 185 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::deleteFrame, and myCommonFrames.
Referenced by GNEEdge::drawEdgeGeometryPoints(), GNEInspectorFrame::onCmdGoBack(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEEdgeDataFrame * GNEViewParent::getEdgeDataFrame | ( | ) | const |
get frame for DATA_EDGEDATA
Definition at line 293 of file GNEViewParent.cpp.
References GNEViewParent::DataFrames::edgeDataFrame, and myDataFrames.
Referenced by GNEGenericData::drawAttribute(), GNEEdgeData::drawPartialGL(), GNEEdgeData::getColor(), GNEEdgeData::isGenericDataVisible(), GNEViewNet::processLeftButtonPressData(), and GNEViewNet::updateDataModeSpecificControls().
GNEEdgeRelDataFrame * GNEViewParent::getEdgeRelDataFrame | ( | ) | const |
get frame for DATA_EDGERELDATA
Definition at line 299 of file GNEViewParent.cpp.
References GNEViewParent::DataFrames::edgeRelDataFrame, and myDataFrames.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEEdgeRelData::drawPartialGL(), GNEEdgeRelData::getColor(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEEdgeRelData::isGenericDataVisible(), GNEViewNet::processLeftButtonPressData(), and GNEViewNet::updateDataModeSpecificControls().
GNEApplicationWindow * GNEViewParent::getGNEAppWindows | ( | ) | const |
get GNE Application Windows
Definition at line 345 of file GNEViewParent.cpp.
References myGNEAppWindows.
Referenced by GNEViewNet::buildEditModeControls(), GNEViewNet::onCmdToogleShowDemandElements(), GNENet::requireSaveAdditionals(), GNENet::requireSaveDataElements(), GNENet::requireSaveDemandElements(), GNENet::requireSaveTLSPrograms(), GNENet::saveDataElements(), GNENet::saveDemandElements(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
GUIMainWindow * GNEViewParent::getGUIMainWindow | ( | ) | const |
get GUIMainWindow App
Definition at line 339 of file GNEViewParent.cpp.
References GUIGlChildWindow::myParent.
GNEInspectorFrame * GNEViewParent::getInspectorFrame | ( | ) | const |
get frame for inspect elements
Definition at line 179 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::inspectorFrame, and myCommonFrames.
Referenced by GNENet::computeAndUpdate(), GNENet::deleteDemandElement(), GNEApplicationWindow::onCmdAbort(), GNEViewNet::onCmdClearConnections(), GNEApplicationWindow::onCmdClearTemplate(), GNEApplicationWindow::onCmdCopyTemplate(), GNEViewNet::onCmdResetConnections(), GNEApplicationWindow::onCmdSetFrontElement(), GNEApplicationWindow::onCmdSetTemplate(), GNEViewNet::openObjectDialog(), GNECreateEdgeFrame::processClick(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEDataSet::removeDataIntervalChild(), GNEViewNet::removeFromAttributeCarrierInspected(), GNEDataInterval::removeGenericDataChild(), GNEEdge::removeLane(), GNEViewNet::updateControls(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
inherited |
@ brief return a pointer to locator popup
Definition at line 176 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myLocatorPopup.
Referenced by GUIViewTraffic::buildViewToolBars(), and GNEViewNet::buildViewToolBars().
GNEMoveFrame * GNEViewParent::getMoveFrame | ( | ) | const |
get frame for move elements
Definition at line 197 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::moveFrame, and myCommonFrames.
Referenced by GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
inherited |
return a reference to navigation toolbar
Definition at line 170 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myGripNavigationToolbar, and GUIGlChildWindow::myStaticNavigationToolBar.
|
inherited |
Returns the main window.
Definition at line 104 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myParent.
Referenced by GUIDialog_ChooserAbstract::~GUIDialog_ChooserAbstract().
GNEPersonFrame * GNEViewParent::getPersonFrame | ( | ) | const |
get frame for DEMAND_PERSON
Definition at line 281 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::personFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNEPersonPlanFrame * GNEViewParent::getPersonPlanFrame | ( | ) | const |
get frame for DEMAND_PERSONFRAME
Definition at line 287 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::personPlanFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNEPersonTypeFrame * GNEViewParent::getPersonTypeFrame | ( | ) | const |
get frame for DEMAND_PERSONTYPE
Definition at line 275 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::personTypeFrame.
Referenced by GNEViewNet::updateDemandModeSpecificControls().
GNEPolygonFrame * GNEViewParent::getPolygonFrame | ( | ) | const |
get frame for NETWORK_POLYGON
Definition at line 233 of file GNEViewParent.cpp.
References myNetworkFrames, and GNEViewParent::NetworkFrames::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 NETWORK_PROHIBITION
Definition at line 239 of file GNEViewParent.cpp.
References myNetworkFrames, and GNEViewParent::NetworkFrames::prohibitionFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNERouteFrame * GNEViewParent::getRouteFrame | ( | ) | const |
get frame for DEMAND_ROUTE
Definition at line 251 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::routeFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), GNELane::setLaneColor(), and GNEViewNet::updateDemandModeSpecificControls().
GNESelectorFrame * GNEViewParent::getSelectorFrame | ( | ) | const |
get frame for select elements
Definition at line 191 of file GNEViewParent.cpp.
References myCommonFrames, and GNEViewParent::CommonFrames::selectorFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::getAttributeCarriersInBoundary(), GNEInspectorFrame::processDataSupermodeClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEAttributeCarrier::selectAttributeCarrier(), GNEAttributeCarrier::unselectAttributeCarrier(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
GNEStopFrame * GNEViewParent::getStopFrame | ( | ) | const |
get frame for DEMAND_STOP
Definition at line 269 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::stopFrame.
Referenced by GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNETAZFrame * GNEViewParent::getTAZFrame | ( | ) | const |
get frame for NETWORK_TAZ
Definition at line 227 of file GNEViewParent.cpp.
References myNetworkFrames, and GNEViewParent::NetworkFrames::TAZFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::drawTemporalDrawShape(), GNEViewNet::hotkeyEnter(), GNEApplicationWindow::onCmdAbort(), GNEViewNet::onKeyPress(), GNEViewNet::onKeyRelease(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::processLeftButtonReleaseNetwork(), GNEViewNet::processMoveMouseNetwork(), and GNEViewNet::updateNetworkModeSpecificControls().
GNETAZRelDataFrame * GNEViewParent::getTAZRelDataFrame | ( | ) | const |
get frame for DATA_TAZRELDATA
Definition at line 305 of file GNEViewParent.cpp.
References myDataFrames, and GNEViewParent::DataFrames::TAZRelDataFrame.
Referenced by GNEViewNet::abortOperation(), GNETAZRelData::isGenericDataVisible(), GNEViewNet::processLeftButtonPressData(), and GNEViewNet::updateDataModeSpecificControls().
GNETLSEditorFrame * GNEViewParent::getTLSEditorFrame | ( | ) | const |
get frame for NETWORK_TLS
Definition at line 209 of file GNEViewParent.cpp.
References myNetworkFrames, and GNEViewParent::NetworkFrames::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 DEMAND_VEHICLE
Definition at line 257 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::vehicleFrame.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyBackSpace(), GNEViewNet::hotkeyEnter(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::updateDemandModeSpecificControls().
GNEVehicleTypeFrame * GNEViewParent::getVehicleTypeFrame | ( | ) | const |
get frame for DEMAND_VEHICLETYPE
Definition at line 263 of file GNEViewParent.cpp.
References myDemandFrames, and GNEViewParent::DemandFrames::vehicleTypeFrame.
Referenced by GNEChange_DemandElement::redo(), GNEChange_DemandElement::undo(), and GNEViewNet::updateDemandModeSpecificControls().
|
inherited |
return GUISUMOAbstractView
Definition at line 98 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView.
Referenced by GUIMainWindow::getActiveView(), TraCIServerAPI_GUI::getNamedView(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIDialog_ChooserAbstract::onCmdCenter(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdOpenShapes(), GUIApplicationWindow::onCmdShowStats(), GUIDialog_ChooserAbstract::onCmdToggleSelection(), GUIDialog_ChooserAbstract::onCmdTrack(), and GUIApplicationWindow::openNewView().
void GNEViewParent::hideAllFrames | ( | ) |
hide all frames
Definition at line 154 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::hideCommonFrames(), GNEViewParent::DataFrames::hideDataFrames(), GNEViewParent::DemandFrames::hideDemandFrames(), GNEViewParent::NetworkFrames::hideNetworkFrames(), myCommonFrames, myDataFrames, myDemandFrames, and myNetworkFrames.
Referenced by GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
void GNEViewParent::hideFramesArea | ( | ) |
hide frames area if all GNEFrames are hidden
Definition at line 325 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::isCommonFrameShown(), GNEViewParent::DataFrames::isDataFrameShown(), GNEViewParent::DemandFrames::isDemandFrameShown(), GNEViewParent::NetworkFrames::isNetworkFrameShown(), myCommonFrames, myDataFrames, myDemandFrames, myFramesArea, and myNetworkFrames.
Referenced by GNEFrame::hide().
|
virtualinherited |
true if the object is selected (may include extra logic besides calling gSelected)
Reimplemented in GUISUMOViewParent.
Definition at line 253 of file GUIGlChildWindow.cpp.
References GUIGlObject::getGlID(), GUIGlObject::getType(), gSelected, and GUISelectedStorage::isSelected().
Referenced by GUIDialog_ChooserAbstract::refreshList().
|
inherited |
Definition at line 238 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::setColorScheme().
Referenced by FXDEFMAP().
long GNEViewParent::onCmdClose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user hits the close button (x)
Definition at line 424 of file GNEViewParent.cpp.
References MID_HOTKEY_CTRL_W_CLOSESIMULATION, and GUIGlChildWindow::myParent.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 196 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::showViewportEditor().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 203 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::showViewschemeEditor().
Referenced by FXDEFMAP().
long GNEViewParent::onCmdLocate | ( | FXObject * | , |
FXSelector | sel, | ||
void * | |||
) |
locator-callback
Definition at line 431 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, GNENetHelper::AttributeCarriers::getAdditionals(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getDemandElements(), GUIIconSubSys::getIcon(), GNEViewNet::getNet(), GNENetHelper::AttributeCarriers::getShapes(), GNE_TAG_FLOW_ROUTE, LOCATEADD, LOCATEEDGE, LOCATEJUNCTION, LOCATEPERSON, LOCATEPOI, LOCATEPOLY, LOCATEROUTE, LOCATESTOP, LOCATETLS, 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::retrieveEdges(), GNENet::retrieveJunctions(), SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_POI, SUMO_TAG_POILANE, SUMO_TAG_POLY, SUMO_TAG_ROUTE, 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 FXDEFMAP(), and GNEApplicationWindow::onCmdLocate().
long GNEViewParent::onCmdMakeSnapshot | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 390 of file GNEViewParent.cpp.
References CAMERA, gCurrentFolder, GUIIconSubSys::getIcon(), GUISUMOAbstractView::makeSnapshot(), GUIGlChildWindow::myView, MFXUtils::userPermitsOverwritingWhenFileExists(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 188 of file GUIGlChildWindow.cpp.
References GUIGlChildWindow::myView, and GUISUMOAbstractView::recenterView().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 210 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), GUIGlChildWindow::myView, MFXCheckableButton::setChecked(), and GUISUMOAbstractView::showToolTips().
Referenced by FXDEFMAP().
long GNEViewParent::onCmdUpdateFrameAreaWidth | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when user change the splitter between FrameArea and ViewNet.
Definition at line 666 of file GNEViewParent.cpp.
References myCommonFrames, myDataFrames, myDemandFrames, myFramesArea, myNetworkFrames, GNEViewParent::CommonFrames::setCommonFramesWidth(), GNEViewParent::DataFrames::setDataFramesWidth(), GNEViewParent::DemandFrames::setDemandFramesWidth(), and GNEViewParent::NetworkFrames::setNetworkFramesWidth().
Referenced by FXDEFMAP().
|
inherited |
Definition at line 224 of file GUIGlChildWindow.cpp.
References MFXCheckableButton::amChecked(), GUIGlChildWindow::myView, and MFXCheckableButton::setChecked().
Referenced by FXDEFMAP().
long GNEViewParent::onKeyPress | ( | FXObject * | o, |
FXSelector | sel, | ||
void * | data | ||
) |
Called when user press a key.
Definition at line 652 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 659 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 245 of file GUIGlChildWindow.cpp.
References GUISUMOAbstractView::centerTo(), and GUIGlChildWindow::myView.
Referenced by GUIDialog_ChooserAbstract::onCmdCenter(), GUIDialog_ChooserAbstract::onCmdText(), GUIDialog_ChooserAbstract::onCmdTrack(), and GUIMessageWindow::setCursorPos().
void GNEViewParent::showFramesArea | ( | ) |
show frames area if at least a GNEFrame is showed
Definition at line 311 of file GNEViewParent.cpp.
References GNEViewParent::CommonFrames::isCommonFrameShown(), GNEViewParent::DataFrames::isDataFrameShown(), GNEViewParent::DemandFrames::isDemandFrameShown(), GNEViewParent::NetworkFrames::isNetworkFrameShown(), myCommonFrames, myDataFrames, myDemandFrames, myFramesArea, and myNetworkFrames.
Referenced by GNEFrame::show().
void GNEViewParent::updateUndoRedoButtons | ( | ) |
update toolbar undo/redo buttons (called when user press Ctrl+Z/Y)
Definition at line 383 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 460 of file GNEViewParent.h.
Referenced by eraseACChooserDialog(), and onCmdLocate().
|
protectedinherited |
The coloring schemes.
Definition at line 113 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildColoringToolBar(), and GUIGlChildWindow::getColoringSchemesCombo().
|
private |
struct for common frames
Definition at line 448 of file GNEViewParent.h.
Referenced by getCurrentShownFrame(), getDeleteFrame(), getInspectorFrame(), getMoveFrame(), getSelectorFrame(), hideAllFrames(), hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
protectedinherited |
The contents frame.
Definition at line 110 of file GUIGlChildWindow.h.
Referenced by GUISUMOViewParent::init().
|
private |
struct for data frames
Definition at line 457 of file GNEViewParent.h.
Referenced by getCurrentShownFrame(), getEdgeDataFrame(), getEdgeRelDataFrame(), getTAZRelDataFrame(), hideAllFrames(), hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
private |
struct for demand frames
Definition at line 454 of file GNEViewParent.h.
Referenced by getCurrentShownFrame(), getPersonFrame(), getPersonPlanFrame(), getPersonTypeFrame(), getRouteFrame(), getStopFrame(), getVehicleFrame(), getVehicleTypeFrame(), hideAllFrames(), hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
private |
frame to hold GNEFrames
Definition at line 436 of file GNEViewParent.h.
Referenced by GNEViewParent::CommonFrames::buildCommonFrames(), GNEViewParent::DataFrames::buildDataFrames(), GNEViewParent::DemandFrames::buildDemandFrames(), GNEViewParent::NetworkFrames::buildNetworkFrames(), hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
private |
Splitter to divide ViewNet und GNEFrames.
Definition at line 445 of file GNEViewParent.h.
|
private |
pointer to GNEApplicationWindow
Definition at line 430 of file GNEViewParent.h.
Referenced by getGNEAppWindows(), updateUndoRedoButtons(), and ~GNEViewParent().
|
protectedinherited |
The grip navigation tool bar.
Definition at line 95 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 107 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildNavigationToolBar(), GUISUMOViewParent::onCmdLocate(), and onCmdLocate().
|
protectedinherited |
The locator menu.
Definition at line 104 of file GUIGlChildWindow.h.
Referenced by GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::create(), GUIGlChildWindow::getLocatorPopup(), GUISUMOViewParent::onCmdLocate(), onCmdLocate(), and GUIGlChildWindow::~GUIGlChildWindow().
|
private |
struct for network frames
Definition at line 451 of file GNEViewParent.h.
Referenced by getAdditionalFrame(), getConnectorFrame(), getCreateEdgeFrame(), getCrossingFrame(), getCurrentShownFrame(), getPolygonFrame(), getProhibitionFrame(), getTAZFrame(), getTLSEditorFrame(), hideAllFrames(), hideFramesArea(), onCmdUpdateFrameAreaWidth(), and showFramesArea().
|
protectedinherited |
The parent window.
Definition at line 92 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 442 of file GNEViewParent.h.
Referenced by updateUndoRedoButtons().
|
protectedinherited |
The static navigation tool bar.
Definition at line 98 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 439 of file GNEViewParent.h.
Referenced by updateUndoRedoButtons().
|
protectedinherited |
The view.
Definition at line 101 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 433 of file GNEViewParent.h.