![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIViewTraffic.h>
Public Member Functions | |
| void | addDecals (const std::vector< Decal > &decals) |
| add decals | |
| void | buildColorRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, const GUIVisualizationRainbowSettings &rs) override |
| recalibrate color scheme according to the current value range | |
| virtual void | buildViewToolBars (GUIGlChildWindow *) override |
| builds the view toolbars | |
| void | centerTo (const Boundary &bound) |
| centers to the chosen artifact | |
| virtual void | centerTo (const Position &pos, bool applyZoom) |
| centers to the chosen position | |
| void | centerTo (GUIGlID id, bool applyZoom, double zoomDist=20) override |
| centers to the chosen artifact | |
| void | changePedestrianNetworkColor (const GUIVisualizationSettings &s) const override |
| Change the color of the JuPedSim pedestrian network. | |
| void | checkSnapshots () override |
| Checks whether it is time for a snapshot. | |
| void | clearDecals () |
| clear all decals | |
| virtual void | copyViewportTo (GUISUMOAbstractView *view) |
| copy the viewport to the given view | |
| void | destroyPopup () |
| destroys the popup | |
| void | drawPedestrianNetwork (const GUIVisualizationSettings &s) const override |
| Draw (or not) the JuPedSim pedestrian network. | |
| GUIVisualizationSettings * | editVisualisationSettings () const |
| edit visualization settings (allow modify VisualizationSetings, use carefully) | |
| void | endSnapshot () override |
| Ends a video snapshot. | |
| std::vector< GUIGlObject * > | filterContextObjects (const std::vector< GUIGlObject * > &objects) |
| filter out duplicate and forbidden objects | |
| GUIPerspectiveChanger & | getChanger () const |
| get changer | |
| MFXComboBoxIcon * | getColoringSchemesCombo () |
| get coloring schemes combo | |
| SUMOTime | getCurrentTimeStep () const override |
| get the current simulation time | |
| std::vector< Decal > & | getDecals () |
| The list of decals to show. | |
| FXMutex & | getDecalsLockMutex () |
| The mutex to use before accessing the decals list in order to avoid thread conflicts. | |
| double | getDelay () const |
| Returns the delay of the parent application. | |
| std::vector< std::string > | getEdgeDataAttrs () const override |
| return list of loaded edgeData attributes | |
| std::vector< std::string > | getEdgeLaneParamKeys (bool edgeKeys) const override |
| return list of available edge parameters | |
| double | getFPS () const |
| retrieve FPS | |
| double | getGridHeight () const |
| get grid height | |
| double | getGridWidth () const |
| get grid width | |
| GUIGlChildWindow * | getGUIGlChildWindow () |
| get GUIGlChildWindow | |
| GUIMainWindow * | getMainWindow () const |
| get main window | |
| std::vector< std::string > | getMeanDataAttrs (const std::string &meanDataID) const override |
| return list of available attributes for the given meanData id | |
| std::vector< std::string > | getMeanDataIDs () const override |
| return list of loaded edgeData ids (being computed in the current simulation) | |
| std::vector< std::string > | getPOIParamKeys () const override |
| return list of available POI parameters | |
| GUIGLObjectPopupMenu * | getPopup () const |
| ge the current popup-menu | |
| const Position & | getPopupPosition () const |
| get position of current popup | |
| virtual Position | getPositionInformation () const |
| Returns the cursor's x/y position within the network. | |
| virtual std::vector< std::string > | getRelDataAttrs () const |
| return list of loaded edgeRelation and tazRelation attributes | |
| GUIGlID | getTrackedID () const override |
| Returns the id of the tracked vehicle (-1 if none). | |
| std::vector< std::string > | getVehicleParamKeys (bool vTypeKeys) const override |
| return list of available vehicle parameters | |
| GUIDialog_EditViewport * | getViewportEditor () |
| get the viewport and create it on first access | |
| Boundary | getVisibleBoundary () const |
| get visible boundary | |
| const GUIVisualizationSettings & | getVisualisationSettings () const |
| get visualization settings (read only) | |
| Position | getWindowCursorPosition () const |
| return windows cursor position | |
| GUIViewTraffic (FXComposite *p, GUIMainWindow &app, GUISUMOViewParent *parent, GUINet &net, FXGLVisual *glVis, FXGLCanvas *share) | |
| constructor | |
| virtual bool | is3DView () const |
| return whether this is a 3D view | |
| bool | isInEditMode () |
| returns true, if the edit button was pressed | |
| double | m2p (double meter) const |
| meter-to-pixels conversion method | |
| FXbool | makeCurrent () |
| A reimplementation due to some internal reasons. | |
| long | onCmdAddRerouter (FXObject *, FXSelector, void *) override |
| long | onCmdCloseEdge (FXObject *, FXSelector, void *) override |
| long | onCmdCloseLane (FXObject *, FXSelector, void *) override |
| interaction with the simulation | |
| long | onCmdShowReachability (FXObject *, FXSelector, void *) override |
| highlight edges according to reachability | |
| virtual long | onConfigure (FXObject *, FXSelector, void *) |
| mouse functions | |
| long | onDoubleClicked (FXObject *, FXSelector, void *) override |
| void | onGamingClick (Position pos) override |
| handle mouse click in gaming mode | |
| void | onGamingRightClick (Position pos) override |
| virtual long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
| keyboard functions | |
| virtual long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
| virtual long | onLeftBtnPress (FXObject *, FXSelector, void *) |
| virtual long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
| virtual long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
| virtual long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
| virtual long | onMouseLeft (FXObject *, FXSelector, void *) |
| virtual long | onMouseMove (FXObject *, FXSelector, void *) |
| virtual long | onMouseWheel (FXObject *, FXSelector, void *) |
| virtual long | onPaint (FXObject *, FXSelector, void *) |
| virtual long | onRightBtnPress (FXObject *, FXSelector, void *) |
| virtual long | onRightBtnRelease (FXObject *, FXSelector, void *) |
| virtual long | onVisualizationChange (FXObject *, FXSelector, void *) |
| hook to react on change in visualization settings | |
| void | openObjectDialog (const std::vector< GUIGlObject * > &objects, const bool filter=true) |
| open object dialog for the given object | |
| virtual void | openObjectDialogAtCursor (const FXEvent *ev) |
| open object dialog at the cursor position | |
| double | p2m (double pixel) const |
| pixels-to-meters conversion method | |
| void | processPendingTextureDeletes () |
| process pending texture deletions | |
| void | queueTextureDelete (unsigned int textureId) |
| queue a texture for deletion | |
| virtual void | recalculateBoundaries () |
| recalculate boundaries | |
| virtual void | recenterView () |
| recenters the view | |
| void | remove (GUIDialog_EditViewport *) |
| remove viewport | |
| void | remove (GUIDialog_ViewSettings *) |
| remove view settings | |
| void | replacePopup (GUIGLObjectPopupMenu *popUp) |
| replace PopUp | |
| const std::vector< SUMOTime > | retrieveBreakpoints () const override |
| retrieve breakpoints from the current runThread | |
| void | saveFrame (const std::string &destFile, FXColor *buf) override |
| Adds a frame to a video snapshot which will be initialized if necessary. | |
| Position | screenPos2NetPos (int x, int y) const |
| Translate screen position to network position. | |
| void | setBreakpoints (const std::vector< SUMOTime > &breakpoints) |
| Sets the breakpoints of the parent application. | |
| bool | setColorScheme (const std::string &name) override |
| set color scheme | |
| void | setDelay (double delay) |
| Sets the delay of the parent application. | |
| virtual void | setViewportFromToRot (const Position &lookFrom, const Position &lookAt, double rotation) |
| applies the given viewport settings | |
| void | setWindowCursorPosition (FXint x, FXint y) |
| Returns the gl-id of the object under the given coordinates. | |
| virtual void | showViewportEditor () |
| show viewport editor | |
| void | showViewschemeEditor () |
| show viewsscheme editor | |
| Position | snapToActiveGrid (const Position &pos, bool snapXY=true) const |
| Returns a position that is mapped to the closest grid point if the grid is active. | |
| void | startTrack (int id) override |
| Starts vehicle tracking. | |
| void | stopTrack () override |
| Stops vehicle tracking. | |
| void | updateToolTip () |
| A method that updates the tooltip. | |
| virtual void | updateViewportValues () |
| update the viewport chooser with the current view values | |
| virtual void | zoom2Pos (Position &camera, Position &lookAt, double zoom) |
| zoom interface for 3D view | |
| virtual | ~GUIViewTraffic () |
| destructor | |
Dealing with snapshots | |
| void | addSnapshot (SUMOTime time, const std::string &file, const int w=-1, const int h=-1) |
| Sets the snapshot time to file map. | |
| std::string | makeSnapshot (const std::string &destFile, const int w=-1, const int h=-1) |
| Takes a snapshots and writes it into the given file. | |
| void | waitForSnapshots (const SUMOTime snapshotTime) |
Additional visualisations | |
| bool | addAdditionalGLVisualisation (GUIGlObject *const which) |
| Adds an object to call its additional visualisation method. | |
| bool | removeAdditionalGLVisualisation (GUIGlObject *const which) |
| Removes an object from the list of objects that show additional things. | |
| bool | isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const |
| Check if an object is added in the additional GL visualitation. | |
Static Public Member Functions | |
| static long | showLaneReachability (GUILane *lane, FXObject *, FXSelector) |
Protected Member Functions | |
| Boundary | applyGLTransform (bool fixRatio=true) |
| applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections) | |
| void | buildMinMaxRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, const GUIVisualizationRainbowSettings &rs, double minValue, double maxValue, bool hasMissingData) |
| helper function for buildColorRainbow | |
| FXImage * | checkGDALImage (Decal &d) |
| check whether we can read image data or position with gdal | |
| void | displayColorLegend (const GUIColorScheme &scheme, bool leftSide, const std::string &key) |
| Draws a legend for the given scheme. | |
| void | displayLegend () |
| Draws a line with ticks, and the length information. | |
| void | displayLegends () |
| Draws the configured legends. | |
| virtual void | doInit () |
| doInit | |
| int | doPaintGL (int mode, const Boundary &bound) override |
| paint GL | |
| void | drawDecals () |
| Draws the stored decals. | |
| void | drawFPS () |
| Draws frames-per-second indicator. | |
| std::vector< GUIGlObject * > | filterInternalLanes (const std::vector< GUIGlObject * > &objects) const |
| filter internal lanes in Objects under cursor | |
| std::vector< GUIGlObject * > | getGUIGlObjectsAtPosition (Position pos, double radius) |
| returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT | |
| std::vector< GUIGlObject * > | getGUIGlObjectsUnderCursor () |
| returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects) | |
| std::vector< GUIGlObject * > | getGUIGlObjectsUnderSnappedCursor () |
| returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects) | |
| GUILane * | getLaneUnderCursor () override |
| returns the GUILane at cursor position (implementation depends on view) | |
| GUIGlID | getObjectAtPosition (Position pos, double sensitivity=SENSITIVITY) |
| returns the id of the object at position using GL_SELECT | |
| std::vector< GUIGlID > | getObjectsAtPosition (Position pos, double radius) |
| returns the ids of the object at position within the given (rectangular) radius using GL_SELECT | |
| std::vector< GUIGlID > | getObjectsInBoundary (Boundary bound) |
| returns the ids of all objects in the given boundary | |
| std::vector< GUIGlID > | getObjectsUnderCursor () |
| returns the id of the objects under the cursor using GL_SELECT (including overlapped objects) | |
| GUIGlID | getObjectUnderCursor (double sensitivity=SENSITIVITY) |
| returns the id of the front object under the cursor using GL_SELECT | |
| virtual GUIGlID | getToolTipID () |
| returns the id of object under cursor to show their tooltip | |
| GUIViewTraffic () | |
| void | openPopupDialog () |
| open popup dialog | |
| void | paintGL () |
| FOX needs this. | |
| void | paintGLGrid () const |
| paints a grid | |
| bool | showToolTipFor (const GUIGlID idToolTip) |
| invokes the tooltip for the given object | |
| virtual void | updatePositionInformationLabel () const |
| update position information labels | |
Protected Attributes | |
| std::map< GUIGlObject *, int > | myAdditionallyDrawn |
| List of objects for which GUIGlObject::drawGLAdditional is called. | |
| bool | myAmInitialised = false |
| Internal information whether doInit() was called. | |
| GUIMainWindow * | myApp |
| The application. | |
| GUIPerspectiveChanger * | myChanger = nullptr |
| The perspective changer. | |
| Position | myClickedPopupPosition = Position::INVALID |
| clicked poup position | |
| std::vector< GUIGlObject * > | myCurrentObjectsDialog |
| vector with current objects dialog | |
| long | myFrameDrawTime = 0 |
| counter for measuring rendering time | |
| GUIGlChildWindow * | myGlChildWindowParent |
| The parent window. | |
| const SUMORTree * | myGrid |
| The visualization speed-up. | |
| GUIDialog_EditViewport * | myGUIDialogEditViewport = nullptr |
| viewport chooser | |
| GUIDialog_ViewSettings * | myGUIDialogViewSettings = nullptr |
| Visualization changer. | |
| bool | myInEditMode = false |
| Information whether too-tip informations shall be generated. | |
| int | myMouseHotspotX |
| Offset to the mouse-hotspot from the mouse position. | |
| int | myMouseHotspotY |
| bool | myPanning = false |
| Panning flag. | |
| FXMutex | myPolyDrawLock |
| poly draw lock | |
| GUIGLObjectPopupMenu * | myPopup = nullptr |
| The current popup-menu. | |
| Position | myPopupPosition = Position(0, 0) |
| The current popup-menu position. | |
| FXCondition | mySnapshotCondition |
| the semaphore when waiting for snapshots to finish | |
| std::map< SUMOTime, std::vector< std::tuple< std::string, int, int > > > | mySnapshots |
| Snapshots. | |
| FXMutex | mySnapshotsMutex |
| The mutex to use before accessing the decals list in order to avoid thread conflicts. | |
| GUIVisualizationSettings * | myVisualizationSettings |
| visualization settings | |
| FXint | myWindowCursorPositionX |
| Position of the cursor relative to the window. | |
| FXint | myWindowCursorPositionY |
Optionally shown decals | |
| std::vector< Decal > | myDecals |
| The list of decals to show. | |
| FXMutex | myDecalsLockMutex |
| The mutex to use before accessing the decals list in order to avoid thread conflicts. | |
| std::vector< unsigned int > | myPendingTextureDeletes |
| texture IDs pending deletion | |
| FXMutex | myTextureDeleteMutex |
| mutex for pending texture deletes | |
Static Protected Attributes | |
| static const double | SENSITIVITY = 0.1 |
Private Attributes | |
| bool | myTLSGame |
| whether game mode was set to 'tls' | |
| GUIGlID | myTrackedID |
Microsocopic view at the simulation
Definition at line 52 of file GUIViewTraffic.h.
| GUIViewTraffic::GUIViewTraffic | ( | FXComposite * | p, |
| GUIMainWindow & | app, | ||
| GUISUMOViewParent * | parent, | ||
| GUINet & | net, | ||
| FXGLVisual * | glVis, | ||
| FXGLCanvas * | share ) |
constructor
Definition at line 77 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::GUISUMOAbstractView(), INVALID_ID, myTLSGame, and myTrackedID.
|
virtual |
|
inlineprotected |
Definition at line 167 of file GUIViewTraffic.h.
|
inherited |
Adds an object to call its additional visualisation method.
| [in] | which | The object to add |
Definition at line 1935 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIVehicle::drawOutsideNetwork().
|
inherited |
add decals
Definition at line 242 of file GUISUMOAbstractView.cpp.
References myDecals, and myDecalsLockMutex.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
inherited |
Sets the snapshot time to file map.
| [in] | snaps | The snapshots to take at certain times |
| [in] | w | The snapshot image width |
| [in] | w | The snapshot image height |
Definition at line 1391 of file GUISUMOAbstractView.cpp.
References mySnapshots, and mySnapshotsMutex.
Referenced by GUIViewTraffic::checkSnapshots(), and GUISettingsHandler::setSnapshots().
|
protectedinherited |
applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections)
Definition at line 1973 of file GUISUMOAbstractView.cpp.
References Boundary::add(), DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), Boundary::getWidth(), GLO_MAX, myChanger, myVisualizationSettings, Position::rotateAround2D(), Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by getObjectsInBoundary(), makeSnapshot(), and paintGL().
|
overridevirtual |
recalibrate color scheme according to the current value range
Reimplemented from GUISUMOAbstractView.
Definition at line 175 of file GUIViewTraffic.cpp.
References GUIPropertyScheme< T >::addColor(), GUISUMOAbstractView::buildMinMaxRainbow(), GUIPropertyScheme< T >::clear(), RGBColor::fromHSV(), MSEdge::getAllEdges(), GUIEdge::getColorValue(), GUIGlObject::getColorValue(), GUILane::getColorValue(), MSNet::getInstance(), GUIPropertyScheme< T >::getName(), MSNet::getVehicleControl(), GLO_JUNCTION, GLO_LANE, GLO_VEHICLE, MSGlobals::gUseMesoSim, GUIPropertyScheme< T >::isFixed(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), MAX2(), MIN2(), GUIVisualizationSettings::MISSING_DATA, and GUIVisualizationSettings::SCHEME_NAME_PERMISSION_CODE.
|
protectedinherited |
helper function for buildColorRainbow
Definition at line 2025 of file GUISUMOAbstractView.cpp.
References GUIPropertyScheme< T >::addColor(), GUIPropertyScheme< T >::clear(), GUIVisualizationSettings::COL_MISSING_DATA, GUIVisualizationRainbowSettings::colors, GUIVisualizationRainbowSettings::fixRange, GUIPropertyScheme< T >::getName(), GUIVisualizationRainbowSettings::hideMax, GUIVisualizationRainbowSettings::hideMin, MAX2(), GUIVisualizationRainbowSettings::maxThreshold, MIN2(), GUIVisualizationRainbowSettings::minThreshold, GUIVisualizationSettings::MISSING_DATA, GUIVisualizationRainbowSettings::neutralThreshold, GUIVisualizationSettings::SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGEDATA_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_LANE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_PARAM_NUMERICAL, and GUIVisualizationRainbowSettings::setNeutral.
Referenced by GNEViewNet::buildColorRainbow(), and GUIViewTraffic::buildColorRainbow().
|
overridevirtual |
builds the view toolbars
Reimplemented from GUISUMOAbstractView.
Definition at line 98 of file GUIViewTraffic.cpp.
References MFXComboBoxIcon::appendIconItem(), GUIGlChildWindow::getColoringSchemesCombo(), GUIIconSubSys::getIcon(), GUIGlChildWindow::getLocatorPopup(), MFXComboBoxIcon::getNumItems(), gSchemeStorage, GUIDesignButtonPopup, LOCATEADD, LOCATECONTAINER, LOCATEEDGE, LOCATEJUNCTION, LOCATEPERSON, LOCATEPOI, LOCATEPOLY, LOCATETLS, LOCATEVEHICLE, MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL, MID_HOTKEY_SHIFT_C_LOCATECONTAINER, MID_HOTKEY_SHIFT_E_LOCATEEDGE, MID_HOTKEY_SHIFT_J_LOCATEJUNCTION, MID_HOTKEY_SHIFT_L_LOCATEPOLY, MID_HOTKEY_SHIFT_O_LOCATEPOI, MID_HOTKEY_SHIFT_P_LOCATEPERSON, MID_HOTKEY_SHIFT_T_LOCATETLS, MID_HOTKEY_SHIFT_V_LOCATEVEHICLE, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myVisualizationSettings, MFXComboBoxIcon::setCurrentItem(), and TL.
|
inherited |
centers to the chosen artifact
Definition at line 1002 of file GUISUMOAbstractView.cpp.
References myChanger.
|
virtualinherited |
centers to the chosen position
| [in] | pos | Position to center view |
| [in] | applyZoom | Whether to zoom in |
| [in] | zoomDist | The distance in m to use for the zoom, values < 0 means: use the centeringBoundary |
Definition at line 994 of file GUISUMOAbstractView.cpp.
References myChanger, and updatePositionInformationLabel().
|
overridevirtual |
centers to the chosen artifact
| [in] | id | The id of the artifact to center to |
| [in] | applyZoom | Whether to zoom in |
| [in] | zoomDist | The distance in m to use for the zoom, values < 0 means: use the centeringBoundary |
Reimplemented from GUISUMOAbstractView.
Definition at line 342 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::centerTo(), GUIGlobals::gSecondaryShape, and GUISUMOAbstractView::myVisualizationSettings.
|
overridevirtual |
Change the color of the JuPedSim pedestrian network.
| s | The visualization settings |
Reimplemented from GUISUMOAbstractView.
Definition at line 810 of file GUIViewTraffic.cpp.
References MSNet::getInstance(), ShapeContainer::getPolygons(), MSNet::getShapeContainer(), and GUIVisualizationSettings::pedestrianNetworkColor.
|
protectedinherited |
check whether we can read image data or position with gdal
Definition at line 1781 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GeoConvHelper::getFinal(), getGridHeight(), getGridWidth(), GeoConvHelper::getOffset(), GUIDesignTextColorBlack, GUISUMOAbstractView::Decal::height, TL, GUISUMOAbstractView::Decal::width, WRITE_WARNINGF, Position::x(), and Position::y().
Referenced by drawDecals().
|
overridevirtual |
Checks whether it is time for a snapshot.
Reimplemented from GUISUMOAbstractView.
Definition at line 781 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), DELTA_T, and getCurrentTimeStep().
|
inherited |
clear all decals
Definition at line 1761 of file GUISUMOAbstractView.cpp.
References myDecals, myDecalsLockMutex, and queueTextureDelete().
Referenced by GUIApplicationWindow::closeAllWindows().
|
virtualinherited |
copy the viewport to the given view
Definition at line 1653 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView(), myChanger, and setViewportFromToRot().
Referenced by GUIApplicationWindow::openNewView().
|
inherited |
destroys the popup
Definition at line 1080 of file GUISUMOAbstractView.cpp.
References myCurrentObjectsDialog, myPopup, and myPopupPosition.
Referenced by GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdConvertRoundabout(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditLaneShape(), GNEViewNet::onCmdEditWalkingAreaShape(), GNEViewNet::onCmdReplaceJunction(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndPoints(), GNEViewNet::onCmdResetJunctionShape(), GNEViewNet::onCmdSelectRoundabout(), GNEViewNet::onCmdSmoothConnectionShape(), GNEViewNet::onCmdSplitJunction(), GNEViewNet::onCmdSplitJunctionReconnect(), onLeftBtnPress(), onLeftBtnRelease(), onMiddleBtnPress(), onMiddleBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openSelectDialogAtCursor(), and GNEViewNet::processClick().
|
protectedinherited |
Draws a legend for the given scheme.
Definition at line 759 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, FONS_ALIGN_RIGHT, GUIPropertyScheme< T >::getColors(), GUIPropertyScheme< T >::getName(), GUIPropertyScheme< T >::getNames(), GUIPropertyScheme< T >::getThresholds(), RGBColor::interpolate(), GUIPropertyScheme< T >::isFixed(), GUIVisualizationSettings::MISSING_DATA, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIVisualizationSettings::SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGEDATA_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_LANE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_PARAM_NUMERICAL, GLHelper::setColor(), StringUtils::startsWith(), toString(), and RGBColor::WHITE.
Referenced by displayLegends().
|
protectedinherited |
Draws a line with ticks, and the length information.
Definition at line 667 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, m2p(), GLHelper::popMatrix(), and GLHelper::pushMatrix().
Referenced by displayLegends().
|
protectedinherited |
Draws the configured legends.
Definition at line 733 of file GUISUMOAbstractView.cpp.
References displayColorLegend(), displayLegend(), myVisualizationSettings, GUIVisualizationSettings::SCHEME_NAME_EDGE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGEDATA_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_LANE_PARAM_NUMERICAL, and GUIVisualizationSettings::SCHEME_NAME_PARAM_NUMERICAL.
Referenced by makeSnapshot(), and paintGL().
|
protectedvirtualinherited |
doInit
Reimplemented in GNEViewNet.
Definition at line 296 of file GUISUMOAbstractView.cpp.
Referenced by onConfigure().
|
overrideprotectedvirtual |
paint GL
Reimplemented from GUISUMOAbstractView.
Definition at line 349 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::drawDecals(), GUINet::getGUIInstance(), GUINet::getVisualisationSpeedUp(), GUIGlobals::gSecondaryShape, GUINet::lock(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::myAdditionallyDrawn, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GLHelper::popMatrix(), GLHelper::pushMatrix(), SUMORTree::Search(), SUMO_const_laneWidth, GUINet::unlock(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
protectedinherited |
Draws the stored decals.
Definition at line 1861 of file GUISUMOAbstractView.cpp.
References GUITexturesHelper::add(), checkGDALImage(), GUITexturesHelper::drawTexturedBox(), GUITexturesHelper::getMaxTextureSize(), MFXImageHelper::loadImage(), myDecals, myDecalsLockMutex, p2m(), GLHelper::popMatrix(), GLHelper::popName(), GLHelper::pushMatrix(), GLHelper::pushName(), MFXImageHelper::scalePower2(), screenPos2NetPos(), WRITE_ERROR, Position::x(), and Position::y().
Referenced by GNEViewNet::doPaintGL(), GUIViewTraffic::doPaintGL(), and makeSnapshot().
|
protectedinherited |
Draws frames-per-second indicator.
Definition at line 933 of file GUISUMOAbstractView.cpp.
References GLHelper::drawText(), FONS_ALIGN_LEFT, getFPS(), GLHelper::getMatrixCounter(), GLHelper::getVertexCounter(), GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, and toString().
Referenced by paintGL().
|
overridevirtual |
Draw (or not) the JuPedSim pedestrian network.
| s | The visualization settings |
Reimplemented from GUISUMOAbstractView.
Definition at line 798 of file GUIViewTraffic.cpp.
References GUIShapeContainer::addInactivePolygonTypes(), MSNet::getInstance(), MSNet::getShapeContainer(), GUIShapeContainer::removeInactivePolygonTypes(), and GUIVisualizationSettings::showPedestrianNetwork.
|
inherited |
edit visualization settings (allow modify VisualizationSetings, use carefully)
Definition at line 1674 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
Referenced by GUILane::getParameterWindow(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), and GUIApplicationWindow::onCmdToggleSecondaryShape().
|
overridevirtual |
Ends a video snapshot.
Reimplemented from GUISUMOAbstractView.
Definition at line 770 of file GUIViewTraffic.cpp.
Referenced by ~GUIViewTraffic().
|
inherited |
filter out duplicate and forbidden objects
Definition at line 1280 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_PRIORITY.
Referenced by openObjectDialogAtCursor().
|
protectedinherited |
filter internal lanes in Objects under cursor
Definition at line 585 of file GUISUMOAbstractView.cpp.
References GLO_LANE, and myVisualizationSettings.
|
inherited |
get changer
Definition at line 188 of file GUISUMOAbstractView.cpp.
References myChanger.
Referenced by GUISettingsHandler::applyViewport(), GUIApplicationWindow::closeAllWindows(), and GUIApplicationWindow::onCmdOpenInNetedit().
|
inherited |
get coloring schemes combo
Definition at line 1775 of file GUISUMOAbstractView.cpp.
References myGlChildWindowParent.
Referenced by GUISettingsHandler::addSettings(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
overridevirtual |
get the current simulation time
Reimplemented from GUISUMOAbstractView.
Definition at line 594 of file GUIViewTraffic.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by checkSnapshots(), and onGamingClick().
|
inherited |
The list of decals to show.
Definition at line 1729 of file GUISUMOAbstractView.cpp.
References myDecals.
Referenced by GUIApplicationWindow::closeAllWindows().
|
inherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 1735 of file GUISUMOAbstractView.cpp.
References myDecalsLockMutex.
|
inherited |
Returns the delay of the parent application.
Definition at line 2007 of file GUISUMOAbstractView.cpp.
References myApp.
|
overridevirtual |
return list of loaded edgeData attributes
Reimplemented from GUISUMOAbstractView.
Definition at line 264 of file GUIViewTraffic.cpp.
References GUINet::getEdgeDataAttrs(), and GUINet::getGUIInstance().
|
overridevirtual |
return list of available edge parameters
Reimplemented from GUISUMOAbstractView.
Definition at line 290 of file GUIViewTraffic.cpp.
References MSEdge::getAllEdges().
|
inherited |
retrieve FPS
Definition at line 921 of file GUISUMOAbstractView.cpp.
References MAX2(), and myFrameDrawTime.
Referenced by drawFPS(), and GUINet::getParameterWindow().
|
inherited |
get grid height
Definition at line 1698 of file GUISUMOAbstractView.cpp.
References myGrid.
Referenced by checkGDALImage().
|
inherited |
get grid width
Definition at line 1692 of file GUISUMOAbstractView.cpp.
References myGrid.
Referenced by checkGDALImage().
|
inherited |
get GUIGlChildWindow
Definition at line 927 of file GUISUMOAbstractView.cpp.
References myGlChildWindowParent.
|
protectedinherited |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT
Definition at line 515 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, and Boundary::grow().
Referenced by getGUIGlObjectsUnderCursor(), getGUIGlObjectsUnderSnappedCursor(), and GUIViewTraffic::onGamingClick().
|
protectedinherited |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)
Definition at line 426 of file GUISUMOAbstractView.cpp.
References getGUIGlObjectsAtPosition(), getPositionInformation(), and SENSITIVITY.
Referenced by openObjectDialogAtCursor().
|
protectedinherited |
returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects)
Definition at line 432 of file GUISUMOAbstractView.cpp.
References getGUIGlObjectsAtPosition(), getPositionInformation(), SENSITIVITY, and snapToActiveGrid().
|
overrideprotectedvirtual |
returns the GUILane at cursor position (implementation depends on view)
Reimplemented from GUISUMOAbstractView.
Definition at line 727 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::getObjectUnderCursor(), GUIGlObjectStorage::gIDStorage, and GUISUMOAbstractView::makeCurrent().
Referenced by onCmdAddRerouter(), onCmdCloseEdge(), onCmdCloseLane(), and onCmdShowReachability().
|
inherited |
get main window
Definition at line 1009 of file GUISUMOAbstractView.cpp.
References myApp.
Referenced by GUICursorDialog::buildDialogElements().
|
overridevirtual |
return list of available attributes for the given meanData id
Reimplemented from GUISUMOAbstractView.
Definition at line 281 of file GUIViewTraffic.cpp.
References GUINet::getGUIInstance(), and GUINet::getMeanDataAttrs().
|
overridevirtual |
return list of loaded edgeData ids (being computed in the current simulation)
Reimplemented from GUISUMOAbstractView.
Definition at line 273 of file GUIViewTraffic.cpp.
References GUINet::getGUIInstance(), and GUINet::getMeanDataIDs().
|
protectedinherited |
returns the id of the object at position using GL_SELECT
Definition at line 438 of file GUISUMOAbstractView.cpp.
References Boundary::add(), Position::distanceTo2D(), GUIGlObject::getCenter(), GUIGlObject::getClickPriority(), GUIGlObject::getGlID(), getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, and Boundary::grow().
Referenced by getObjectUnderCursor().
|
protectedinherited |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 480 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_NETWORK, and Boundary::grow().
Referenced by getObjectsUnderCursor().
|
protectedinherited |
returns the ids of all objects in the given boundary
Definition at line 545 of file GUISUMOAbstractView.cpp.
References applyGLTransform(), doPaintGL(), m2p(), myApp, myChanger, myVisualizationSettings, SUMO_const_laneWidth, and toString().
Referenced by getGUIGlObjectsAtPosition(), getObjectAtPosition(), getObjectsAtPosition(), GNEViewNet::onCmdAttachPOI(), and GNEViewNet::recalculateBoundaries().
|
protectedinherited |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)
Definition at line 419 of file GUISUMOAbstractView.cpp.
References getObjectsAtPosition(), getPositionInformation(), and SENSITIVITY.
|
protectedinherited |
returns the id of the front object under the cursor using GL_SELECT
Definition at line 413 of file GUISUMOAbstractView.cpp.
References getObjectAtPosition(), and getPositionInformation().
Referenced by GUIViewTraffic::getLaneUnderCursor(), getToolTipID(), and onLeftBtnPress().
|
overridevirtual |
return list of available POI parameters
Reimplemented from GUISUMOAbstractView.
Definition at line 329 of file GUIViewTraffic.cpp.
References MSNet::getInstance(), and MSNet::getShapeContainer().
|
inherited |
ge the current popup-menu
Definition at line 1068 of file GUISUMOAbstractView.cpp.
References myPopup.
|
inherited |
get position of current popup
Definition at line 1074 of file GUISUMOAbstractView.cpp.
References myPopupPosition.
Referenced by GNEViewNet::onCmdDeleteGeometryPoint(), GNEViewNet::onCmdEditEdgeEndpoint(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdSetFirstGeometryPoint(), GNEViewNet::onCmdSplitEdge(), and GNEViewNet::onCmdSplitEdgeBidi().
|
virtualinherited |
Returns the cursor's x/y position within the network.
Definition at line 202 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, myWindowCursorPositionY, and screenPos2NetPos().
Referenced by GNEMoveElement::calculateNewLaneChange(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), getGUIGlObjectsUnderCursor(), getGUIGlObjectsUnderSnappedCursor(), getObjectsUnderCursor(), getObjectUnderCursor(), GNEViewNet::onCmdSetCustomGeometryPoint(), GUIViewTraffic::onGamingClick(), onLeftBtnRelease(), onMouseMove(), onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), and updatePositionInformationLabel().
|
inlinevirtualinherited |
return list of loaded edgeRelation and tazRelation attributes
Reimplemented in GNEViewNet.
Definition at line 285 of file GUISUMOAbstractView.h.
|
protectedvirtualinherited |
returns the id of object under cursor to show their tooltip
Reimplemented in GNEViewNet.
Definition at line 407 of file GUISUMOAbstractView.cpp.
References getObjectUnderCursor().
Referenced by paintGL().
|
overridevirtual |
Returns the id of the tracked vehicle (-1 if none).
Reimplemented from GUISUMOAbstractView.
Definition at line 419 of file GUIViewTraffic.cpp.
References myTrackedID.
|
overridevirtual |
return list of available vehicle parameters
Reimplemented from GUISUMOAbstractView.
Definition at line 310 of file GUIViewTraffic.cpp.
References GUINet::getGUIInstance(), GUINet::getGUIMEVehicleControl(), GUINet::getGUIVehicleControl(), MSGlobals::gUseMesoSim, MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), MSVehicleControl::releaseVehicles(), and MSVehicleControl::secureVehicles().
|
inherited |
get the viewport and create it on first access
Definition at line 1618 of file GUISUMOAbstractView.cpp.
References myGUIDialogEditViewport, TLC, and updateViewportValues().
Referenced by showViewportEditor().
|
inherited |
|
inherited |
get visualization settings (read only)
Definition at line 1668 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
Referenced by GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), and GUIApplicationWindow::onCmdToggleSecondaryShape().
|
inherited |
return windows cursor position
Definition at line 1015 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, and myWindowCursorPositionY.
Referenced by updatePositionInformationLabel().
|
virtualinherited |
return whether this is a 3D view
Definition at line 307 of file GUISUMOAbstractView.cpp.
Referenced by GUISettingsHandler::applyViewport().
|
inherited |
Check if an object is added in the additional GL visualitation.
| [in] | which | The object to check |
Definition at line 1963 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
|
inherited |
returns true, if the edit button was pressed
Definition at line 182 of file GUISUMOAbstractView.cpp.
References myInEditMode.
|
inherited |
meter-to-pixels conversion method
Definition at line 956 of file GUISUMOAbstractView.cpp.
References myChanger.
Referenced by displayLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::drawGLElements(), getObjectsInBoundary(), and makeSnapshot().
|
inherited |
A reimplementation due to some internal reasons.
Definition at line 1028 of file GUISUMOAbstractView.cpp.
Referenced by GUIApplicationWindow::closeAllWindows(), GUIViewTraffic::getLaneUnderCursor(), makeSnapshot(), onConfigure(), GUIViewTraffic::onGamingClick(), onLeftBtnPress(), onPaint(), openObjectDialogAtCursor(), GNEViewNet::recalculateBoundaries(), and ~GUISUMOAbstractView().
|
inherited |
Takes a snapshots and writes it into the given file.
The format to use is determined from the extension. If compiled with ffmpeg and a video format is requested it will instantiate a video encoder.
| [in] | destFile | The name of the file to write the snapshot into |
| [in] | w | The snapshot image width |
| [in] | w | The snapshot image height |
Definition at line 1401 of file GUISUMOAbstractView.cpp.
References applyGLTransform(), displayLegends(), doPaintGL(), drawDecals(), FILE, m2p(), makeCurrent(), myChanger, myGrid, myVisualizationSettings, paintGLGrid(), GLHelper::pushMatrix(), saveFrame(), MFXImageHelper::saveImage(), GLHelper::setGL2PS(), MFXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by checkSnapshots().
|
overridevirtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 624 of file GUIViewTraffic.cpp.
References GUIEdge::addRerouter(), MSLane::getEdge(), GUIGlObject::getGlID(), getLaneUnderCursor(), and GUIGlObjectStorage::gIDStorage.
|
overridevirtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 612 of file GUIViewTraffic.cpp.
References GUIEdge::closeTraffic(), MSLane::getEdge(), GUIGlObject::getGlID(), getLaneUnderCursor(), and GUIGlObjectStorage::gIDStorage.
|
overridevirtual |
interaction with the simulation
Reimplemented from GUISUMOAbstractView.
Definition at line 600 of file GUIViewTraffic.cpp.
References GUILane::closeTraffic(), GUIGlObject::getGlID(), getLaneUnderCursor(), and GUIGlObjectStorage::gIDStorage.
|
overridevirtual |
highlight edges according to reachability
Reimplemented from GUISUMOAbstractView.
Definition at line 711 of file GUIViewTraffic.cpp.
References getLaneUnderCursor(), GUISUMOAbstractView::myVisualizationSettings, and showLaneReachability().
|
virtualinherited |
mouse functions
Definition at line 1035 of file GUISUMOAbstractView.cpp.
References checkSnapshots(), doInit(), makeCurrent(), myAmInitialised, and myVisualizationSettings.
Referenced by FXDEFMAP().
|
overridevirtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 743 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::myApp, and stopTrack().
|
overridevirtual |
handle mouse click in gaming mode
Reimplemented from GUISUMOAbstractView.
Definition at line 425 of file GUIViewTraffic.cpp.
References GUIBaseVehicle::addActiveAddVisualisation(), NamedObjectCont< T >::begin(), MSTrafficLightLogic::changeStepAndDuration(), Position::distanceTo(), Position::distanceTo2D(), MSPhaseDefinition::duration, NamedObjectCont< T >::end(), MSLane::geometryPositionAtOffset(), MSTLLogicControl::getAllLogics(), MSTrafficLightLogic::getCurrentPhaseDef(), MSTrafficLightLogic::getCurrentPhaseIndex(), getCurrentTimeStep(), MSStoppingPlace::getEndLanePosition(), MSEdge::getFromJunction(), GUIGlObject::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSVehicle::getMutableLane(), MSBaseVehicle::getParameter(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getPhases(), GUIVehicle::getPosition(), MSJunction::getPosition(), GUISUMOAbstractView::getPositionInformation(), MSTrafficLightLogic::getSpentDuration(), MSNet::getStoppingPlaces(), MSNet::getTLSControl(), MSNet::getVehicleControl(), MSLane::getVehiclesSecure(), GUIGlObjectStorage::gIDStorage, GLO_REROUTER_EDGE, GLO_VEHICLE, gSelected, MSGlobals::gUseMesoSim, MSTLLogicControl::isActive(), MSPhaseDefinition::isAllRedPhase(), MSPhaseDefinition::isGreenPhase(), SUMOVehicleParameter::line, MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), GUISUMOAbstractView::makeCurrent(), MIN2(), myTLSGame, n, GUIGlObject::onLeftBtnPress(), MSLane::releaseVehicles(), GUIVehicle::rerouteDRTStop(), SUMO_TAG_BUS_STOP, and GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE.
|
overridevirtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 579 of file GUIViewTraffic.cpp.
References GUIGlObjectStorage::gIDStorage, GLO_VEHICLE, gSelected, GUIBaseVehicle::removeActiveAddVisualisation(), and GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE.
|
virtualinherited |
keyboard functions
Reimplemented in GNEViewNet.
Definition at line 1352 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, and myVisualizationSettings.
Referenced by FXDEFMAP(), and GNEViewNet::onKeyPress().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1378 of file GUISUMOAbstractView.cpp.
References myChanger, and myPopup.
Referenced by FXDEFMAP(), and GNEViewNet::onKeyRelease().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1108 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getObjectUnderCursor(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_PERSON, GLO_VEHICLE, gSelected, makeCurrent(), myApp, myChanger, and startTrack().
Referenced by FXDEFMAP().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1154 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), myApp, myChanger, and onGamingClick().
Referenced by FXDEFMAP(), and GNEViewNet::onLeftBtnRelease().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1166 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUICursorSubSys::getCursor(), MOVEVIEW, myApp, myChanger, and myPanning.
Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnPress().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1183 of file GUISUMOAbstractView.cpp.
References DEFAULT, destroyPopup(), GUICursorSubSys::getCursor(), myApp, myChanger, and myPanning.
Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnRelease().
|
virtualinherited |
Definition at line 1275 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1247 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), Position::INVALID, MID_CURSORDIALOG_FRONT, myChanger, myGUIDialogEditViewport, myPopup, myPopupPosition, and updatePositionInformationLabel().
Referenced by FXDEFMAP(), GNEViewNet::onMouseMove(), and onRightBtnRelease().
|
virtualinherited |
Definition at line 1231 of file GUISUMOAbstractView.cpp.
References myApp, myChanger, myGUIDialogEditViewport, and updatePositionInformationLabel().
Referenced by FXDEFMAP().
|
virtualinherited |
Definition at line 1053 of file GUISUMOAbstractView.cpp.
References makeCurrent(), MID_RUNTESTS, myAmInitialised, myApp, and paintGL().
Referenced by FXDEFMAP(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1199 of file GUISUMOAbstractView.cpp.
References destroyPopup(), myApp, and myChanger.
Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnPress().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1210 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), myApp, myChanger, onGamingRightClick(), onMouseMove(), and openObjectDialogAtCursor().
Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnRelease().
|
virtualinherited |
hook to react on change in visualization settings
Definition at line 395 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
inherited |
open object dialog for the given object
Definition at line 1321 of file GUISUMOAbstractView.cpp.
References myApp, myCurrentObjectsDialog, myPopup, openPopupDialog(), and GUIGLObjectPopupMenu::PROPERTIES.
Referenced by GNEViewNet::openObjectDialogAtCursor().
|
virtualinherited |
open object dialog at the cursor position
Reimplemented in GNEViewNet.
Definition at line 1293 of file GUISUMOAbstractView.cpp.
References filterContextObjects(), getGUIGlObjectsUnderCursor(), GUIGlObjectStorage::gIDStorage, makeCurrent(), myAmInitialised, myApp, myPopup, openPopupDialog(), and GUIGLObjectPopupMenu::PROPERTIES.
Referenced by onRightBtnRelease().
|
protectedinherited |
open popup dialog
Definition at line 1907 of file GUISUMOAbstractView.cpp.
References getPositionInformation(), MIN2(), myApp, myChanger, myPopup, and myPopupPosition.
Referenced by GNEViewNet::openDeleteDialogAtCursor(), openObjectDialog(), GNEViewNet::openObjectDialogAtCursor(), openObjectDialogAtCursor(), and GNEViewNet::openSelectDialogAtCursor().
|
inherited |
pixels-to-meters conversion method
Definition at line 962 of file GUISUMOAbstractView.cpp.
References myChanger.
Referenced by drawDecals().
|
protectedinherited |
FOX needs this.
performs the painting of the simulation
Definition at line 317 of file GUISUMOAbstractView.cpp.
References applyGLTransform(), centerTo(), GLHelper::checkCounterMatrix(), GLHelper::checkCounterName(), displayLegends(), doPaintGL(), drawFPS(), SysUtils::getCurrentMillis(), getToolTipID(), getTrackedID(), GUIGlObject::INVALID_ID, myFrameDrawTime, myGlChildWindowParent, myVisualizationSettings, processPendingTextureDeletes(), GLHelper::resetMatrixCounter(), GLHelper::resetVertexCounter(), and showToolTipFor().
Referenced by onPaint().
|
protectedinherited |
paints a grid
Definition at line 625 of file GUISUMOAbstractView.cpp.
References myChanger, and myVisualizationSettings.
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::drawGrid(), and makeSnapshot().
|
inherited |
process pending texture deletions
Definition at line 1748 of file GUISUMOAbstractView.cpp.
References myPendingTextureDeletes, and myTextureDeleteMutex.
Referenced by GUIApplicationWindow::closeAllWindows(), paintGL(), and ~GUISUMOAbstractView().
|
inherited |
queue a texture for deletion
Definition at line 1741 of file GUISUMOAbstractView.cpp.
References myPendingTextureDeletes, and myTextureDeleteMutex.
Referenced by clearDecals(), and ~GUISUMOAbstractView().
|
inlinevirtualinherited |
recalculate boundaries
Reimplemented in GNEViewNet.
Definition at line 94 of file GUISUMOAbstractView.h.
|
virtualinherited |
recenters the view
Definition at line 968 of file GUISUMOAbstractView.cpp.
References myChanger, and myGrid.
Referenced by GUISettingsHandler::applyViewport(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
remove viewport
Definition at line 1680 of file GUISUMOAbstractView.cpp.
References myGUIDialogEditViewport.
|
inherited |
remove view settings
Definition at line 1686 of file GUISUMOAbstractView.cpp.
References myGUIDialogViewSettings.
|
inherited |
Removes an object from the list of objects that show additional things.
| [in] | which | The object to remove |
Definition at line 1947 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIVehicle::drawOutsideNetwork().
|
inherited |
replace PopUp
Definition at line 1092 of file GUISUMOAbstractView.cpp.
|
overridevirtual |
retrieve breakpoints from the current runThread
Reimplemented from GUISUMOAbstractView.
Definition at line 792 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::myApp.
|
overridevirtual |
Adds a frame to a video snapshot which will be initialized if necessary.
Reimplemented from GUISUMOAbstractView.
Definition at line 756 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::myApp, and UNUSED_PARAMETER.
|
inherited |
Translate screen position to network position.
Definition at line 227 of file GUISUMOAbstractView.cpp.
References DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), Boundary::getWidth(), myChanger, Position::rotateAround2D(), Boundary::xmin(), and Boundary::ymin().
Referenced by drawDecals(), and getPositionInformation().
|
inherited |
Sets the breakpoints of the parent application.
Definition at line 2019 of file GUISUMOAbstractView.cpp.
References myApp.
|
overridevirtual |
set color scheme
Reimplemented from GUISUMOAbstractView.
Definition at line 158 of file GUIViewTraffic.cpp.
References gSchemeStorage, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myGUIDialogViewSettings, and GUISUMOAbstractView::myVisualizationSettings.
|
inherited |
Sets the delay of the parent application.
Definition at line 2013 of file GUISUMOAbstractView.cpp.
References myApp.
|
virtualinherited |
applies the given viewport settings
Definition at line 1645 of file GUISUMOAbstractView.cpp.
References myChanger, Position::x(), Position::y(), and Position::z().
Referenced by GUISettingsHandler::applyViewport(), copyViewportTo(), GUIApplicationWindow::handleEvent_SimulationLoaded(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
Returns the gl-id of the object under the given coordinates.
Definition at line 1021 of file GUISUMOAbstractView.cpp.
References myMouseHotspotX, myMouseHotspotY, myWindowCursorPositionX, and myWindowCursorPositionY.
|
static |
Definition at line 636 of file GUIViewTraffic.cpp.
References SUMOVTypeParameter::VClassDefaultValues::desiredMaxSpeed, MSEdge::getAllEdges(), MSLane::getEdge(), GUIGlObject::getGlID(), MSJunction::getIncoming(), MSNet::getInstance(), MSEdge::getLanes(), MSEdge::getLength(), MSEdge::getPermissions(), MSEdge::getPredecessors(), MSEdge::getSpeedLimit(), MSEdge::getSuccessors(), MSEdge::getToJunction(), gSelected, INVALID_DOUBLE, MAX2(), MIN2(), GUILane::setReachability(), SumoVehicleClassStrings, and SVC_PEDESTRIAN.
Referenced by onCmdShowReachability().
|
protectedinherited |
invokes the tooltip for the given object
Definition at line 610 of file GUISUMOAbstractView.cpp.
References GUIGlObjectStorage::gIDStorage, GUIGlObject::INVALID_ID, and myGlChildWindowParent.
Referenced by paintGL().
|
virtualinherited |
show viewport editor
Definition at line 1636 of file GUISUMOAbstractView.cpp.
References getViewportEditor(), Position::INVALID, myChanger, and myGUIDialogEditViewport.
|
inherited |
show viewsscheme editor
Definition at line 1605 of file GUISUMOAbstractView.cpp.
References myGUIDialogViewSettings, and myVisualizationSettings.
|
inherited |
Returns a position that is mapped to the closest grid point if the grid is active.
note: formats are pos(x,y,0) por pos(0,0,z)
Definition at line 208 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings, Position::x(), Position::y(), and Position::z().
Referenced by GNEMoveElement::calculateLaneOffset(), GNEMoveElement::commitMove(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), getGUIGlObjectsUnderSnappedCursor(), GNEMoveElement::moveElement(), and GNEViewNet::processLeftButtonPressNetwork().
|
overridevirtual |
Starts vehicle tracking.
| [in] | id | The glID of the vehicle to track |
Reimplemented from GUISUMOAbstractView.
Definition at line 400 of file GUIViewTraffic.cpp.
References GUIBaseVehicle::addActiveAddVisualisation(), GUIGlObjectStorage::gIDStorage, myTrackedID, and GUIBaseVehicle::VO_TRACK.
|
overridevirtual |
Stops vehicle tracking.
Reimplemented from GUISUMOAbstractView.
Definition at line 413 of file GUIViewTraffic.cpp.
References GUIGlObject::INVALID_ID, and myTrackedID.
Referenced by onDoubleClicked().
|
protectedvirtualinherited |
update position information labels
Definition at line 265 of file GUISUMOAbstractView.cpp.
References GeoConvHelper::cartesian2geo(), GeoConvHelper::getFinal(), OptionsCont::getOptions(), getPositionInformation(), getWindowCursorPosition(), gPrecisionGeo, myApp, TL, toString(), Position::x(), and Position::y().
Referenced by centerTo(), centerTo(), onMouseMove(), and onMouseWheel().
|
inherited |
A method that updates the tooltip.
Definition at line 194 of file GUISUMOAbstractView.cpp.
References myGlChildWindowParent.
|
virtualinherited |
update the viewport chooser with the current view values
Definition at line 1628 of file GUISUMOAbstractView.cpp.
References myChanger, and myGUIDialogEditViewport.
Referenced by getViewportEditor().
|
inherited |
Definition at line 1590 of file GUISUMOAbstractView.cpp.
References mySnapshotCondition, mySnapshots, and mySnapshotsMutex.
|
virtualinherited |
zoom interface for 3D view
Definition at line 312 of file GUISUMOAbstractView.cpp.
|
protectedinherited |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 644 of file GUISUMOAbstractView.h.
Referenced by addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), isAdditionalGLVisualisationEnabled(), removeAdditionalGLVisualisation(), and ~GUISUMOAbstractView().
|
protectedinherited |
Internal information whether doInit() was called.
Definition at line 603 of file GUISUMOAbstractView.h.
Referenced by onConfigure(), onPaint(), GNEViewNet::openObjectDialogAtCursor(), and openObjectDialogAtCursor().
|
protectedinherited |
The application.
Definition at line 567 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::buildViewToolBars(), GNEViewNet::doPaintGL(), getDelay(), getMainWindow(), getObjectsInBoundary(), GUISUMOAbstractView(), GUIViewTraffic::onDoubleClicked(), onLeftBtnPress(), onLeftBtnRelease(), onMiddleBtnPress(), onMiddleBtnRelease(), onMouseWheel(), onPaint(), onRightBtnPress(), onRightBtnRelease(), openObjectDialog(), openObjectDialogAtCursor(), openPopupDialog(), GUIViewTraffic::retrieveBreakpoints(), GUIViewTraffic::saveFrame(), setBreakpoints(), GUIViewTraffic::setColorScheme(), setDelay(), GNEViewNet::setStatusBarText(), and updatePositionInformationLabel().
|
protectedinherited |
The perspective changer.
Definition at line 576 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), centerTo(), centerTo(), centerTo(), copyViewportTo(), getChanger(), getObjectsInBoundary(), getVisibleBoundary(), GNEViewNet::GNEViewNet(), GUISUMOAbstractView(), m2p(), makeSnapshot(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMiddleBtnPress(), onMiddleBtnRelease(), onMouseMove(), onMouseWheel(), onRightBtnPress(), onRightBtnRelease(), openPopupDialog(), p2m(), paintGLGrid(), GNEViewNet::processClick(), recenterView(), replacePopup(), GNEViewNet::saveVisualizationSettings(), screenPos2NetPos(), setViewportFromToRot(), showViewportEditor(), updateViewportValues(), and ~GUISUMOAbstractView().
|
protectedinherited |
clicked poup position
Definition at line 591 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), and GNEViewNet::openSelectDialogAtCursor().
|
protectedinherited |
vector with current objects dialog
Definition at line 597 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), GNEViewNet::drawTemporalRoundabout(), and openObjectDialog().
|
protectedinherited |
The list of decals to show.
Definition at line 618 of file GUISUMOAbstractView.h.
Referenced by addDecals(), clearDecals(), drawDecals(), getDecals(), GUISUMOAbstractView(), and ~GUISUMOAbstractView().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 621 of file GUISUMOAbstractView.h.
Referenced by addDecals(), clearDecals(), drawDecals(), and getDecalsLockMutex().
|
protectedinherited |
counter for measuring rendering time
Definition at line 647 of file GUISUMOAbstractView.h.
|
protectedinherited |
The parent window.
Definition at line 570 of file GUISUMOAbstractView.h.
Referenced by getColoringSchemesCombo(), getGUIGlChildWindow(), GUISUMOAbstractView(), paintGL(), showToolTipFor(), and updateToolTip().
|
protectedinherited |
The visualization speed-up.
Definition at line 573 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::drawGLElements(), getGridHeight(), getGridWidth(), GUISUMOAbstractView(), makeSnapshot(), and recenterView().
|
protectedinherited |
viewport chooser
Definition at line 606 of file GUISUMOAbstractView.h.
Referenced by getViewportEditor(), onMouseMove(), onMouseWheel(), remove(), showViewportEditor(), updateViewportValues(), and ~GUISUMOAbstractView().
|
protectedinherited |
Visualization changer.
Definition at line 612 of file GUISUMOAbstractView.h.
Referenced by remove(), GNEViewNet::setColorScheme(), GUIViewTraffic::setColorScheme(), showViewschemeEditor(), and ~GUISUMOAbstractView().
|
protectedinherited |
Information whether too-tip informations shall be generated.
Definition at line 582 of file GUISUMOAbstractView.h.
Referenced by isInEditMode().
|
protectedinherited |
Offset to the mouse-hotspot from the mouse position.
Definition at line 585 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView(), and setWindowCursorPosition().
|
protectedinherited |
Definition at line 585 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView(), and setWindowCursorPosition().
|
protectedinherited |
Panning flag.
Definition at line 579 of file GUISUMOAbstractView.h.
Referenced by onMiddleBtnPress(), onMiddleBtnRelease(), and GNEViewNet::updateCursor().
|
protectedinherited |
texture IDs pending deletion
Definition at line 624 of file GUISUMOAbstractView.h.
Referenced by processPendingTextureDeletes(), and queueTextureDelete().
|
mutableprotectedinherited |
poly draw lock
Definition at line 641 of file GUISUMOAbstractView.h.
|
protectedinherited |
The current popup-menu.
Definition at line 588 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), getPopup(), onKeyPress(), onKeyRelease(), onMouseMove(), GNEViewNet::openDeleteDialogAtCursor(), openObjectDialog(), GNEViewNet::openObjectDialogAtCursor(), openObjectDialogAtCursor(), openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), replacePopup(), and ~GUISUMOAbstractView().
The current popup-menu position.
Definition at line 594 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), getPopupPosition(), onMouseMove(), and openPopupDialog().
|
protectedinherited |
the semaphore when waiting for snapshots to finish
Definition at line 638 of file GUISUMOAbstractView.h.
Referenced by checkSnapshots(), and waitForSnapshots().
|
protectedinherited |
Snapshots.
Definition at line 632 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and waitForSnapshots().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 635 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and waitForSnapshots().
|
protectedinherited |
mutex for pending texture deletes
Definition at line 627 of file GUISUMOAbstractView.h.
Referenced by processPendingTextureDeletes(), and queueTextureDelete().
|
private |
whether game mode was set to 'tls'
Definition at line 160 of file GUIViewTraffic.h.
Referenced by GUIViewTraffic(), and onGamingClick().
|
private |
Definition at line 157 of file GUIViewTraffic.h.
Referenced by getTrackedID(), GUIViewTraffic(), startTrack(), and stopTrack().
|
protectedinherited |
visualization settings
Definition at line 600 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), GNEViewNet::buildViewToolBars(), GUIViewTraffic::buildViewToolBars(), GUIViewTraffic::centerTo(), displayLegends(), GNEViewNet::doPaintGL(), GUIViewTraffic::doPaintGL(), GNEViewNet::drawGLElements(), GNEViewNet::drawGrid(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), editVisualisationSettings(), filterInternalLanes(), getObjectsInBoundary(), getVisualisationSettings(), GNEViewNet::GNEViewNet(), GUISUMOAbstractView(), makeSnapshot(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditWalkingAreaShape(), GUIViewTraffic::onCmdShowReachability(), GNEViewNet::onCmdToggleDrawJunctionShape(), GNEViewNet::onCmdToggleShowConnections(), GNEViewNet::onCmdToggleShowGrid(), onConfigure(), onKeyPress(), paintGL(), paintGLGrid(), GNEViewNet::recalculateBoundaries(), GNEViewNet::redrawPathElementContours(), GNEViewNet::saveVisualizationSettings(), GNEViewNet::setColorScheme(), GUIViewTraffic::setColorScheme(), GNEViewNet::setSelectorFrameScale(), showViewschemeEditor(), snapToActiveGrid(), GNEViewNet::updateObjectsInPosition(), GNEViewNet::updateObjectsInShape(), and ~GUISUMOAbstractView().
|
protectedinherited |
Position of the cursor relative to the window.
Definition at line 609 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), getWindowCursorPosition(), GUISUMOAbstractView(), and setWindowCursorPosition().
|
protectedinherited |
Definition at line 609 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), getWindowCursorPosition(), GUISUMOAbstractView(), and setWindowCursorPosition().
|
staticprotectedinherited |
Definition at line 650 of file GUISUMOAbstractView.h.
Referenced by getGUIGlObjectsUnderCursor(), getGUIGlObjectsUnderSnappedCursor(), and getObjectsUnderCursor().