Eclipse SUMO - Simulation of Urban MObility
GUIViewTraffic Class Reference

#include <GUIViewTraffic.h>

Inheritance diagram for GUIViewTraffic:
[legend]
Collaboration diagram for GUIViewTraffic:
[legend]

Public Member Functions

void addDecals (const std::vector< Decal > &decals)
 add decals More...
 
void buildColorRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, const GUIVisualizationRainbowSettings &rs) override
 recalibrate color scheme according to the current value range More...
 
virtual void buildViewToolBars (GUIGlChildWindow *) override
 builds the view toolbars More...
 
void centerTo (const Boundary &bound)
 centers to the chosen artifact More...
 
virtual void centerTo (const Position &pos, bool applyZoom, double zoomDist=20)
 centers to the chosen position More...
 
virtual void centerTo (GUIGlID id, bool applyZoom, double zoomDist=20)
 centers to the chosen artifact More...
 
void changePedestrianNetworkColor (const GUIVisualizationSettings &s) const override
 Change the color of the JuPedSim pedestrian network. More...
 
void checkSnapshots () override
 Checks whether it is time for a snapshot. More...
 
virtual void copyViewportTo (GUISUMOAbstractView *view)
 copy the viewport to the given view More...
 
void destroyPopup ()
 destroys the popup More...
 
void drawPedestrianNetwork (const GUIVisualizationSettings &s) const override
 Draw (or not) the JuPedSim pedestrian network. More...
 
GUIVisualizationSettingseditVisualisationSettings () const
 edit visualization settings (allow modify VisualizationSetings, use carefully) More...
 
void endSnapshot () override
 Ends a video snapshot. More...
 
std::vector< GUIGlObject * > filterContextObjects (const std::vector< GUIGlObject * > &objects)
 filter out duplicate and forbidden objects More...
 
GUIPerspectiveChangergetChanger () const
 get changer More...
 
MFXComboBoxIcongetColoringSchemesCombo ()
 get coloring schemes combo More...
 
SUMOTime getCurrentTimeStep () const override
 get the current simulation time More...
 
std::vector< Decal > & getDecals ()
 The list of decals to show. More...
 
FXMutex & getDecalsLockMutex ()
 The mutex to use before accessing the decals list in order to avoid thread conflicts. More...
 
double getDelay () const
 Returns the delay of the parent application. More...
 
std::vector< std::string > getEdgeDataAttrs () const override
 return list of loaded edgeData attributes More...
 
std::vector< std::string > getEdgeLaneParamKeys (bool edgeKeys) const override
 return list of available edge parameters More...
 
double getFPS () const
 retrieve FPS More...
 
double getGridHeight () const
 get grid height More...
 
double getGridWidth () const
 get grid width More...
 
GUIGlChildWindowgetGUIGlChildWindow ()
 get GUIGlChildWindow More...
 
GUIMainWindowgetMainWindow () const
 get main window More...
 
std::vector< std::string > getMeanDataAttrs (const std::string &meanDataID) const override
 return list of available attributes for the given meanData id More...
 
std::vector< std::string > getMeanDataIDs () const override
 return list of loaded edgeData ids (being computed in the current simulation) More...
 
std::vector< std::string > getPOIParamKeys () const override
 return list of available POI parameters More...
 
const PositiongetPopupPosition () const
 get position of current popup More...
 
virtual Position getPositionInformation () const
 Returns the cursor's x/y position within the network. More...
 
virtual std::vector< std::string > getRelDataAttrs () const
 return list of loaded edgeRelation and tazRelation attributes More...
 
GUIGlID getTrackedID () const override
 Returns the id of the tracked vehicle (-1 if none) More...
 
std::vector< std::string > getVehicleParamKeys (bool vTypeKeys) const override
 return list of available vehicle parameters More...
 
GUIDialog_EditViewportgetViewportEditor ()
 get the viewport and create it on first access More...
 
Boundary getVisibleBoundary () const
 get visible boundary More...
 
const GUIVisualizationSettingsgetVisualisationSettings () const
 get visualization settings (read only) More...
 
Position getWindowCursorPosition () const
 return windows cursor position More...
 
 GUIViewTraffic (FXComposite *p, GUIMainWindow &app, GUISUMOViewParent *parent, GUINet &net, FXGLVisual *glVis, FXGLCanvas *share)
 constructor More...
 
virtual bool is3DView () const
 return whether this is a 3D view More...
 
bool isInEditMode ()
 returns true, if the edit button was pressed More...
 
double m2p (double meter) const
 meter-to-pixels conversion method More...
 
FXbool makeCurrent ()
 A reimplementation due to some internal reasons. More...
 
long onCmdAddRerouter (FXObject *, FXSelector, void *) override
 
long onCmdCloseEdge (FXObject *, FXSelector, void *) override
 
long onCmdCloseLane (FXObject *, FXSelector, void *) override
 interaction with the simulation More...
 
long onCmdShowReachability (FXObject *, FXSelector, void *) override
 highlight edges according to reachability More...
 
virtual long onConfigure (FXObject *, FXSelector, void *)
 mouse functions More...
 
long onDoubleClicked (FXObject *, FXSelector, void *) override
 
void onGamingClick (Position pos) override
 handle mouse click in gaming mode More...
 
void onGamingRightClick (Position pos) override
 
virtual long onKeyPress (FXObject *o, FXSelector sel, void *data)
 keyboard functions More...
 
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 More...
 
void openObjectDialog (const std::vector< GUIGlObject * > &objects, const bool filter=true)
 open object dialog for the given object More...
 
virtual void openObjectDialogAtCursor (const FXEvent *ev)
 open object dialog at the cursor position More...
 
double p2m (double pixel) const
 pixels-to-meters conversion method More...
 
virtual void recalculateBoundaries ()
 recalculate boundaries More...
 
virtual void recenterView ()
 recenters the view More...
 
void remove (GUIDialog_EditViewport *)
 remove viewport More...
 
void remove (GUIDialog_ViewSettings *)
 remove view settings More...
 
void replacePopup (GUIGLObjectPopupMenu *popUp)
 replace PopUp More...
 
const std::vector< SUMOTimeretrieveBreakpoints () const override
 retrieve breakpoints from the current runThread More...
 
void saveFrame (const std::string &destFile, FXColor *buf) override
 Adds a frame to a video snapshot which will be initialized if necessary. More...
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
void setBreakpoints (const std::vector< SUMOTime > &breakpoints)
 Sets the breakpoints of the parent application. More...
 
bool setColorScheme (const std::string &name) override
 set color scheme More...
 
void setDelay (double delay)
 Sets the delay of the parent application. More...
 
virtual void setViewportFromToRot (const Position &lookFrom, const Position &lookAt, double rotation)
 applies the given viewport settings More...
 
void setWindowCursorPosition (FXint x, FXint y)
 Returns the gl-id of the object under the given coordinates. More...
 
virtual void showViewportEditor ()
 show viewport editor More...
 
void showViewschemeEditor ()
 show viewsscheme editor More...
 
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. More...
 
void startTrack (int id) override
 Starts vehicle tracking. More...
 
void stopTrack () override
 Stops vehicle tracking. More...
 
void updateToolTip ()
 A method that updates the tooltip. More...
 
virtual void updateViewportValues ()
 update the viewport chooser with the current view values More...
 
virtual void zoom2Pos (Position &camera, Position &lookAt, double zoom)
 zoom interface for 3D view More...
 
virtual ~GUIViewTraffic ()
 destructor More...
 
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. More...
 
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. More...
 
