![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUISUMOAbstractView.h>
Data Structures | |
| struct | Decal |
| A decal (an image) that can be shown. More... | |
| struct | LayerObject |
| struct used for sorting objects by layer More... | |
Public Member Functions | |
| void | addDecals (const std::vector< Decal > &decals) |
| add decals | |
| virtual void | buildColorRainbow (const GUIVisualizationSettings &, GUIColorScheme &, int, GUIGlObjectType, const GUIVisualizationRainbowSettings &) |
| recalibrate color scheme according to the current value range | |
| virtual void | buildViewToolBars (GUIGlChildWindow *) |
| builds the view toolbars | |
| void | centerTo (const Boundary &bound) |
| centers to the chosen artifact | |
| virtual void | centerTo (const Position &pos, bool applyZoom, double zoomDist=20) |
| centers to the chosen position | |
| virtual void | centerTo (GUIGlID id, bool applyZoom, double zoomDist=20) |
| centers to the chosen artifact | |
| virtual void | changePedestrianNetworkColor (const GUIVisualizationSettings &) const |
| Change the color of the JuPedSim pedestrian network. | |
| void | clearDecals () |
| clear all decals | |
| virtual void | copyViewportTo (GUISUMOAbstractView *view) |
| copy the viewport to the given view | |
| void | destroyPopup () |
| destroys the popup | |
| virtual void | drawPedestrianNetwork (const GUIVisualizationSettings &) const |
| Draw (or not) the JuPedSim pedestrian network. | |
| GUIVisualizationSettings * | editVisualisationSettings () const |
| edit visualization settings (allow modify VisualizationSetings, use carefully) | |
| 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 | |
| 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. | |
| virtual std::vector< std::string > | getEdgeDataAttrs () const |
| return list of loaded edgeData attributes | |
| virtual std::vector< std::string > | getEdgeLaneParamKeys (bool) const |
| 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 | |
| virtual std::vector< std::string > | getMeanDataAttrs (const std::string &meanDataID) const |
| return list of available attributes for the given meanData id | |
| virtual std::vector< std::string > | getMeanDataIDs () const |
| return list of loaded edgeData ids (being computed in the current simulation) | |
| virtual std::vector< std::string > | getPOIParamKeys () const |
| return list of available vehicle 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 | |
| virtual GUIGlID | getTrackedID () const |
| get tracked id | |
| virtual std::vector< std::string > | getVehicleParamKeys (bool) const |
| 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 | |
| GUISUMOAbstractView (FXComposite *p, GUIMainWindow &app, GUIGlChildWindow *parent, const SUMORTree &grid, 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. | |
| virtual long | onCmdAddRerouter (FXObject *, FXSelector, void *) |
| virtual long | onCmdCloseEdge (FXObject *, FXSelector, void *) |
| virtual long | onCmdCloseLane (FXObject *, FXSelector, void *) |
| interaction with the simulation | |
| virtual long | onCmdShowReachability (FXObject *, FXSelector, void *) |
| highlight edges according to reachability | |
| virtual long | onConfigure (FXObject *, FXSelector, void *) |
| mouse functions | |
| virtual long | onDoubleClicked (FXObject *, FXSelector, void *) |
| virtual void | onGamingClick (Position) |
| on gaming click | |
| virtual void | onGamingRightClick (Position) |
| 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 | |
| virtual const std::vector< SUMOTime > | retrieveBreakpoints () const |
| retrieve breakpoints if provided by the application | |
| 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. | |
| virtual bool | setColorScheme (const std::string &) |
| 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. | |
| virtual void | startTrack (int) |
| star track | |
| virtual void | stopTrack () |
| stop track | |
| 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 | ~GUISUMOAbstractView () |
| 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. | |
| virtual void | saveFrame (const std::string &destFile, FXColor *buf) |
| Adds a frame to a video snapshot which will be initialized if necessary. | |
| virtual void | endSnapshot () |
| Ends a video snapshot. | |
| virtual void | checkSnapshots () |
| Checks whether it is time for a snapshot. | |
| void | waitForSnapshots (const SUMOTime snapshotTime) |
| virtual SUMOTime | getCurrentTimeStep () const |
| get the current simulation time | |
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. | |
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 | |
| virtual int | doPaintGL (int, const Boundary &) |
| 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) | |
| virtual GUILane * | getLaneUnderCursor () |
| 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 | |
| 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 |
This class is meant to be pure virtual later; It shall be the main class to inherit views of the simulation (micro- or macroscopic ones) from it.
Definition at line 83 of file GUISUMOAbstractView.h.
| GUISUMOAbstractView::GUISUMOAbstractView | ( | FXComposite * | p, |
| GUIMainWindow & | app, | ||
| GUIGlChildWindow * | parent, | ||
| const SUMORTree & | grid, | ||
| FXGLVisual * | glVis, | ||
| FXGLCanvas * | share | ||
| ) |
constructor
Definition at line 136 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gaming, GUICompleteSchemeStorage::getDecals(), GUICompleteSchemeStorage::getDefault(), gSchemeStorage, and GUICompleteSchemeStorage::setViewport().
|
virtual |
destructor
Definition at line 156 of file GUISUMOAbstractView.cpp.
References gSchemeStorage, makeCurrent(), myAdditionallyDrawn, myChanger, myDecals, myGUIDialogEditViewport, myGUIDialogViewSettings, myPopup, myVisualizationSettings, GUIVisualizationSettings::name, processPendingTextureDeletes(), queueTextureDelete(), and GUICompleteSchemeStorage::setDefault().
| bool GUISUMOAbstractView::addAdditionalGLVisualisation | ( | GUIGlObject *const | which | ) |
Adds an object to call its additional visualisation method.
| [in] | which | The object to add |
Definition at line 1941 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), and GUIVehicle::drawOutsideNetwork().
| void GUISUMOAbstractView::addDecals | ( | const std::vector< Decal > & | decals | ) |
add decals
Definition at line 246 of file GUISUMOAbstractView.cpp.
References myDecals, and myDecalsLockMutex.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
| void GUISUMOAbstractView::addSnapshot | ( | SUMOTime | time, |
| const std::string & | file, | ||
| const int | w = -1, |
||
| const int | h = -1 |
||
| ) |
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 1395 of file GUISUMOAbstractView.cpp.
References mySnapshots, and mySnapshotsMutex.
Referenced by GUIViewTraffic::checkSnapshots(), and GUISettingsHandler::setSnapshots().
|
protected |
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 1979 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIVisualizationSettings::angle, DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), 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().
|
inlinevirtual |
recalibrate color scheme according to the current value range
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 264 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
|
protected |
helper function for buildColorRainbow
Definition at line 2031 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 GUIViewTraffic::buildColorRainbow(), and GNEViewNet::buildColorRainbow().
|
inlinevirtual |
builds the view toolbars
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 97 of file GUISUMOAbstractView.h.
Referenced by GUISUMOViewParent::init().
| void GUISUMOAbstractView::centerTo | ( | const Boundary & | bound | ) |
centers to the chosen artifact
Definition at line 1006 of file GUISUMOAbstractView.cpp.
References myChanger, and GUIPerspectiveChanger::setViewport().
|
virtual |
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 998 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), myChanger, and updatePositionInformationLabel().
|
virtual |
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 in GUIViewTraffic.
Definition at line 978 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, Position::INVALID, myChanger, GUIPerspectiveChanger::setViewport(), GUIGlObjectStorage::unblockObject(), and updatePositionInformationLabel().
Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNEVehicleFrame::buildVehicleOverRoute(), GUIViewTraffic::centerTo(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), paintGL(), and GUIGlChildWindow::setView().
|
inlinevirtual |
Change the color of the JuPedSim pedestrian network.
| s | The visualization settings |
Reimplemented in GUIViewTraffic.
Definition at line 482 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
|
protected |
check whether we can read image data or position with gdal
Definition at line 1787 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().
|
virtual |
Checks whether it is time for a snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 1561 of file GUISUMOAbstractView.cpp.
References DELTA_T, getCurrentTimeStep(), joinToString(), makeSnapshot(), mySnapshotCondition, mySnapshots, mySnapshotsMutex, toString(), and WRITE_WARNING.
Referenced by GUIViewTraffic::checkSnapshots(), onConfigure(), and GUISUMOViewParent::onSimStep().
| void GUISUMOAbstractView::clearDecals | ( | ) |
clear all decals
Definition at line 1765 of file GUISUMOAbstractView.cpp.
References myDecals, myDecalsLockMutex, and queueTextureDelete().
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), and GUIDialog_ViewSettings::onCmdClearDecals().
|
virtual |
copy the viewport to the given view
Definition at line 1657 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), myChanger, and setViewportFromToRot().
Referenced by GUIApplicationWindow::openNewView().
| void GUISUMOAbstractView::destroyPopup | ( | ) |
destroys the popup
Definition at line 1084 of file GUISUMOAbstractView.cpp.
References myCurrentObjectsDialog, myPopup, myPopupPosition, GUIGLObjectPopupMenu::removePopupFromObject(), and Position::set().
Referenced by GNEApplicationWindow::clearUndoList(), GNENet::computeAndUpdate(), GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdConvertRoundabout(), GUICursorDialog::onCmdDeleteElement(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditLaneShape(), GNEViewNet::onCmdEditWalkingAreaShape(), GNEViewNet::onCmdReplaceJunction(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndPoints(), GNEViewNet::onCmdResetJunctionShape(), GUICursorDialog::onCmdSelectElement(), GNEViewNet::onCmdSelectRoundabout(), GUICursorDialog::onCmdSetFrontElement(), GNEViewNet::onCmdSmoothConnectionShape(), GNEViewNet::onCmdSplitJunction(), GNEViewNet::onCmdSplitJunctionReconnect(), GNEInternalLane::onDefault(), onLeftBtnPress(), onLeftBtnRelease(), onMiddleBtnPress(), onMiddleBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openSelectDialogAtCursor(), GNEViewNet::processClick(), and GUIBaseVehicle::~GUIBaseVehicle().
|
protected |
Draws a legend for the given scheme.
Definition at line 763 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(), std::swap(), toString(), and RGBColor::WHITE.
Referenced by displayLegends().
|
protected |
Draws a line with ticks, and the length information.
Definition at line 671 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, m2p(), GLHelper::popMatrix(), and GLHelper::pushMatrix().
Referenced by displayLegends().
|
protected |
Draws the configured legends.
Definition at line 737 of file GUISUMOAbstractView.cpp.
References displayColorLegend(), displayLegend(), GUIVisualizationSettings::edgeData, GUIVisualizationSettings::edgeParam, GUIVisualizationSettings::getLaneEdgeScheme(), GUIPropertySchemeStorage< T >::getScheme(), GUIVisualizationSettings::laneParam, myVisualizationSettings, GUIVisualizationSettings::SCHEME_NAME_EDGE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGEDATA_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_LANE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_PARAM_NUMERICAL, GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::showVehicleColorLegend, GUIVisualizationSettings::vehicleColorer, and GUIVisualizationSettings::vehicleParam.
Referenced by makeSnapshot(), and paintGL().
|
protectedvirtual |
doInit
Reimplemented in GNEViewNet.
Definition at line 300 of file GUISUMOAbstractView.cpp.
Referenced by onConfigure().
|
protectedvirtual |
paint GL
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 294 of file GUISUMOAbstractView.cpp.
Referenced by getObjectsInBoundary(), makeSnapshot(), and paintGL().
|
protected |
Draws the stored decals.
Definition at line 1867 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 GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), and makeSnapshot().
|
protected |
Draws frames-per-second indicator.
Definition at line 937 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().
|
inlinevirtual |
Draw (or not) the JuPedSim pedestrian network.
| s | The visualization settings |
Reimplemented in GUIViewTraffic.
Definition at line 478 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
| GUIVisualizationSettings * GUISUMOAbstractView::editVisualisationSettings | ( | ) | const |
edit visualization settings (allow modify VisualizationSetings, use carefully)
Definition at line 1678 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
Referenced by GUILane::getParameterWindow(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), and GUIApplicationWindow::onCmdToggleSecondaryShape().
|
inlinevirtual |
Ends a video snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 230 of file GUISUMOAbstractView.h.
Referenced by GUISUMOViewParent::onCmdMakeSnapshot().
| std::vector< GUIGlObject * > GUISUMOAbstractView::filterContextObjects | ( | const std::vector< GUIGlObject * > & | objects | ) |
filter out duplicate and forbidden objects
Definition at line 1284 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_PRIORITY.
Referenced by openObjectDialogAtCursor().
|
protected |
filter internal lanes in Objects under cursor
Definition at line 589 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::drawJunctionShape, GLO_LANE, and myVisualizationSettings.
| GUIPerspectiveChanger & GUISUMOAbstractView::getChanger | ( | ) | const |
get changer
Definition at line 192 of file GUISUMOAbstractView.cpp.
References myChanger.
Referenced by GUISettingsHandler::applyViewport(), GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIApplicationWindow::onCmdOpenInNetedit(), GNEApplicationWindow::onCmdOpenSUMOGUI(), GUIDialog_EditViewport::setValues(), and GUIDialog_EditViewport::setValues().
| MFXComboBoxIcon * GUISUMOAbstractView::getColoringSchemesCombo | ( | ) |
get coloring schemes combo
Definition at line 1781 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), and myGlChildWindowParent.
Referenced by GUISettingsHandler::addSettings(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdDeleteSetting(), and GUIDialog_ViewSettings::onCmdSaveSetting().
|
virtual |
get the current simulation time
Reimplemented in GUIViewTraffic.
Definition at line 1603 of file GUISUMOAbstractView.cpp.
Referenced by checkSnapshots().
| std::vector< GUISUMOAbstractView::Decal > & GUISUMOAbstractView::getDecals | ( | ) |
The list of decals to show.
Definition at line 1733 of file GUISUMOAbstractView.cpp.
References myDecals.
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), MFXDecalsTable::fillTable(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), MFXDecalsTable::onCmdAddRow(), MFXDecalsTable::onCmdEditRowCheckBox(), MFXDecalsTable::onCmdEditRowSpinner(), MFXDecalsTable::onCmdEditRowString(), MFXDecalsTable::onCmdOpenDecal(), MFXDecalsTable::onCmdRemoveRow(), MFXDecalsTable::onUpdAddRow(), and GUIDialog_ViewSettings::saveDecals().
| FXMutex & GUISUMOAbstractView::getDecalsLockMutex | ( | ) |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 1739 of file GUISUMOAbstractView.cpp.
References myDecalsLockMutex.
Referenced by GUIDialog_ViewSettings::loadDecals(), and GUIDialog_ViewSettings::loadSettings().
| double GUISUMOAbstractView::getDelay | ( | ) | const |
Returns the delay of the parent application.
Definition at line 2013 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::getDelay(), and myApp.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
|
inlinevirtual |
return list of loaded edgeData attributes
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 269 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
inlinevirtual |
return list of available edge parameters
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 290 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
| double GUISUMOAbstractView::getFPS | ( | ) | const |
retrieve FPS
Definition at line 925 of file GUISUMOAbstractView.cpp.
References MAX2(), and myFrameDrawTime.
Referenced by drawFPS(), and GUINet::getParameterWindow().
| double GUISUMOAbstractView::getGridHeight | ( | ) | const |
get grid height
Definition at line 1702 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), and myGrid.
Referenced by checkGDALImage().
| double GUISUMOAbstractView::getGridWidth | ( | ) | const |
get grid width
Definition at line 1696 of file GUISUMOAbstractView.cpp.
References Boundary::getWidth(), and myGrid.
Referenced by checkGDALImage().
| GUIGlChildWindow * GUISUMOAbstractView::getGUIGlChildWindow | ( | ) |
get GUIGlChildWindow
Definition at line 931 of file GUISUMOAbstractView.cpp.
References myGlChildWindowParent.
Referenced by MFXDecalsTable::Column::Column().
|
protected |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT
Definition at line 519 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by getGUIGlObjectsUnderCursor(), getGUIGlObjectsUnderSnappedCursor(), and GUIViewTraffic::onGamingClick().
|
protected |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)
Definition at line 430 of file GUISUMOAbstractView.cpp.
References getGUIGlObjectsAtPosition(), getPositionInformation(), and SENSITIVITY.
Referenced by openObjectDialogAtCursor().
|
protected |
returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects)
Definition at line 436 of file GUISUMOAbstractView.cpp.
References getGUIGlObjectsAtPosition(), getPositionInformation(), SENSITIVITY, and snapToActiveGrid().
|
protectedvirtual |
returns the GUILane at cursor position (implementation depends on view)
Reimplemented in GUIViewTraffic.
Definition at line 405 of file GUISUMOAbstractView.cpp.
| GUIMainWindow * GUISUMOAbstractView::getMainWindow | ( | ) | const |
get main window
Definition at line 1013 of file GUISUMOAbstractView.cpp.
References myApp.
Referenced by GUICursorDialog::buildDialogElements(), and GUICursorDialog::onCmdOpenPropertiesPopUp().
|
inlinevirtual |
return list of available attributes for the given meanData id
Reimplemented in GUIViewTraffic.
Definition at line 279 of file GUISUMOAbstractView.h.
References UNUSED_PARAMETER.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
inlinevirtual |
return list of loaded edgeData ids (being computed in the current simulation)
Reimplemented in GUIViewTraffic.
Definition at line 274 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
protected |
returns the id of the object at position using GL_SELECT
Definition at line 442 of file GUISUMOAbstractView.cpp.
References Boundary::add(), Position::distanceTo2D(), GUIGlObject::getCenter(), GUIGlObject::getClickPriority(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by getObjectUnderCursor().
|
protected |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 484 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_NETWORK, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by getObjectsUnderCursor().
returns the ids of all objects in the given boundary
Definition at line 549 of file GUISUMOAbstractView.cpp.
References applyGLTransform(), doPaintGL(), GUIVisualizationSettings::drawForRectangleSelection, GUIPerspectiveChanger::getViewport(), m2p(), myApp, myChanger, myVisualizationSettings, GUIVisualizationSettings::scale, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), SUMO_const_laneWidth, and toString().
Referenced by getGUIGlObjectsAtPosition(), getObjectAtPosition(), getObjectsAtPosition(), GNEViewNet::onCmdAttachPOI(), and GNEViewNet::recalculateBoundaries().
|
protected |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)
Definition at line 423 of file GUISUMOAbstractView.cpp.
References getObjectsAtPosition(), getPositionInformation(), and SENSITIVITY.
|
protected |
returns the id of the front object under the cursor using GL_SELECT
Definition at line 417 of file GUISUMOAbstractView.cpp.
References getObjectAtPosition(), and getPositionInformation().
Referenced by GUIViewTraffic::getLaneUnderCursor(), getToolTipID(), and onLeftBtnPress().
|
inlinevirtual |
return list of available vehicle parameters
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 300 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::updatePOIParams().
| GUIGLObjectPopupMenu * GUISUMOAbstractView::getPopup | ( | ) | const |
ge the current popup-menu
Definition at line 1072 of file GUISUMOAbstractView.cpp.
References myPopup.
Referenced by GNEAdditional::checkDrawRelatedContour(), GNEInductionLoopDetector::checkDrawRelatedContour(), GNEGenericData::checkDrawRelatedContour(), GNEDemandElement::checkDrawRelatedContour(), GNEVehicle::checkDrawRelatedContour(), GNEConnection::checkDrawRelatedContour(), GNECrossing::checkDrawRelatedContour(), GNEEdge::checkDrawRelatedContour(), GNEInternalLane::checkDrawRelatedContour(), GNEJunction::checkDrawRelatedContour(), GNELane::checkDrawRelatedContour(), and GNEWalkingArea::checkDrawRelatedContour().
| const Position & GUISUMOAbstractView::getPopupPosition | ( | ) | const |
get position of current popup
Definition at line 1078 of file GUISUMOAbstractView.cpp.
References myPopupPosition.
Referenced by GNEViewNet::onCmdDeleteGeometryPoint(), GNEViewNet::onCmdEditEdgeEndpoint(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdSetFirstGeometryPoint(), GNEViewNet::onCmdSplitEdge(), and GNEViewNet::onCmdSplitEdgeBidi().
|
virtual |
Returns the cursor's x/y position within the network.
Definition at line 206 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, myWindowCursorPositionY, and screenPos2NetPos().
Referenced by GNEAdditionalFrame::addAdditional(), GNEConsecutiveSelector::addLane(), GNEPlanCreator::addSingleEdge(), GNEStopFrame::addStop(), GNEWireFrame::buildWireOverView(), GNEMoveElement::calculateNewLaneChange(), GNEViewNet::doPaintGL(), GNEAccess::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GNENetworkElement::getGeometryPointUnderCursorShapeEdited(), getGUIGlObjectsUnderCursor(), getGUIGlObjectsUnderSnappedCursor(), GNEMoveElementEdge::getMoveOperation(), GNEMoveElementPlan::getMoveOperation(), GNEMoveElementShape::getMoveOperation(), GNEMoveElementVehicle::getMoveOperation(), GNEMoveElementViewResizable::getMoveOperation(), getObjectsUnderCursor(), getObjectUnderCursor(), GUIEdge::getParameterWindow(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNELane::getPopUpMenu(), GNEStopFrame::getStopParameter(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEViewNet::onCmdSetCustomGeometryPoint(), GUIViewTraffic::onGamingClick(), GUIDanielPerspectiveChanger::onKeyPress(), onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMiddleBtnPress(), onMouseMove(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), GNEShapeFrame::processClickPOILanes(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEDeleteFrame::removeGeometryPoint(), and updatePositionInformationLabel().
|
inlinevirtual |
return list of loaded edgeRelation and tazRelation attributes
Reimplemented in GNEViewNet.
Definition at line 285 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
protectedvirtual |
returns the id of object under cursor to show their tooltip
Reimplemented in GNEViewNet.
Definition at line 411 of file GUISUMOAbstractView.cpp.
References getObjectUnderCursor().
Referenced by paintGL().
|
virtual |
get tracked id
Reimplemented in GUIViewTraffic.
Definition at line 1718 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_ID.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), and paintGL().
|
inlinevirtual |
return list of available vehicle parameters
Reimplemented in GUIViewTraffic.
Definition at line 295 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::updateVehicleParams().
| GUIDialog_EditViewport * GUISUMOAbstractView::getViewportEditor | ( | ) |
get the viewport and create it on first access
Definition at line 1622 of file GUISUMOAbstractView.cpp.
References myGUIDialogEditViewport, TLC, and updateViewportValues().
Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and showViewportEditor().
| Boundary GUISUMOAbstractView::getVisibleBoundary | ( | ) | const |
get visible boundary
Definition at line 305 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), and myChanger.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), and GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary().
| const GUIVisualizationSettings & GUISUMOAbstractView::getVisualisationSettings | ( | ) | const |
get visualization settings (read only)
Definition at line 1672 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
Referenced by GNEConnectorFrame::buildConnection(), GNEProhibitionFrame::buildProhibition(), GNEJunction::checkDrawToContour(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEPersonTrip::getColor(), GNERide::getColor(), GNEStop::getColor(), GNEStopPlan::getColor(), GNETranship::getColor(), GNETransport::getColor(), GNEWalk::getColor(), GNEEdge::getGeometryPointRadius(), GNENetworkElement::getGeometryPointUnderCursorShapeEdited(), GNEMoveElementShape::getMoveOperation(), GNEMoveElementViewResizable::getMoveOperation(), GUILane::getPopUpMenu(), GNENetworkElement::getVertexIndex(), GNEPoly::getVertexIndex(), GNETAZ::getVertexIndex(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), GUIApplicationWindow::onCmdToggleSecondaryShape(), GNECreateEdgeFrame::processClick(), GNEMoveElementConnection::removeGeometryPoint(), GNEMoveElementCrossing::removeGeometryPoint(), GNEMoveElementJunction::removeGeometryPoint(), GNEMoveElementLane::removeGeometryPoint(), GNEMoveElementShape::removeGeometryPoint(), GNEJunction::setAttribute(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), and GNEStopPlan::updateGeometry().
| Position GUISUMOAbstractView::getWindowCursorPosition | ( | ) | const |
return windows cursor position
Definition at line 1019 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, and myWindowCursorPositionY.
Referenced by updatePositionInformationLabel().
|
virtual |
return whether this is a 3D view
Definition at line 311 of file GUISUMOAbstractView.cpp.
Referenced by GUISettingsHandler::applyViewport(), GUIDialog_EditViewport::GUIDialog_EditViewport(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_ViewSettings::onCmdExportSetting(), GUIDialog_EditViewport::setValues(), and GUIDialog_EditViewport::writeXML().
| bool GUISUMOAbstractView::isAdditionalGLVisualisationEnabled | ( | GUIGlObject *const | which | ) | const |
Check if an object is added in the additional GL visualitation.
| [in] | which | The object to check |
Definition at line 1969 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
| bool GUISUMOAbstractView::isInEditMode | ( | ) |
returns true, if the edit button was pressed
Definition at line 186 of file GUISUMOAbstractView.cpp.
References myInEditMode.
| double GUISUMOAbstractView::m2p | ( | double | meter | ) | const |
meter-to-pixels conversion method
Definition at line 960 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and myChanger.
Referenced by displayLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::drawGLElements(), GNELane::drawLane(), getObjectsInBoundary(), and makeSnapshot().
| FXbool GUISUMOAbstractView::makeCurrent | ( | ) |
A reimplementation due to some internal reasons.
Definition at line 1032 of file GUISUMOAbstractView.cpp.
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), GUIViewTraffic::getLaneUnderCursor(), makeSnapshot(), onConfigure(), GUIViewTraffic::onGamingClick(), onLeftBtnPress(), onPaint(), openObjectDialogAtCursor(), GNEViewNet::recalculateBoundaries(), and ~GUISUMOAbstractView().
| std::string GUISUMOAbstractView::makeSnapshot | ( | const std::string & | destFile, |
| const int | w = -1, |
||
| const int | h = -1 |
||
| ) |
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 1405 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), displayLegends(), GUIVisualizationSettings::dither, doPaintGL(), drawDecals(), FILE, GUIPerspectiveChanger::getViewport(), RGBColor::green(), m2p(), makeCurrent(), myChanger, myGrid, myVisualizationSettings, paintGLGrid(), GLHelper::pushMatrix(), RGBColor::red(), saveFrame(), MFXImageHelper::saveImage(), GUIVisualizationSettings::scale, SUMORTree::Search(), GLHelper::setGL2PS(), GUIVisualizationSettings::showGrid, MFXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by checkSnapshots(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().
|
virtual |
Reimplemented in GUIViewTraffic.
Definition at line 387 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtual |
Reimplemented in GUIViewTraffic.
Definition at line 381 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtual |
interaction with the simulation
Reimplemented in GUIViewTraffic.
Definition at line 375 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtual |
highlight edges according to reachability
Reimplemented in GUIViewTraffic.
Definition at line 393 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtual |
mouse functions
Definition at line 1039 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), checkSnapshots(), doInit(), RGBColor::green(), makeCurrent(), myAmInitialised, myVisualizationSettings, and RGBColor::red().
Referenced by FXDEFMAP().
|
virtual |
Reimplemented in GUIViewTraffic.
Definition at line 1229 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtual |
on gaming click
Reimplemented in GUIViewTraffic.
Definition at line 1724 of file GUISUMOAbstractView.cpp.
Referenced by onLeftBtnRelease().
|
virtual |
Reimplemented in GUIViewTraffic.
Definition at line 1728 of file GUISUMOAbstractView.cpp.
Referenced by onRightBtnRelease().
|
virtual |
keyboard functions
Reimplemented in GNEViewNet.
Definition at line 1356 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, myChanger, myPopup, myVisualizationSettings, and GUIPerspectiveChanger::onKeyPress().
Referenced by FXDEFMAP(), GUISUMOViewParent::onKeyPress(), GNEViewParent::onKeyPress(), and GNEViewNet::onKeyPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1382 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, and GUIPerspectiveChanger::onKeyRelease().
Referenced by FXDEFMAP(), GUISUMOViewParent::onKeyRelease(), GNEViewParent::onKeyRelease(), and GNEViewNet::onKeyRelease().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1112 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUIGlObjectStorage::getObjectBlocking(), getObjectUnderCursor(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_PERSON, GLO_VEHICLE, gSelected, GUIMainWindow::isGaming(), makeCurrent(), myApp, myChanger, GUIPerspectiveChanger::onLeftBtnPress(), startTrack(), and GUISelectedStorage::toggleSelection().
Referenced by FXDEFMAP().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1158 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), GUIMainWindow::isGaming(), myApp, myChanger, onGamingClick(), and GUIPerspectiveChanger::onLeftBtnRelease().
Referenced by FXDEFMAP(), and GNEViewNet::onLeftBtnRelease().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1170 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUICursorSubSys::getCursor(), GUIMainWindow::isGaming(), MOVEVIEW, myApp, myChanger, myPanning, and GUIPerspectiveChanger::onMiddleBtnPress().
Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1187 of file GUISUMOAbstractView.cpp.
References DEFAULT, destroyPopup(), GUICursorSubSys::getCursor(), GUIMainWindow::isGaming(), myApp, myChanger, myPanning, and GUIPerspectiveChanger::onMiddleBtnRelease().
Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnRelease().
|
virtual |
Definition at line 1279 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1251 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIDialog_EditViewport::haveGrabbed(), Position::INVALID, MID_CURSORDIALOG_FRONT, myChanger, myGUIDialogEditViewport, myPopup, myPopupPosition, GUIPerspectiveChanger::onMouseMove(), GUIDialog_EditViewport::setValues(), and updatePositionInformationLabel().
Referenced by FXDEFMAP(), GNEViewNet::onMouseMove(), and onRightBtnRelease().
|
virtual |
Definition at line 1235 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIMainWindow::isGaming(), myApp, myChanger, myGUIDialogEditViewport, GUIPerspectiveChanger::onMouseWheel(), GUIDialog_EditViewport::setValues(), and updatePositionInformationLabel().
Referenced by FXDEFMAP().
|
virtual |
Definition at line 1057 of file GUISUMOAbstractView.cpp.
References makeCurrent(), MID_RUNTESTS, myAmInitialised, myApp, and paintGL().
Referenced by FXDEFMAP(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1203 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUIMainWindow::isGaming(), myApp, myChanger, and GUIPerspectiveChanger::onRightBtnPress().
Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1214 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), GUIMainWindow::isGaming(), myApp, myChanger, onGamingRightClick(), onMouseMove(), GUIPerspectiveChanger::onRightBtnRelease(), and openObjectDialogAtCursor().
Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnRelease().
|
virtual |
hook to react on change in visualization settings
Definition at line 399 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
| void GUISUMOAbstractView::openObjectDialog | ( | const std::vector< GUIGlObject * > & | objects, |
| const bool | filter = true |
||
| ) |
open object dialog for the given object
Definition at line 1325 of file GUISUMOAbstractView.cpp.
References myApp, myCurrentObjectsDialog, myPopup, openPopupDialog(), and GUIGLObjectPopupMenu::PROPERTIES.
Referenced by GNEViewNet::openObjectDialogAtCursor().
|
virtual |
open object dialog at the cursor position
Reimplemented in GNEViewNet.
Definition at line 1297 of file GUISUMOAbstractView.cpp.
References filterContextObjects(), getGUIGlObjectsUnderCursor(), GUIGlObjectStorage::getNetObject(), GUIGlObject::getPopUpMenu(), GUIGlObjectStorage::gIDStorage, makeCurrent(), myAmInitialised, myApp, myPopup, openPopupDialog(), and GUIGLObjectPopupMenu::PROPERTIES.
Referenced by onRightBtnRelease().
|
protected |
open popup dialog
Definition at line 1913 of file GUISUMOAbstractView.cpp.
References getPositionInformation(), MIN2(), myApp, myChanger, myPopup, myPopupPosition, and GUIPerspectiveChanger::onRightBtnRelease().
Referenced by GNEViewNet::openDeleteDialogAtCursor(), openObjectDialog(), openObjectDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), and GNEViewNet::openSelectDialogAtCursor().
| double GUISUMOAbstractView::p2m | ( | double | pixel | ) | const |
pixels-to-meters conversion method
Definition at line 966 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and myChanger.
Referenced by GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), drawDecals(), and GUIDanielPerspectiveChanger::move().
|
protected |
FOX needs this.
performs the painting of the simulation
Definition at line 321 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), centerTo(), GLHelper::checkCounterMatrix(), GLHelper::checkCounterName(), displayLegends(), GUIVisualizationSettings::dither, doPaintGL(), drawFPS(), GUIVisualizationSettings::fps, SysUtils::getCurrentMillis(), GUIGlChildWindow::getGUIMainWindowParent(), GUIMainWindow::getStaticTooltipView(), getToolTipID(), getTrackedID(), RGBColor::green(), MFXStaticToolTip::hideStaticToolTip(), GUIGlObject::INVALID_ID, MFXStaticToolTip::isStaticToolTipEnabled(), myFrameDrawTime, myGlChildWindowParent, myVisualizationSettings, processPendingTextureDeletes(), RGBColor::red(), GLHelper::resetMatrixCounter(), GLHelper::resetVertexCounter(), and showToolTipFor().
Referenced by onPaint().
|
protected |
paints a grid
Definition at line 629 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::addSize, GUIVisualizationSizeSettings::getExaggeration(), GUIPerspectiveChanger::getViewport(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, myChanger, myVisualizationSettings, GUIVisualizationSettings::scale, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::drawGrid(), and makeSnapshot().
| void GUISUMOAbstractView::processPendingTextureDeletes | ( | ) |
process pending texture deletions
Definition at line 1752 of file GUISUMOAbstractView.cpp.
References myPendingTextureDeletes, and myTextureDeleteMutex.
Referenced by GUIApplicationWindow::closeAllWindows(), GNEApplicationWindow::closeAllWindows(), paintGL(), and ~GUISUMOAbstractView().
| void GUISUMOAbstractView::queueTextureDelete | ( | unsigned int | textureId | ) |
queue a texture for deletion
Definition at line 1745 of file GUISUMOAbstractView.cpp.
References myPendingTextureDeletes, and myTextureDeleteMutex.
Referenced by clearDecals(), and ~GUISUMOAbstractView().
|
inlinevirtual |
recalculate boundaries
Reimplemented in GNEViewNet.
Definition at line 94 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
|
virtual |
recenters the view
Definition at line 972 of file GUISUMOAbstractView.cpp.
References myChanger, myGrid, and GUIPerspectiveChanger::setViewport().
Referenced by GUISettingsHandler::applyViewport(), GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().
| void GUISUMOAbstractView::remove | ( | GUIDialog_EditViewport * | ) |
remove viewport
Definition at line 1684 of file GUISUMOAbstractView.cpp.
References myGUIDialogEditViewport.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
| void GUISUMOAbstractView::remove | ( | GUIDialog_ViewSettings * | ) |
remove view settings
Definition at line 1690 of file GUISUMOAbstractView.cpp.
References myGUIDialogViewSettings.
| bool GUISUMOAbstractView::removeAdditionalGLVisualisation | ( | GUIGlObject *const | which | ) |
Removes an object from the list of objects that show additional things.
| [in] | which | The object to remove |
Definition at line 1953 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
| void GUISUMOAbstractView::replacePopup | ( | GUIGLObjectPopupMenu * | popUp | ) |
replace PopUp
Definition at line 1096 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, GUIPerspectiveChanger::onRightBtnRelease(), and GUIGLObjectPopupMenu::removePopupFromObject().
Referenced by GUICursorDialog::onCmdOpenPropertiesPopUp().
|
inlinevirtual |
retrieve breakpoints if provided by the application
Reimplemented in GUIViewTraffic.
Definition at line 466 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
|
virtual |
Adds a frame to a video snapshot which will be initialized if necessary.
Reimplemented in GUIViewTraffic.
Definition at line 1554 of file GUISUMOAbstractView.cpp.
References UNUSED_PARAMETER.
Referenced by makeSnapshot().
| Position GUISUMOAbstractView::screenPos2NetPos | ( | int | x, |
| int | y | ||
| ) | const |
Translate screen position to network position.
Definition at line 231 of file GUISUMOAbstractView.cpp.
References DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), myChanger, Position::rotateAround2D(), Boundary::xmin(), and Boundary::ymin().
Referenced by drawDecals(), and getPositionInformation().
| void GUISUMOAbstractView::setBreakpoints | ( | const std::vector< SUMOTime > & | breakpoints | ) |
Sets the breakpoints of the parent application.
Definition at line 2025 of file GUISUMOAbstractView.cpp.
References myApp, and GUIMainWindow::setBreakpoints().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtual |
set color scheme
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 1666 of file GUISUMOAbstractView.cpp.
Referenced by GUISettingsHandler::addSettings(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIGlChildWindow::onCmdChangeColorScheme(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
| void GUISUMOAbstractView::setDelay | ( | double | delay | ) |
Sets the delay of the parent application.
Definition at line 2019 of file GUISUMOAbstractView.cpp.
References myApp, and GUIMainWindow::setDelay().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtual |
applies the given viewport settings
Definition at line 1649 of file GUISUMOAbstractView.cpp.
References myChanger, GUIPerspectiveChanger::setRotation(), GUIPerspectiveChanger::setViewportFrom(), Position::x(), Position::y(), and Position::z().
Referenced by GUISettingsHandler::applyViewport(), copyViewportTo(), GNEApplicationWindow::handleEvent_FileLoaded(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIDialog_EditViewport::onCmdCancel(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdOk(), and GUICompleteSchemeStorage::setViewport().
| void GUISUMOAbstractView::setWindowCursorPosition | ( | FXint | x, |
| FXint | y | ||
| ) |
Returns the gl-id of the object under the given coordinates.
Definition at line 1025 of file GUISUMOAbstractView.cpp.
References myMouseHotspotX, myMouseHotspotY, myWindowCursorPositionX, and myWindowCursorPositionY.
Referenced by GUIDanielPerspectiveChanger::onMouseMove().
|
protected |
invokes the tooltip for the given object
Definition at line 614 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getGUIMainWindowParent(), GUIGlObjectStorage::getObjectBlocking(), GUIMainWindow::getStaticTooltipView(), GUIGlObjectStorage::gIDStorage, MFXStaticToolTip::hideStaticToolTip(), GUIGlObject::INVALID_ID, myGlChildWindowParent, and MFXStaticToolTip::showStaticToolTip().
Referenced by paintGL().
|
virtual |
show viewport editor
Definition at line 1640 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), getViewportEditor(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), Position::INVALID, myChanger, myGUIDialogEditViewport, GUIDialog_EditViewport::setOldValues(), and GUIDialog_EditViewport::show().
Referenced by GNEApplicationWindow::onCmdEditViewport(), and GUIGlChildWindow::onCmdEditViewport().
| void GUISUMOAbstractView::showViewschemeEditor | ( | ) |
show viewsscheme editor
Definition at line 1609 of file GUISUMOAbstractView.cpp.
References myGUIDialogViewSettings, myVisualizationSettings, GUIDialog_ViewSettings::setCurrent(), and GUIDialog_ViewSettings::show().
Referenced by GNEApplicationWindow::onCmdEditViewScheme(), and GUIGlChildWindow::onCmdEditViewScheme().
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 212 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, myVisualizationSettings, Position::setx(), Position::sety(), Position::setz(), GUIVisualizationSettings::showGrid, Position::x(), Position::y(), and Position::z().
Referenced by GNEConsecutiveSelector::addLane(), GNEWireFrame::buildWireOverView(), GNEMoveElement::calculateLaneOffset(), GNEMoveElement::commitMove(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GNEEdge::editEndpoint(), getGUIGlObjectsUnderSnappedCursor(), GNEEdge::getSplitPos(), GNEStopFrame::getStopParameter(), GNEPoly::getVertexIndex(), GNETAZ::getVertexIndex(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEMoveElement::moveElement(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClickPOILanes(), and GNEViewNet::processLeftButtonPressNetwork().
|
virtual |
star track
Reimplemented in GUIViewTraffic.
Definition at line 1708 of file GUISUMOAbstractView.cpp.
Referenced by GUIDialog_ChooserAbstract::onCmdTrack(), and onLeftBtnPress().
|
virtual |
stop track
Reimplemented in GUIViewTraffic.
Definition at line 1713 of file GUISUMOAbstractView.cpp.
Referenced by GUIDialog_ChooserAbstract::onCmdCenter(), and GUISUMOViewParent::onUpdSpeedFactor().
|
protectedvirtual |
update position information labels
Definition at line 269 of file GUISUMOAbstractView.cpp.
References GeoConvHelper::cartesian2geo(), GUIMainWindow::getCartesianLabel(), GeoConvHelper::getFinal(), GUIMainWindow::getGeoLabel(), OptionsCont::getOptions(), getPositionInformation(), GUIMainWindow::getTestFrame(), GUIMainWindow::getTestLabel(), getWindowCursorPosition(), gPrecisionGeo, myApp, TL, toString(), Position::x(), and Position::y().
Referenced by centerTo(), centerTo(), onMouseMove(), and onMouseWheel().
| void GUISUMOAbstractView::updateToolTip | ( | ) |
A method that updates the tooltip.
Definition at line 198 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getGUIMainWindowParent(), GUIMainWindow::getStaticTooltipView(), MFXStaticToolTip::isStaticToolTipEnabled(), and myGlChildWindowParent.
Referenced by GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
|
virtual |
update the viewport chooser with the current view values
Definition at line 1632 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), myChanger, myGUIDialogEditViewport, and GUIDialog_EditViewport::setValues().
Referenced by getViewportEditor().
| void GUISUMOAbstractView::waitForSnapshots | ( | const SUMOTime | snapshotTime | ) |
Definition at line 1594 of file GUISUMOAbstractView.cpp.
References mySnapshotCondition, mySnapshots, and mySnapshotsMutex.
zoom interface for 3D view
Definition at line 316 of file GUISUMOAbstractView.cpp.
Referenced by GUIDialog_EditViewport::onCmdChanged().
|
protected |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 646 of file GUISUMOAbstractView.h.
Referenced by addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), isAdditionalGLVisualisationEnabled(), removeAdditionalGLVisualisation(), and ~GUISUMOAbstractView().
|
protected |
Internal information whether doInit() was called.
Definition at line 605 of file GUISUMOAbstractView.h.
Referenced by onConfigure(), onPaint(), openObjectDialogAtCursor(), and GNEViewNet::openObjectDialogAtCursor().
|
protected |
The application.
Definition at line 569 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::buildViewToolBars(), GNEViewNet::doPaintGL(), getDelay(), getMainWindow(), getObjectsInBoundary(), 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().
|
protected |
The perspective changer.
Definition at line 578 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), centerTo(), centerTo(), centerTo(), copyViewportTo(), getChanger(), getObjectsInBoundary(), getVisibleBoundary(), GNEViewNet::GNEViewNet(), 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().
|
protected |
clicked poup position
Definition at line 593 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), and GNEViewNet::openSelectDialogAtCursor().
|
protected |
vector with current objects dialog
Definition at line 599 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), GNEViewNet::drawTemporalRoundabout(), and openObjectDialog().
|
protected |
The list of decals to show.
Definition at line 620 of file GUISUMOAbstractView.h.
Referenced by addDecals(), clearDecals(), drawDecals(), getDecals(), and ~GUISUMOAbstractView().
|
protected |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 623 of file GUISUMOAbstractView.h.
Referenced by addDecals(), clearDecals(), drawDecals(), and getDecalsLockMutex().
|
protected |
counter for measuring rendering time
Definition at line 649 of file GUISUMOAbstractView.h.
|
protected |
The parent window.
Definition at line 572 of file GUISUMOAbstractView.h.
Referenced by getColoringSchemesCombo(), getGUIGlChildWindow(), paintGL(), showToolTipFor(), and updateToolTip().
|
protected |
The visualization speed-up.
Definition at line 575 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::drawGLElements(), getGridHeight(), getGridWidth(), makeSnapshot(), and recenterView().
|
protected |
viewport chooser
Definition at line 608 of file GUISUMOAbstractView.h.
Referenced by getViewportEditor(), onMouseMove(), onMouseWheel(), remove(), showViewportEditor(), updateViewportValues(), and ~GUISUMOAbstractView().
|
protected |
Visualization changer.
Definition at line 614 of file GUISUMOAbstractView.h.
Referenced by remove(), GUIViewTraffic::setColorScheme(), GNEViewNet::setColorScheme(), showViewschemeEditor(), and ~GUISUMOAbstractView().
|
protected |
Information whether too-tip informations shall be generated.
Definition at line 584 of file GUISUMOAbstractView.h.
Referenced by isInEditMode().
|
protected |
Offset to the mouse-hotspot from the mouse position.
Definition at line 587 of file GUISUMOAbstractView.h.
Referenced by setWindowCursorPosition().
|
protected |
Definition at line 587 of file GUISUMOAbstractView.h.
Referenced by setWindowCursorPosition().
|
protected |
Panning flag.
Definition at line 581 of file GUISUMOAbstractView.h.
Referenced by onMiddleBtnPress(), onMiddleBtnRelease(), and GNEViewNet::updateCursor().
|
protected |
texture IDs pending deletion
Definition at line 626 of file GUISUMOAbstractView.h.
Referenced by processPendingTextureDeletes(), and queueTextureDelete().
|
mutableprotected |
poly draw lock
Definition at line 643 of file GUISUMOAbstractView.h.
|
protected |
The current popup-menu.
Definition at line 590 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), getPopup(), onKeyPress(), onKeyRelease(), onMouseMove(), GNEViewNet::openDeleteDialogAtCursor(), openObjectDialog(), openObjectDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), replacePopup(), and ~GUISUMOAbstractView().
The current popup-menu position.
Definition at line 596 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), getPopupPosition(), onMouseMove(), and openPopupDialog().
|
protected |
the semaphore when waiting for snapshots to finish
Definition at line 640 of file GUISUMOAbstractView.h.
Referenced by checkSnapshots(), and waitForSnapshots().
|
protected |
Snapshots.
Definition at line 634 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and waitForSnapshots().
|
protected |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 637 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and waitForSnapshots().
|
protected |
mutex for pending texture deletes
Definition at line 629 of file GUISUMOAbstractView.h.
Referenced by processPendingTextureDeletes(), and queueTextureDelete().
|
protected |
visualization settings
Definition at line 602 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), GUIViewTraffic::centerTo(), displayLegends(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GNEViewNet::drawGLElements(), GNEViewNet::drawGrid(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), editVisualisationSettings(), filterInternalLanes(), getObjectsInBoundary(), getVisualisationSettings(), GNEViewNet::GNEViewNet(), 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(), GUIViewTraffic::setColorScheme(), GNEViewNet::setColorScheme(), GNEViewNet::setSelectorFrameScale(), showViewschemeEditor(), snapToActiveGrid(), GNEViewNet::updateObjectsInPosition(), GNEViewNet::updateObjectsInShape(), and ~GUISUMOAbstractView().
|
protected |
Position of the cursor relative to the window.
Definition at line 611 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), getWindowCursorPosition(), and setWindowCursorPosition().
|
protected |
Definition at line 611 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), getWindowCursorPosition(), and setWindowCursorPosition().
|
staticprotected |
Definition at line 652 of file GUISUMOAbstractView.h.
Referenced by getGUIGlObjectsUnderCursor(), getGUIGlObjectsUnderSnappedCursor(), and getObjectsUnderCursor().