void waitForSnapshots (const SUMOTime snapshotTime)
 
Additional visualisations
bool addAdditionalGLVisualisation (GUIGlObject *const which)
 Adds an object to call its additional visualisation method. More...
 
bool removeAdditionalGLVisualisation (GUIGlObject *const which)
 Removes an object from the list of objects that show additional things. More...
 
bool isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const
 Check if an object is added in the additional GL visualitation. More...
 

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) More...
 
void buildMinMaxRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, const GUIVisualizationRainbowSettings &rs, double minValue, double maxValue, bool hasMissingData)
 helper function for buildColorRainbow More...
 
FXImage * checkGDALImage (Decal &d)
 check whether we can read image data or position with gdal More...
 
void displayColorLegend (const GUIColorScheme &scheme, bool leftSide)
 Draws a legend for the given scheme. More...
 
void displayLegend ()
 Draws a line with ticks, and the length information. More...
 
void displayLegends ()
 Draws the configured legends. More...
 
virtual void doInit ()
 doInit More...
 
int doPaintGL (int mode, const Boundary &bound) override
 paint GL More...
 
void drawDecals ()
 Draws the stored decals. More...
 
void drawFPS ()
 Draws frames-per-second indicator. More...
 
std::vector< GUIGlObject * > filterInternalLanes (const std::vector< GUIGlObject * > &objects) const
 filter internal lanes in Objects under cursor More...
 
std::vector< GUIGlObject * > getGUIGlObjectsAtPosition (Position pos, double radius)
 returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT More...
 
std::vector< GUIGlObject * > getGUIGlObjectsUnderCursor ()
 returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects) More...
 
std::vector< GUIGlObject * > getGUIGlObjectsUnderSnappedCursor ()
 returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects) More...
 
GUILanegetLaneUnderCursor () override
 returns the GUILane at cursor position (implementation depends on view) More...
 
GUIGlID getObjectAtPosition (Position pos)
 returns the id of the object at position using GL_SELECT More...
 
std::vector< GUIGlIDgetObjectsAtPosition (Position pos, double radius)
 returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More...
 
std::vector< GUIGlIDgetObjectsInBoundary (Boundary bound)
 returns the ids of all objects in the given boundary More...
 
std::vector< GUIGlIDgetObjectsUnderCursor ()
 returns the id of the objects under the cursor using GL_SELECT (including overlapped objects) More...
 
GUIGlID getObjectUnderCursor ()
 returns the id of the front object under the cursor using GL_SELECT More...
 
virtual GUIGlID getToolTipID ()
 returns the id of object under cursor to show their tooltip More...
 
 GUIViewTraffic ()
 
void openPopupDialog ()
 open popup dialog More...
 
void paintGL ()
 FOX needs this. More...
 
void paintGLGrid () const
 paints a grid More...
 
bool showToolTipFor (const GUIGlID idToolTip)
 invokes the tooltip for the given object More...
 
virtual void updatePositionInformationLabel () const
 update position information labels More...
 

Protected Attributes

std::map< GUIGlObject *, int > myAdditionallyDrawn
 List of objects for which GUIGlObject::drawGLAdditional is called. More...
 
bool myAmInitialised = false
 Internal information whether doInit() was called. More...
 
GUIMainWindowmyApp
 The application. More...
 
GUIPerspectiveChangermyChanger = nullptr
 The perspective changer. More...
 
Position myClickedPopupPosition = Position::INVALID
 clicked poup position More...
 
std::vector< GUIGlObject * > myCurrentObjectsDialog
 vector with current objects dialog More...
 
long myFrameDrawTime = 0
 counter for measuring rendering time More...
 
GUIGlChildWindowmyGlChildWindowParent
 The parent window. More...
 
const SUMORTreemyGrid
 The visualization speed-up. More...
 
GUIDialog_EditViewportmyGUIDialogEditViewport = nullptr
 viewport chooser More...
 
GUIDialog_ViewSettingsmyGUIDialogViewSettings = nullptr
 Visualization changer. More...
 
bool myInEditMode = false
 Information whether too-tip informations shall be generated. More...
 
int myMouseHotspotX
 Offset to the mouse-hotspot from the mouse position. More...
 
int myMouseHotspotY
 
bool myPanning = false
 Panning flag. More...
 
FXMutex myPolyDrawLock
 poly draw lock More...
 
GUIGLObjectPopupMenumyPopup = nullptr
 The current popup-menu. More...
 
Position myPopupPosition = Position(0, 0)
 The current popup-menu position. More...
 
FXCondition mySnapshotCondition
 the semaphore when waiting for snapshots to finish More...
 
std::map< SUMOTime, std::vector< std::tuple< std::string, int, int > > > mySnapshots
 Snapshots. More...
 
FXMutex mySnapshotsMutex
 The mutex to use before accessing the decals list in order to avoid thread conflicts. More...
 
GUIVisualizationSettingsmyVisualizationSettings
 visualization settings More...
 
FXint myWindowCursorPositionX
 Position of the cursor relative to the window. More...
 
FXint myWindowCursorPositionY
 
Optionally shown decals
std::vector< DecalmyDecals
 The list of decals to show. More...
 
FXMutex myDecalsLockMutex
 The mutex to use before accessing the decals list in order to avoid thread conflicts. More...
 

Private Attributes

bool myTLSGame
 whether game mode was set to 'tls' More...
 
GUIGlID myTrackedID
 

Static Private Attributes

static const double SENSITIVITY = 0.1
 

Detailed Description

Microsocopic view at the simulation

Definition at line 52 of file GUIViewTraffic.h.

Constructor & Destructor Documentation

◆ GUIViewTraffic() [1/2]

GUIViewTraffic::GUIViewTraffic ( FXComposite *  p,
GUIMainWindow app,
GUISUMOViewParent parent,
GUINet net,
FXGLVisual *  glVis,
FXGLCanvas *  share 
)

constructor

Definition at line 74 of file GUIViewTraffic.cpp.

◆ ~GUIViewTraffic()

GUIViewTraffic::~GUIViewTraffic ( )
virtual

destructor

Definition at line 89 of file GUIViewTraffic.cpp.

References endSnapshot().

◆ GUIViewTraffic() [2/2]

GUIViewTraffic::GUIViewTraffic ( )
inlineprotected

Definition at line 159 of file GUIViewTraffic.h.

Member Function Documentation

◆ addAdditionalGLVisualisation()

bool GUISUMOAbstractView::addAdditionalGLVisualisation ( GUIGlObject *const  which)
inherited

Adds an object to call its additional visualisation method.

Parameters
[in]whichThe object to add
Returns
Always true
See also
GUIGlObject::drawGLAdditional

Definition at line 1854 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), and GUIVehicle::drawOutsideNetwork().

Here is the caller graph for this function:

◆ addDecals()

void GUISUMOAbstractView::addDecals ( const std::vector< Decal > &  decals)
inherited

add decals

Definition at line 239 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myDecals.

Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().

Here is the caller graph for this function:

◆ addSnapshot()

void GUISUMOAbstractView::addSnapshot ( SUMOTime  time,
const std::string &  file,
const int  w = -1,
const int  h = -1 
)
inherited

Sets the snapshot time to file map.

Parameters
[in]snapsThe snapshots to take at certain times
[in]wThe snapshot image width
[in]wThe snapshot image height

Definition at line 1346 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.

Referenced by checkSnapshots(), and GUISettingsHandler::setSnapshots().

Here is the caller graph for this function:

◆ applyGLTransform()

Boundary GUISUMOAbstractView::applyGLTransform ( bool  fixRatio = true)
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 1892 of file GUISUMOAbstractView.cpp.

References Boundary::add(), GUIVisualizationSettings::angle, DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GLO_MAX, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, Position::rotateAround2D(), Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().

Referenced by GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().

Here is the caller graph for this function:

◆ buildColorRainbow()

◆ buildMinMaxRainbow()

◆ buildViewToolBars()

◆ centerTo() [1/3]

void GUISUMOAbstractView::centerTo ( const Boundary bound)
inherited

centers to the chosen artifact

Definition at line 949 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::setViewport().

◆ centerTo() [2/3]

void GUISUMOAbstractView::centerTo ( const Position pos,
bool  applyZoom,
double  zoomDist = 20 
)
virtualinherited

centers to the chosen position

Parameters
[in]posPosition to center view
[in]applyZoomWhether to zoom in
[in]zoomDistThe distance in m to use for the zoom, values < 0 means: use the centeringBoundary
Note
caller is responsible for calling update

Definition at line 941 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::centerTo(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::updatePositionInformationLabel().

◆ centerTo() [3/3]

void GUISUMOAbstractView::centerTo ( GUIGlID  id,
bool  applyZoom,
double  zoomDist = 20 
)
virtualinherited

centers to the chosen artifact

Parameters
[in]idThe id of the artifact to center to
[in]applyZoomWhether to zoom in
[in]zoomDistThe distance in m to use for the zoom, values < 0 means: use the centeringBoundary
Note
caller is responsible for calling update

Definition at line 921 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::centerTo(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, Position::INVALID, GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setViewport(), GUIGlObjectStorage::unblockObject(), and GUISUMOAbstractView::updatePositionInformationLabel().

Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNEVehicleFrame::buildVehicleOverRoute(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), GUISUMOAbstractView::paintGL(), and GUIGlChildWindow::setView().

Here is the caller graph for this function:

◆ changePedestrianNetworkColor()

void GUIViewTraffic::changePedestrianNetworkColor ( const GUIVisualizationSettings s) const
overridevirtual

Change the color of the JuPedSim pedestrian network.

Parameters
sThe visualization settings

Reimplemented from GUISUMOAbstractView.

Definition at line 743 of file GUIViewTraffic.cpp.

References MSNet::getInstance(), ShapeContainer::getPolygons(), MSNet::getShapeContainer(), and GUIVisualizationSettings::pedestrianNetworkColor.

◆ checkGDALImage()

FXImage * GUISUMOAbstractView::checkGDALImage ( Decal d)
protectedinherited

check whether we can read image data or position with gdal

Definition at line 1702 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GeoConvHelper::getProcessing(), GUISUMOAbstractView::Decal::height, TL, GUISUMOAbstractView::Decal::width, WRITE_WARNINGF, Position::x(), and Position::y().

Referenced by GUISUMOAbstractView::drawDecals().

Here is the caller graph for this function:

◆ checkSnapshots()

void GUIViewTraffic::checkSnapshots ( )
overridevirtual

Checks whether it is time for a snapshot.

Reimplemented from GUISUMOAbstractView.

Definition at line 714 of file GUIViewTraffic.cpp.

References GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), DELTA_T, and getCurrentTimeStep().

◆ copyViewportTo()

void GUISUMOAbstractView::copyViewportTo ( GUISUMOAbstractView view)
virtualinherited

copy the viewport to the given view

Definition at line 1608 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::setViewportFromToRot().

Referenced by GUIApplicationWindow::openNewView().

Here is the caller graph for this function:

◆ destroyPopup()

void GUISUMOAbstractView::destroyPopup ( )
inherited

destroys the popup

Definition at line 1019 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myCurrentObjectsDialog, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::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(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openSelectDialogAtCursor(), GNEViewNet::processClick(), and GUIBaseVehicle::~GUIBaseVehicle().

Here is the caller graph for this function:

◆ displayColorLegend()

void GUISUMOAbstractView::displayColorLegend ( const GUIColorScheme scheme,
bool  leftSide 
)
protectedinherited

◆ displayLegend()

void GUISUMOAbstractView::displayLegend ( )
protectedinherited

Draws a line with ticks, and the length information.

Definition at line 637 of file GUISUMOAbstractView.cpp.

References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, GUISUMOAbstractView::m2p(), GLHelper::popMatrix(), and GLHelper::pushMatrix().

Referenced by GUISUMOAbstractView::displayLegends().

Here is the caller graph for this function:

◆ displayLegends()

void GUISUMOAbstractView::displayLegends ( )
protectedinherited

◆ doInit()

void GUISUMOAbstractView::doInit ( )
protectedvirtualinherited

doInit

Reimplemented in GNEViewNet.

Definition at line 276 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::onConfigure().

Here is the caller graph for this function:

◆ doPaintGL()

◆ drawDecals()

◆ drawFPS()

void GUISUMOAbstractView::drawFPS ( )
protectedinherited

Draws frames-per-second indicator.

Definition at line 880 of file GUISUMOAbstractView.cpp.

References GLHelper::drawText(), FONS_ALIGN_LEFT, GUISUMOAbstractView::getFPS(), GLHelper::getMatrixCounter(), GLHelper::getVertexCounter(), GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, and toString().

Referenced by GUISUMOAbstractView::paintGL().

Here is the caller graph for this function:

◆ drawPedestrianNetwork()

void GUIViewTraffic::drawPedestrianNetwork ( const GUIVisualizationSettings s) const
overridevirtual

Draw (or not) the JuPedSim pedestrian network.

Parameters
sThe visualization settings

Reimplemented from GUISUMOAbstractView.

Definition at line 731 of file GUIViewTraffic.cpp.

References GUIShapeContainer::addInactivePolygonTypes(), MSNet::getInstance(), MSNet::getShapeContainer(), GUIShapeContainer::removeInactivePolygonTypes(), and GUIVisualizationSettings::showPedestrianNetwork.

◆ editVisualisationSettings()

GUIVisualizationSettings * GUISUMOAbstractView::editVisualisationSettings ( ) const
inherited

edit visualization settings (allow modify VisualizationSetings, use carefully)

Definition at line 1629 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationSettings.

Referenced by GUILane::getParameterWindow(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), and GUIApplicationWindow::onCmdToggleSecondaryShape().

Here is the caller graph for this function:

◆ endSnapshot()

void GUIViewTraffic::endSnapshot ( )
overridevirtual

Ends a video snapshot.

Reimplemented from GUISUMOAbstractView.

Definition at line 703 of file GUIViewTraffic.cpp.

Referenced by ~GUIViewTraffic().

Here is the caller graph for this function:

◆ filterContextObjects()

std::vector< GUIGlObject * > GUISUMOAbstractView::filterContextObjects ( const std::vector< GUIGlObject * > &  objects)
inherited

filter out duplicate and forbidden objects

Definition at line 1222 of file GUISUMOAbstractView.cpp.

References GUIGlObject::INVALID_PRIORITY.

Referenced by GUISUMOAbstractView::openObjectDialogAtCursor().

Here is the caller graph for this function:

◆ filterInternalLanes()

std::vector< GUIGlObject * > GUISUMOAbstractView::filterInternalLanes ( const std::vector< GUIGlObject * > &  objects) const
protectedinherited

filter internal lanes in Objects under cursor

Definition at line 555 of file GUISUMOAbstractView.cpp.

References GUIVisualizationSettings::drawJunctionShape, GLO_LANE, and GUISUMOAbstractView::myVisualizationSettings.

◆ getChanger()

GUIPerspectiveChanger & GUISUMOAbstractView::getChanger ( ) const
inherited

get changer

Definition at line 185 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myChanger.

Referenced by GUISettingsHandler::applyViewport(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIApplicationWindow::onCmdOpenInNetedit(), GNEApplicationWindow::onCmdOpenSUMOGUI(), and GUIDialog_EditViewport::setValues().

Here is the caller graph for this function:

◆ getColoringSchemesCombo()

MFXComboBoxIcon * GUISUMOAbstractView::getColoringSchemesCombo ( )
inherited

get coloring schemes combo

Definition at line 1696 of file GUISUMOAbstractView.cpp.

References GUIGlChildWindow::getColoringSchemesCombo(), and GUISUMOAbstractView::myGlChildWindowParent.

Referenced by GUISettingsHandler::addSettings(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().

Here is the caller graph for this function:

◆ getCurrentTimeStep()

SUMOTime GUIViewTraffic::getCurrentTimeStep ( ) const
overridevirtual

get the current simulation time

Reimplemented from GUISUMOAbstractView.

Definition at line 540 of file GUIViewTraffic.cpp.

References MSNet::getCurrentTimeStep(), and MSNet::getInstance().

Referenced by checkSnapshots().

Here is the caller graph for this function:

◆ getDecals()

◆ getDecalsLockMutex()

FXMutex & GUISUMOAbstractView::getDecalsLockMutex ( )
inherited

The mutex to use before accessing the decals list in order to avoid thread conflicts.

Definition at line 1690 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myDecalsLockMutex.

Referenced by GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), and GUIDialog_ViewSettings::onCmdClearDecals().

Here is the caller graph for this function:

◆ getDelay()

double GUISUMOAbstractView::getDelay ( ) const
inherited

Returns the delay of the parent application.

Definition at line 1926 of file GUISUMOAbstractView.cpp.

References GUIMainWindow::getDelay(), and GUISUMOAbstractView::myApp.

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

Here is the caller graph for this function:

◆ getEdgeDataAttrs()

std::vector< std::string > GUIViewTraffic::getEdgeDataAttrs ( ) const
overridevirtual

return list of loaded edgeData attributes

Reimplemented from GUISUMOAbstractView.

Definition at line 244 of file GUIViewTraffic.cpp.

References GUINet::getEdgeDataAttrs(), and GUINet::getGUIInstance().

◆ getEdgeLaneParamKeys()

std::vector< std::string > GUIViewTraffic::getEdgeLaneParamKeys ( bool  edgeKeys) const
overridevirtual

return list of available edge parameters

Reimplemented from GUISUMOAbstractView.

Definition at line 270 of file GUIViewTraffic.cpp.

References MSEdge::getAllEdges().

◆ getFPS()

double GUISUMOAbstractView::getFPS ( ) const
inherited

retrieve FPS

Definition at line 868 of file GUISUMOAbstractView.cpp.

References MAX2(), and GUISUMOAbstractView::myFrameDrawTime.

Referenced by GUISUMOAbstractView::drawFPS(), and GUINet::getParameterWindow().

Here is the caller graph for this function:

◆ getGridHeight()

double GUISUMOAbstractView::getGridHeight ( ) const
inherited

get grid height

Definition at line 1653 of file GUISUMOAbstractView.cpp.

References Boundary::getHeight(), and GUISUMOAbstractView::myGrid.

Referenced by GUISUMOAbstractView::checkGDALImage().

Here is the caller graph for this function:

◆ getGridWidth()

double GUISUMOAbstractView::getGridWidth ( ) const
inherited

get grid width

Definition at line 1647 of file GUISUMOAbstractView.cpp.

References Boundary::getWidth(), and GUISUMOAbstractView::myGrid.

Referenced by GUISUMOAbstractView::checkGDALImage().

Here is the caller graph for this function:

◆ getGUIGlChildWindow()

GUIGlChildWindow * GUISUMOAbstractView::getGUIGlChildWindow ( )
inherited

get GUIGlChildWindow

Definition at line 874 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myGlChildWindowParent.

Referenced by MFXDecalsTable::Column::Column().

Here is the caller graph for this function:

◆ getGUIGlObjectsAtPosition()

std::vector< GUIGlObject * > GUISUMOAbstractView::getGUIGlObjectsAtPosition ( Position  pos,
double  radius 
)
protectedinherited

returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT

Definition at line 485 of file GUISUMOAbstractView.cpp.

References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().

Referenced by GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), and GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor().

Here is the caller graph for this function:

◆ getGUIGlObjectsUnderCursor()

std::vector< GUIGlObject * > GUISUMOAbstractView::getGUIGlObjectsUnderCursor ( )
protectedinherited

returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)

Definition at line 402 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.

Referenced by GUISUMOAbstractView::openObjectDialogAtCursor().

Here is the caller graph for this function:

◆ getGUIGlObjectsUnderSnappedCursor()

std::vector< GUIGlObject * > GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor ( )
protectedinherited

returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects)

Definition at line 408 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::SENSITIVITY, and GUISUMOAbstractView::snapToActiveGrid().

◆ getLaneUnderCursor()

GUILane * GUIViewTraffic::getLaneUnderCursor ( )
overrideprotectedvirtual

returns the GUILane at cursor position (implementation depends on view)

Reimplemented from GUISUMOAbstractView.

Definition at line 660 of file GUIViewTraffic.cpp.

References GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GUIGlObjectStorage::gIDStorage, and GUISUMOAbstractView::makeCurrent().

Referenced by onCmdAddRerouter(), onCmdCloseEdge(), onCmdCloseLane(), and onCmdShowReachability().

Here is the caller graph for this function:

◆ getMainWindow()

GUIMainWindow * GUISUMOAbstractView::getMainWindow ( ) const
inherited

get main window

Definition at line 956 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myApp.

Referenced by GUICursorDialog::buildDialogElements(), and GUICursorDialog::onCmdOpenPropertiesPopUp().

Here is the caller graph for this function:

◆ getMeanDataAttrs()

std::vector< std::string > GUIViewTraffic::getMeanDataAttrs ( const std::string &  meanDataID) const
overridevirtual

return list of available attributes for the given meanData id

Reimplemented from GUISUMOAbstractView.

Definition at line 261 of file GUIViewTraffic.cpp.

References GUINet::getGUIInstance(), and GUINet::getMeanDataAttrs().

◆ getMeanDataIDs()

std::vector< std::string > GUIViewTraffic::getMeanDataIDs ( ) const
overridevirtual

return list of loaded edgeData ids (being computed in the current simulation)

Reimplemented from GUISUMOAbstractView.

Definition at line 253 of file GUIViewTraffic.cpp.

References GUINet::getGUIInstance(), and GUINet::getMeanDataIDs().

◆ getObjectAtPosition()

GUIGlID GUISUMOAbstractView::getObjectAtPosition ( Position  pos)
protectedinherited

returns the id of the object at position using GL_SELECT

Definition at line 414 of file GUISUMOAbstractView.cpp.

References Boundary::add(), GUIGlObject::getClickPriority(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), GUISUMOAbstractView::SENSITIVITY, and GUIGlObjectStorage::unblockObject().

Referenced by GUISUMOAbstractView::getObjectUnderCursor().

Here is the caller graph for this function:

◆ getObjectsAtPosition()

std::vector< GUIGlID > GUISUMOAbstractView::getObjectsAtPosition ( Position  pos,
double  radius 
)
protectedinherited

returns the ids of the object at position within the given (rectangular) radius using GL_SELECT

Definition at line 450 of file GUISUMOAbstractView.cpp.

References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_NETWORK, Boundary::grow(), and GUIGlObjectStorage::unblockObject().

Referenced by GUISUMOAbstractView::getObjectsUnderCursor().

Here is the caller graph for this function:

◆ getObjectsInBoundary()

◆ getObjectsUnderCursor()

std::vector< GUIGlID > GUISUMOAbstractView::getObjectsUnderCursor ( )
protectedinherited

returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)

Definition at line 395 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.

◆ getObjectUnderCursor()

GUIGlID GUISUMOAbstractView::getObjectUnderCursor ( )
protectedinherited

returns the id of the front object under the cursor using GL_SELECT

Definition at line 389 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getObjectAtPosition(), and GUISUMOAbstractView::getPositionInformation().

Referenced by getLaneUnderCursor(), GUISUMOAbstractView::getToolTipID(), and GUISUMOAbstractView::onLeftBtnPress().

Here is the caller graph for this function:

◆ getPOIParamKeys()

std::vector< std::string > GUIViewTraffic::getPOIParamKeys ( ) const
overridevirtual

return list of available POI parameters

Reimplemented from GUISUMOAbstractView.

Definition at line 304 of file GUIViewTraffic.cpp.

References MSNet::getInstance(), and MSNet::getShapeContainer().

◆ getPopupPosition()

const Position & GUISUMOAbstractView::getPopupPosition ( ) const
inherited

get position of current popup

Definition at line 1013 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myPopupPosition.

Referenced by GNEViewNet::onCmdDeleteGeometryPoint(), GNEViewNet::onCmdEditEdgeEndpoint(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdSetFirstGeometryPoint(), GNEViewNet::onCmdSplitEdge(), and GNEViewNet::onCmdSplitEdgeBidi().

Here is the caller graph for this function:

◆ getPositionInformation()

Position GUISUMOAbstractView::getPositionInformation ( ) const
virtualinherited

Returns the cursor's x/y position within the network.

Definition at line 199 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, and GUISUMOAbstractView::screenPos2NetPos().

Referenced by GNEConsecutiveSelector::addLane(), GNEPlanCreator::addSingleEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEMoveElement::calculateNewLane(), GNEViewNet::doPaintGL(), GNEDemandElementPlan::drawEndPosition(), GNETAZ::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawJunctionAsShape(), GNEVehicle::drawLanePartialGL(), GNENeteditAttributes::drawLaneReference(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor(), GNEParkingSpace::getMoveOperation(), GNETAZ::getMoveOperation(), GNEStop::getMoveOperation(), GNEVehicle::getMoveOperation(), GNEEdge::getMoveOperation(), GNEPOI::getMoveOperation(), GNEAdditional::getMoveOperationMultiLane(), GNEAdditional::getMoveOperationSingleLane(), GNENeteditAttributes::getNeteditAttributesAndValues(), GUISUMOAbstractView::getObjectsUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GNEDemandElementPlan::getPlanMoveOperation(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEViewNet::onCmdSetCustomGeometryPoint(), GUIDanielPerspectiveChanger::onKeyPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMiddleBtnPress(), GUISUMOAbstractView::onMouseMove(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), GUISUMOAbstractView::openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEDeleteFrame::removeGeometryPoint(), and GUISUMOAbstractView::updatePositionInformationLabel().

◆ getRelDataAttrs()

virtual std::vector<std::string> GUISUMOAbstractView::getRelDataAttrs ( ) const
inlinevirtualinherited

return list of loaded edgeRelation and tazRelation attributes

Reimplemented in GNEViewNet.

Definition at line 285 of file GUISUMOAbstractView.h.

Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().

Here is the caller graph for this function:

◆ getToolTipID()

GUIGlID GUISUMOAbstractView::getToolTipID ( )
protectedvirtualinherited

returns the id of object under cursor to show their tooltip

Reimplemented in GNEViewNet.

Definition at line 383 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getObjectUnderCursor().

Referenced by GUISUMOAbstractView::paintGL().

Here is the caller graph for this function:

◆ getTrackedID()

GUIGlID GUIViewTraffic::getTrackedID ( ) const
overridevirtual

Returns the id of the tracked vehicle (-1 if none)

Returns
The glID of the vehicle to track

Reimplemented from GUISUMOAbstractView.

Definition at line 386 of file GUIViewTraffic.cpp.

References myTrackedID.

◆ getVehicleParamKeys()

std::vector< std::string > GUIViewTraffic::getVehicleParamKeys ( bool  vTypeKeys) const
overridevirtual

◆ getViewportEditor()

GUIDialog_EditViewport * GUISUMOAbstractView::getViewportEditor ( )
inherited

get the viewport and create it on first access

Definition at line 1573 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myGUIDialogEditViewport, TLC, and GUISUMOAbstractView::updateViewportValues().

Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and GUISUMOAbstractView::showViewportEditor().

Here is the caller graph for this function:

◆ getVisibleBoundary()

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const
inherited

get visible boundary

Definition at line 281 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::getViewport(), and GUISUMOAbstractView::myChanger.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), and GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary().

Here is the caller graph for this function:

◆ getVisualisationSettings()

const GUIVisualizationSettings & GUISUMOAbstractView::getVisualisationSettings ( ) const
inherited

get visualization settings (read only)

Definition at line 1623 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationSettings.

Referenced by GNEConnectorFrame::buildConnection(), GNEProhibitionFrame::buildProhibition(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEPersonTrip::getColor(), GNERide::getColor(), GNEStop::getColor(), GNEStopPlan::getColor(), GNETranship::getColor(), GNETransport::getColor(), GNEWalk::getColor(), GNEEdge::getGeometryPointRadius(), GNEParkingSpace::getMoveOperation(), GNETAZ::getMoveOperation(), GNEStop::getMoveOperation(), GNEPOI::getMoveOperation(), GNEAdditional::getMoveOperationMultiLane(), GNEAdditional::getMoveOperationSingleLane(), GUILane::getPopUpMenu(), GNEPoly::getVertexIndex(), GNETAZ::getVertexIndex(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), GNEApplicationWindow::onCmdToggleDrawJunctionShape(), GNEApplicationWindow::onCmdToggleGrid(), GUIApplicationWindow::onCmdToggleSecondaryShape(), GNECreateEdgeFrame::processClick(), GNETAZ::removeGeometryPoint(), GNEConnection::removeGeometryPoint(), GNECrossing::removeGeometryPoint(), GNEJunction::removeGeometryPoint(), GNELane::removeGeometryPoint(), GNEPoly::removeGeometryPoint(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), and GNEContainerStop::updateGeometry().

Here is the caller graph for this function:

◆ getWindowCursorPosition()

Position GUISUMOAbstractView::getWindowCursorPosition ( ) const
inherited

return windows cursor position

Definition at line 962 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.

Referenced by GUISUMOAbstractView::updatePositionInformationLabel().

Here is the caller graph for this function:

◆ is3DView()

bool GUISUMOAbstractView::is3DView ( ) const
virtualinherited

return whether this is a 3D view

Definition at line 287 of file GUISUMOAbstractView.cpp.

Referenced by GUISettingsHandler::applyViewport(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_ViewSettings::onCmdExportSetting(), GUIDialog_EditViewport::setValues(), and GUIDialog_EditViewport::writeXML().

Here is the caller graph for this function:

◆ isAdditionalGLVisualisationEnabled()

bool GUISUMOAbstractView::isAdditionalGLVisualisationEnabled ( GUIGlObject *const  which) const
inherited

Check if an object is added in the additional GL visualitation.

Parameters
[in]whichThe object to check
See also
GUIGlObject::drawGLAdditional

Definition at line 1882 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

◆ isInEditMode()

bool GUISUMOAbstractView::isInEditMode ( )
inherited

returns true, if the edit button was pressed

Definition at line 179 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myInEditMode.

◆ m2p()

double GUISUMOAbstractView::m2p ( double  meter) const
inherited

meter-to-pixels conversion method

Definition at line 903 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.

Referenced by GUISUMOAbstractView::displayLegend(), doPaintGL(), GNEViewNet::drawGLElements(), GUISUMOAbstractView::getObjectsInBoundary(), and GUISUMOAbstractView::makeSnapshot().

Here is the caller graph for this function:

◆ makeCurrent()

FXbool GUISUMOAbstractView::makeCurrent ( )
inherited

A reimplementation due to some internal reasons.

Definition at line 975 of file GUISUMOAbstractView.cpp.

Referenced by getLaneUnderCursor(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onPaint(), GUISUMOAbstractView::openObjectDialogAtCursor(), and GNEViewNet::recalculateBoundaries().

Here is the caller graph for this function:

◆ makeSnapshot()

std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile,
const int  w = -1,
const int  h = -1 
)
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.

Parameters
[in]destFileThe name of the file to write the snapshot into
[in]wThe snapshot image width
[in]wThe snapshot image height
Returns
The error message, if an error occurred; "" otherwise

Definition at line 1356 of file GUISUMOAbstractView.cpp.

References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::displayLegends(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawDecals(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GLHelper::pushMatrix(), RGBColor::red(), GUISUMOAbstractView::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 GUISUMOAbstractView::checkSnapshots(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().

Here is the caller graph for this function:

◆ onCmdAddRerouter()

long GUIViewTraffic::onCmdAddRerouter ( FXObject *  ,
FXSelector  ,
void *   
)
overridevirtual

◆ onCmdCloseEdge()

long GUIViewTraffic::onCmdCloseEdge ( FXObject *  ,
FXSelector  ,
void *   
)
overridevirtual

◆ onCmdCloseLane()

long GUIViewTraffic::onCmdCloseLane ( FXObject *  ,
FXSelector  ,
void *   
)
overridevirtual

◆ onCmdShowReachability()

long GUIViewTraffic::onCmdShowReachability ( FXObject *  menu,
FXSelector  selector,
void *   
)
overridevirtual

◆ onConfigure()

long GUISUMOAbstractView::onConfigure ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

mouse functions

Definition at line 982 of file GUISUMOAbstractView.cpp.

References RGBColor::alpha(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::checkSnapshots(), GUISUMOAbstractView::doInit(), RGBColor::green(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, GUISUMOAbstractView::myVisualizationSettings, and RGBColor::red().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onDoubleClicked()

long GUIViewTraffic::onDoubleClicked ( FXObject *  ,
FXSelector  ,
void *   
)
overridevirtual

◆ onGamingClick()

void GUIViewTraffic::onGamingClick ( Position  pos)
overridevirtual

handle mouse click in gaming mode

Reimplemented from GUISUMOAbstractView.

Definition at line 392 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(), MSNet::getCurrentTimeStep(), MSStoppingPlace::getEndLanePosition(), GUIGlObject::getGlID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSVehicle::getMutableLane(), GUIGlObjectStorage::getObjectBlocking(), MSBaseVehicle::getParameter(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getPhases(), GUIVehicle::getPosition(), GUISelectedStorage::getSelected(), MSTrafficLightLogic::getSpentDuration(), MSNet::getStoppingPlaces(), MSNet::getTLSControl(), MSNet::getVehicleControl(), MSLane::getVehiclesSecure(), GUIGlObjectStorage::gIDStorage, GLO_VEHICLE, gSelected, MSGlobals::gUseMesoSim, MSTLLogicControl::isActive(), MSPhaseDefinition::isAllRedPhase(), MSPhaseDefinition::isGreenPhase(), SUMOVehicleParameter::line, MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), myTLSGame, MSLane::releaseVehicles(), GUIVehicle::rerouteDRTStop(), GUISelectedStorage::select(), SUMO_TAG_BUS_STOP, GUIGlObjectStorage::unblockObject(), and GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE.

◆ onGamingRightClick()

◆ onKeyPress()

long GUISUMOAbstractView::onKeyPress ( FXObject *  o,
FXSelector  sel,
void *  data 
)
virtualinherited

keyboard functions

Reimplemented in GNEViewNet.

Definition at line 1294 of file GUISUMOAbstractView.cpp.

References GUIVisualizationSettings::altKeyPressed, GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myVisualizationSettings, and GUIPerspectiveChanger::onKeyPress().

Referenced by FXDEFMAP(), GUISUMOViewParent::onKeyPress(), GNEViewNet::onKeyPress(), and GNEViewParent::onKeyPress().

Here is the caller graph for this function:

◆ onKeyRelease()

long GUISUMOAbstractView::onKeyRelease ( FXObject *  o,
FXSelector  sel,
void *  data 
)
virtualinherited

Reimplemented in GNEViewNet.

Definition at line 1327 of file GUISUMOAbstractView.cpp.

References GUIVisualizationSettings::altKeyPressed, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myVisualizationSettings, and GUIPerspectiveChanger::onKeyRelease().

Referenced by FXDEFMAP(), GUISUMOViewParent::onKeyRelease(), GNEViewNet::onKeyRelease(), and GNEViewParent::onKeyRelease().

Here is the caller graph for this function:

◆ onLeftBtnPress()

long GUISUMOAbstractView::onLeftBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
virtualinherited

◆ onLeftBtnRelease()

long GUISUMOAbstractView::onLeftBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
virtualinherited

Reimplemented in GNEViewNet.

Definition at line 1096 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPositionInformation(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::onGamingClick(), and GUIPerspectiveChanger::onLeftBtnRelease().

Referenced by FXDEFMAP(), and GNEViewNet::onLeftBtnRelease().

Here is the caller graph for this function:

◆ onMiddleBtnPress()

long GUISUMOAbstractView::onMiddleBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
virtualinherited

Reimplemented in GNEViewNet.

Definition at line 1108 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::destroyPopup(), GUICursorSubSys::getCursor(), GUIMainWindow::isGaming(), MOVEVIEW, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPanning, and GUIPerspectiveChanger::onMiddleBtnPress().

Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnPress().

Here is the caller graph for this function:

◆ onMiddleBtnRelease()

long GUISUMOAbstractView::onMiddleBtnRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
virtualinherited

Reimplemented in GNEViewNet.

Definition at line 1125 of file GUISUMOAbstractView.cpp.

References DEFAULT, GUISUMOAbstractView::destroyPopup(), GUICursorSubSys::getCursor(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPanning, and GUIPerspectiveChanger::onMiddleBtnRelease().

Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnRelease().

Here is the caller graph for this function:

◆ onMouseLeft()

long GUISUMOAbstractView::onMouseLeft ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

Definition at line 1217 of file GUISUMOAbstractView.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMouseMove()

◆ onMouseWheel()

long GUISUMOAbstractView::onMouseWheel ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
virtualinherited

◆ onPaint()

long GUISUMOAbstractView::onPaint ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

Definition at line 1000 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, and GUISUMOAbstractView::paintGL().

Referenced by FXDEFMAP(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

Here is the caller graph for this function:

◆ onRightBtnPress()

long GUISUMOAbstractView::onRightBtnPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
virtualinherited

Reimplemented in GNEViewNet.

Definition at line 1141 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::destroyPopup(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onRightBtnPress().

Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnPress().

Here is the caller graph for this function:

◆ onRightBtnRelease()

long GUISUMOAbstractView::onRightBtnRelease ( FXObject *  o,
FXSelector  sel,
void *  ptr 
)
virtualinherited

◆ onVisualizationChange()

long GUISUMOAbstractView::onVisualizationChange ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited

hook to react on change in visualization settings

Definition at line 371 of file GUISUMOAbstractView.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openObjectDialog()

void GUISUMOAbstractView::openObjectDialog ( const std::vector< GUIGlObject * > &  objects,
const bool  filter = true 
)
inherited

open object dialog for the given object

Definition at line 1263 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myApp, GUISUMOAbstractView::myCurrentObjectsDialog, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::openPopupDialog(), and GUIGLObjectPopupMenu::PROPERTIES.

Referenced by GNEViewNet::openObjectDialogAtCursor().

Here is the caller graph for this function:

◆ openObjectDialogAtCursor()

void GUISUMOAbstractView::openObjectDialogAtCursor ( const FXEvent *  ev)
virtualinherited

◆ openPopupDialog()

void GUISUMOAbstractView::openPopupDialog ( )
protectedinherited

◆ p2m()

double GUISUMOAbstractView::p2m ( double  pixel) const
inherited

pixels-to-meters conversion method

Definition at line 909 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.

Referenced by GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), GUISUMOAbstractView::drawDecals(), and GUIDanielPerspectiveChanger::move().

Here is the caller graph for this function:

◆ paintGL()

◆ paintGLGrid()

void GUISUMOAbstractView::paintGLGrid ( ) const
protectedinherited

◆ recalculateBoundaries()

virtual void GUISUMOAbstractView::recalculateBoundaries ( )
inlinevirtualinherited

recalculate boundaries

Reimplemented in GNEViewNet.

Definition at line 94 of file GUISUMOAbstractView.h.

Referenced by GUIDialog_ViewSettings::onCmdColorChange().

Here is the caller graph for this function:

◆ recenterView()

void GUISUMOAbstractView::recenterView ( )
virtualinherited

recenters the view

Definition at line 915 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, and GUIPerspectiveChanger::setViewport().

Referenced by GUISettingsHandler::applyViewport(), GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().

Here is the caller graph for this function:

◆ remove() [1/2]

void GUISUMOAbstractView::remove ( GUIDialog_EditViewport )
inherited

remove viewport

Definition at line 1635 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myGUIDialogEditViewport.

Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().

Here is the caller graph for this function:

◆ remove() [2/2]

void GUISUMOAbstractView::remove ( GUIDialog_ViewSettings )
inherited

remove view settings

Definition at line 1641 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myGUIDialogViewSettings.

◆ removeAdditionalGLVisualisation()

bool GUISUMOAbstractView::removeAdditionalGLVisualisation ( GUIGlObject *const  which)
inherited

Removes an object from the list of objects that show additional things.

Parameters
[in]whichThe object to remove
Returns
True if the object was known, false otherwise
See also
GUIGlObject::drawGLAdditional

Definition at line 1866 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().

Here is the caller graph for this function:

◆ replacePopup()

void GUISUMOAbstractView::replacePopup ( GUIGLObjectPopupMenu popUp)
inherited

replace PopUp

Definition at line 1031 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUIPerspectiveChanger::onRightBtnRelease(), and GUIGLObjectPopupMenu::removePopupFromObject().

Referenced by GUICursorDialog::onCmdOpenPropertiesPopUp().

Here is the caller graph for this function:

◆ retrieveBreakpoints()

const std::vector< SUMOTime > GUIViewTraffic::retrieveBreakpoints ( ) const
overridevirtual

retrieve breakpoints from the current runThread

Reimplemented from GUISUMOAbstractView.

Definition at line 725 of file GUIViewTraffic.cpp.

References GUISUMOAbstractView::myApp, and GUIMainWindow::retrieveBreakpoints().

◆ saveFrame()

void GUIViewTraffic::saveFrame ( const std::string &  destFile,
FXColor *  buf 
)
overridevirtual

Adds a frame to a video snapshot which will be initialized if necessary.

Reimplemented from GUISUMOAbstractView.

Definition at line 689 of file GUIViewTraffic.cpp.

References GUIMainWindow::getDelay(), GUISUMOAbstractView::myApp, and UNUSED_PARAMETER.

◆ screenPos2NetPos()

Position GUISUMOAbstractView::screenPos2NetPos ( int  x,
int  y 
) const
inherited

Translate screen position to network position.

Definition at line 224 of file GUISUMOAbstractView.cpp.

References DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GUISUMOAbstractView::myChanger, Position::rotateAround2D(), Boundary::xmin(), and Boundary::ymin().

Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::getPositionInformation().

Here is the caller graph for this function:

◆ setBreakpoints()

void GUISUMOAbstractView::setBreakpoints ( const std::vector< SUMOTime > &  breakpoints)
inherited

Sets the breakpoints of the parent application.

Definition at line 1938 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myApp, and GUIMainWindow::setBreakpoints().

Referenced by GUIDialog_ViewSettings::loadSettings().

Here is the caller graph for this function:

◆ setColorScheme()

◆ setDelay()

void GUISUMOAbstractView::setDelay ( double  delay)
inherited

Sets the delay of the parent application.

Definition at line 1932 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myApp, and GUIMainWindow::setDelay().

Referenced by GUIDialog_ViewSettings::loadSettings().

Here is the caller graph for this function:

◆ setViewportFromToRot()

void GUISUMOAbstractView::setViewportFromToRot ( const Position lookFrom,
const Position lookAt,
double  rotation 
)
virtualinherited

◆ setWindowCursorPosition()

void GUISUMOAbstractView::setWindowCursorPosition ( FXint  x,
FXint  y 
)
inherited

Returns the gl-id of the object under the given coordinates.

Definition at line 968 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myMouseHotspotX, GUISUMOAbstractView::myMouseHotspotY, GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.

Referenced by GUIDanielPerspectiveChanger::onMouseMove().

Here is the caller graph for this function:

◆ showLaneReachability()

long GUIViewTraffic::showLaneReachability ( GUILane lane,
FXObject *  menu,
FXSelector   
)
static

◆ showToolTipFor()

bool GUISUMOAbstractView::showToolTipFor ( const GUIGlID  idToolTip)
protectedinherited

invokes the tooltip for the given object

Definition at line 580 of file GUISUMOAbstractView.cpp.

References GUIGlChildWindow::getGUIMainWindowParent(), GUIGlObjectStorage::getObjectBlocking(), GUIMainWindow::getStaticTooltipView(), GUIGlObjectStorage::gIDStorage, MFXStaticToolTip::hideStaticToolTip(), GUIGlObject::INVALID_ID, GUISUMOAbstractView::myGlChildWindowParent, and MFXStaticToolTip::showStaticToolTip().

Referenced by GUISUMOAbstractView::paintGL().

Here is the caller graph for this function:

◆ showViewportEditor()

void GUISUMOAbstractView::showViewportEditor ( )
virtualinherited

◆ showViewschemeEditor()

void GUISUMOAbstractView::showViewschemeEditor ( )
inherited

show viewsscheme editor

Definition at line 1560 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myGUIDialogViewSettings, GUISUMOAbstractView::myVisualizationSettings, GUIDialog_ViewSettings::setCurrent(), and GUIDialog_ViewSettings::show().

Referenced by GNEApplicationWindow::onCmdEditViewScheme(), and GUIGlChildWindow::onCmdEditViewScheme().

Here is the caller graph for this function:

◆ snapToActiveGrid()

◆ startTrack()

void GUIViewTraffic::startTrack ( int  id)
overridevirtual

Starts vehicle tracking.

Parameters
[in]idThe glID of the vehicle to track

Reimplemented from GUISUMOAbstractView.

Definition at line 367 of file GUIViewTraffic.cpp.

References GUIBaseVehicle::addActiveAddVisualisation(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, myTrackedID, and GUIBaseVehicle::VO_TRACK.

◆ stopTrack()

void GUIViewTraffic::stopTrack ( )
overridevirtual

Stops vehicle tracking.

Reimplemented from GUISUMOAbstractView.

Definition at line 380 of file GUIViewTraffic.cpp.

References GUIGlObject::INVALID_ID, and myTrackedID.

Referenced by onDoubleClicked().

Here is the caller graph for this function:

◆ updatePositionInformationLabel()

void GUISUMOAbstractView::updatePositionInformationLabel ( ) const
protectedvirtualinherited

◆ updateToolTip()

void GUISUMOAbstractView::updateToolTip ( )
inherited

A method that updates the tooltip.

Definition at line 191 of file GUISUMOAbstractView.cpp.

References GUIGlChildWindow::getGUIMainWindowParent(), GUIMainWindow::getStaticTooltipView(), MFXStaticToolTip::isStaticToolTipEnabled(), and GUISUMOAbstractView::myGlChildWindowParent.

Referenced by GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().

Here is the caller graph for this function:

◆ updateViewportValues()

void GUISUMOAbstractView::updateViewportValues ( )
virtualinherited

update the viewport chooser with the current view values

Definition at line 1583 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGUIDialogEditViewport, and GUIDialog_EditViewport::setValues().

Referenced by GUISUMOAbstractView::getViewportEditor().

Here is the caller graph for this function:

◆ waitForSnapshots()

void GUISUMOAbstractView::waitForSnapshots ( const SUMOTime  snapshotTime)
inherited

◆ zoom2Pos()

void GUISUMOAbstractView::zoom2Pos ( Position camera,
Position lookAt,
double  zoom 
)
virtualinherited

zoom interface for 3D view

Definition at line 292 of file GUISUMOAbstractView.cpp.

Referenced by GUIDialog_EditViewport::onCmdChanged().

Here is the caller graph for this function:

Field Documentation

◆ myAdditionallyDrawn

◆ myAmInitialised

bool GUISUMOAbstractView::myAmInitialised = false
protectedinherited

◆ myApp

◆ myChanger

◆ myClickedPopupPosition

Position GUISUMOAbstractView::myClickedPopupPosition = Position::INVALID
protectedinherited

◆ myCurrentObjectsDialog

std::vector<GUIGlObject*> GUISUMOAbstractView::myCurrentObjectsDialog
protectedinherited

vector with current objects dialog

Definition at line 587 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::destroyPopup(), GNEViewNet::drawTemporalRoundabout(), and GUISUMOAbstractView::openObjectDialog().

◆ myDecals

std::vector<Decal> GUISUMOAbstractView::myDecals
protectedinherited

◆ myDecalsLockMutex

FXMutex GUISUMOAbstractView::myDecalsLockMutex
protectedinherited

The mutex to use before accessing the decals list in order to avoid thread conflicts.

Definition at line 611 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::getDecalsLockMutex().

◆ myFrameDrawTime

long GUISUMOAbstractView::myFrameDrawTime = 0
protectedinherited

counter for measuring rendering time

Definition at line 631 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getFPS(), and GUISUMOAbstractView::paintGL().

◆ myGlChildWindowParent

◆ myGrid

const SUMORTree* GUISUMOAbstractView::myGrid
protectedinherited

◆ myGUIDialogEditViewport

◆ myGUIDialogViewSettings

GUIDialog_ViewSettings* GUISUMOAbstractView::myGUIDialogViewSettings = nullptr
protectedinherited

◆ myInEditMode

bool GUISUMOAbstractView::myInEditMode = false
protectedinherited

Information whether too-tip informations shall be generated.

Definition at line 572 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::isInEditMode().

◆ myMouseHotspotX

int GUISUMOAbstractView::myMouseHotspotX
protectedinherited

Offset to the mouse-hotspot from the mouse position.

Definition at line 575 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMouseHotspotY

int GUISUMOAbstractView::myMouseHotspotY
protectedinherited

Definition at line 575 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myPanning

bool GUISUMOAbstractView::myPanning = false
protectedinherited

◆ myPolyDrawLock

FXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotectedinherited

poly draw lock

Definition at line 625 of file GUISUMOAbstractView.h.

◆ myPopup

◆ myPopupPosition

Position GUISUMOAbstractView::myPopupPosition = Position(0, 0)
protectedinherited

◆ mySnapshotCondition

FXCondition GUISUMOAbstractView::mySnapshotCondition
protectedinherited

the semaphore when waiting for snapshots to finish

Definition at line 622 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().

◆ mySnapshots

std::map<SUMOTime, std::vector<std::tuple<std::string, int, int> > > GUISUMOAbstractView::mySnapshots
protectedinherited

◆ mySnapshotsMutex

FXMutex GUISUMOAbstractView::mySnapshotsMutex
protectedinherited

The mutex to use before accessing the decals list in order to avoid thread conflicts.

Definition at line 619 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().

◆ myTLSGame

bool GUIViewTraffic::myTLSGame
private

whether game mode was set to 'tls'

Definition at line 152 of file GUIViewTraffic.h.

Referenced by onGamingClick().

◆ myTrackedID

GUIGlID GUIViewTraffic::myTrackedID
private

Definition at line 149 of file GUIViewTraffic.h.

Referenced by getTrackedID(), startTrack(), and stopTrack().

◆ myVisualizationSettings

GUIVisualizationSettings* GUISUMOAbstractView::myVisualizationSettings
protectedinherited

visualization settings

Definition at line 590 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::applyGLTransform(), buildViewToolBars(), GNEViewNet::buildViewToolBars(), GUISUMOAbstractView::displayLegends(), GNEViewNet::doPaintGL(), doPaintGL(), GNEViewNet::drawGLElements(), GNEViewNet::drawGrid(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GUISUMOAbstractView::editVisualisationSettings(), GUISUMOAbstractView::filterInternalLanes(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::makeSnapshot(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditWalkingAreaShape(), onCmdShowReachability(), GNEViewNet::onCmdToggleDrawJunctionShape(), GNEViewNet::onCmdToggleShowConnections(), GNEViewNet::onCmdToggleShowGrid(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::paintGLGrid(), GNEViewNet::recalculateBoundaries(), GNEViewNet::saveVisualizationSettings(), GNEViewNet::setColorScheme(), setColorScheme(), GNEViewNet::setSelectorFrameScale(), GUISUMOAbstractView::showViewschemeEditor(), GUISUMOAbstractView::snapToActiveGrid(), GNEViewNet::updateObjectsInBoundary(), GNEViewNet::updateObjectsInPosition(), and GUISUMOAbstractView::~GUISUMOAbstractView().

◆ myWindowCursorPositionX

FXint GUISUMOAbstractView::myWindowCursorPositionX
protectedinherited

◆ myWindowCursorPositionY

FXint GUISUMOAbstractView::myWindowCursorPositionY
protectedinherited

◆ SENSITIVITY


The documentation for this class was generated from the following files: