SUMO - Simulation of Urban MObility
GUIViewTraffic Class Reference

#include <GUIViewTraffic.h>

Inheritance diagram for GUIViewTraffic:
Inheritance graph
Collaboration diagram for GUIViewTraffic:
Collaboration graph

Public Member Functions

void addDecals (const std::vector< Decal > &decals)
 add decals More...
 
void buildColorRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType)
 recalibrate color scheme according to the current value range More...
 
virtual void buildViewToolBars (GUIGlChildWindow &)
 builds the view toolbars More...
 
virtual void centerTo (GUIGlID id, bool applyZoom, double zoomDist=20)
 centers to the chosen artifact More...
 
void centerTo (const Boundary &bound)
 centers to the chosen artifact More...
 
void checkSnapshots ()
 Checks whether it is time for a snapshot. More...
 
virtual void copyViewportTo (GUISUMOAbstractView *view)
 copy the viewport to the given view More...
 
void destroyPopup ()
 destoys the popup More...
 
void endSnapshot ()
 Ends a video snapshot. More...
 
GUIPerspectiveChangergetChanger () const
 get changer More...
 
FXComboBox & getColoringSchemesCombo ()
 get coloring schemes combo More...
 
SUMOTime getCurrentTimeStep () const
 get the current simulation time More...
 
double getDelay () const
 Returns the delay of the parent application. More...
 
double getGridHeight () const
 get grid Height More...
 
double getGridWidth () const
 get grid width More...
 
const PositiongetPopupPosition () const
 get position of current popup More...
 
Position getPositionInformation () const
 Returns the cursor's x/y position within the network. More...
 
GUIGlID getTrackedID () const
 Returns the id of the tracked vehicle (-1 if none) More...
 
GUIDialog_EditViewportgetViewportEditor ()
 get the viewport and create it on first access More...
 
Boundary getVisibleBoundary () const
 get visible boundary More...
 
GUIVisualizationSettingsgetVisualisationSettings () const
 get visualitation settings More...
 
GUIVisualizationSettingsgetVisualisationSettings ()
 get visualisation settings More...
 
 GUIViewTraffic (FXComposite *p, GUIMainWindow &app, GUISUMOViewParent *parent, GUINet &net, FXGLVisual *glVis, FXGLCanvas *share)
 constructor 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 *)
 
long onCmdCloseEdge (FXObject *, FXSelector, void *)
 
long onCmdCloseLane (FXObject *, FXSelector, void *)
 interaction with the simulation More...
 
long onDoubleClicked (FXObject *, FXSelector, void *)
 
void onGamingClick (Position pos)
 handle mouse click in gaming mode More...
 
virtual void openObjectDialog ()
 
double p2m (double pixel) const
 pixels-to-meters conversion method More...
 
virtual void recenterView ()
 recenters the view More...
 
void remove (GUIDialog_EditViewport *)
 remove viewport More...
 
void remove (GUIDialog_ViewSettings *)
 remove view settings More...
 
const std::vector< SUMOTimeretrieveBreakpoints () const
 retrieve breakpoints from the current runThread More...
 
void saveFrame (const std::string &destFile, FXColor *buf)
 Adds a frame to a video snapshot which will be initialized if neccessary. More...
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
bool setColorScheme (const std::string &name)
 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 information whether rotation is allowd. More...
 
void showToolTips (bool val)
 show tool tips More...
 
virtual void showViewportEditor ()
 show viewport editor More...
 
void showViewschemeEditor ()
 show viewsscheme editor More...
 
Position snapToActiveGrid (const Position &pos) const
 Returns a position that is mapped to the closest grid point if the grid is active. More...
 
void startTrack (int id)
 Starts vehicle tracking. More...
 
void stopTrack ()
 Stops vehicle tracking. More...
 
void updateToolTip ()
 A method that updates the tooltip. More...
 
virtual ~GUIViewTraffic ()
 destructor More...
 
virtual long onConfigure (FXObject *, FXSelector, void *)
 mouse functions More...
 
virtual long onPaint (FXObject *, FXSelector, void *)
 
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 onRightBtnPress (FXObject *, FXSelector, void *)
 
virtual long onRightBtnRelease (FXObject *, FXSelector, void *)
 
virtual long onMouseWheel (FXObject *, FXSelector, void *)
 
virtual long onMouseMove (FXObject *, FXSelector, void *)
 
virtual long onMouseLeft (FXObject *, FXSelector, void *)
 
virtual long onKeyPress (FXObject *o, FXSelector sel, void *data)
 keyboard functions More...
 
virtual long onKeyRelease (FXObject *o, FXSelector sel, void *data)
 
Dealing with snapshots
void addSnapshot (SUMOTime time, const std::string &file, const int width=-1, const int height=-1)
 Sets the snapshot time to file map. More...
 
std::string makeSnapshot (const std::string &destFile, const int width=-1, const int height=-1)
 Takes a snapshots and writes it into the given file. More...
 
void waitForSnapshots (const SUMOTime snapshotTime)
 
Additional visualisations
bool addAdditionalGLVisualisation (const GUIGlObject *const which)
 Adds an object to call its additional visualisation method. More...
 
bool removeAdditionalGLVisualisation (const 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...
 

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...
 
FXImage * checkGDALImage (Decal &d)
 check whether we can read image data or position with gdal More...
 
void displayLegend ()
 a line with ticks, and the length information. More...
 
virtual void doInit ()
 doInit More...
 
int doPaintGL (int mode, const Boundary &bound)
 paint GL More...
 
void drawDecals ()
 Draws the stored decals. 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...
 
GUILanegetLaneUnderCursor ()
 
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< GUIGlIDgetObjectstUnderCursor ()
 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...
 
 GUIViewTraffic ()
 
void paintGL ()
 performs the painting of the simulation More...
 
void paintGLGrid ()
 paints a grid More...
 
void showToolTipFor (const GUIGlID id)
 invokes the tooltip for the given object More...
 
void updatePositionInformation () const
 update position information More...
 

Protected Attributes

std::map< const GUIGlObject *, int > myAdditionallyDrawn
 List of objects for which GUIGlObject::drawGLAdditional is called. More...
 
bool myAmInitialised
 Internal information whether doInit() was called. More...
 
GUIMainWindowmyApp
 The application. More...
 
GUIPerspectiveChangermyChanger
 The perspective changer. More...
 
SUMORTreemyGrid
 The visualization speed-up. More...
 
bool myInEditMode
 Information whether too-tip informations shall be generated. More...
 
int myMouseHotspotX
 Offset to the mouse-hotspot from the mouse position. More...
 
int myMouseHotspotY
 
GUIGlChildWindowmyParent
 The parent window. More...
 
MFXMutex myPolyDrawLock
 poly draw lock More...
 
GUIGLObjectPopupMenumyPopup
 The current popup-menu. More...
 
Position myPopupPosition
 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...
 
bool myUseToolTips
 use tool tips More...
 
GUIDialog_EditViewportmyViewportChooser
 viewport chooser More...
 
GUIDialog_ViewSettingsmyVisualizationChanger
 Visualization changer. More...
 
GUIVisualizationSettingsmyVisualizationSettings
 visualization settings More...
 
FXint myWindowCursorPositionX
 Position of the cursor relative to the window. More...
 
FXint myWindowCursorPositionY
 
Optionally shown decals

The list of decals to show

std::vector< DecalmyDecals
 
MFXMutex myDecalsLock
 The mutex to use before accessing the decals list in order to avoid thread conflicts. More...
 

Private Attributes

GUIGlID myTrackedID
 

Detailed Description

Microsocopic view at the simulation

Definition at line 55 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 80 of file GUIViewTraffic.cpp.

◆ ~GUIViewTraffic()

GUIViewTraffic::~GUIViewTraffic ( )
virtual

destructor

Definition at line 94 of file GUIViewTraffic.cpp.

References endSnapshot().

◆ GUIViewTraffic() [2/2]

GUIViewTraffic::GUIViewTraffic ( )
inlineprotected

Definition at line 131 of file GUIViewTraffic.h.

Member Function Documentation

◆ addAdditionalGLVisualisation()

bool GUISUMOAbstractView::addAdditionalGLVisualisation ( const 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 1383 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ addDecals()

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

◆ addSnapshot()

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

Sets the snapshot time to file map.

Parameters
[in]snapsThe snapshots to take at certain times

Definition at line 909 of file GUISUMOAbstractView.cpp.

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

Referenced by GUISUMOAbstractView::buildViewToolBars(), checkSnapshots(), TraCIServerAPI_GUI::processSet(), and GUISettingsHandler::setSnapshots().

◆ applyGLTransform()

Boundary GUISUMOAbstractView::applyGLTransform ( bool  fixRatio = true)
protectedinherited

◆ buildColorRainbow()

◆ buildViewToolBars()

◆ centerTo() [1/2]

◆ centerTo() [2/2]

void GUISUMOAbstractView::centerTo ( const Boundary bound)
inherited

centers to the chosen artifact

Definition at line 653 of file GUISUMOAbstractView.cpp.

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

◆ checkGDALImage()

◆ checkSnapshots()

void GUIViewTraffic::checkSnapshots ( )
virtual

Checks whether it is time for a snapshot.

Reimplemented from GUISUMOAbstractView.

Definition at line 443 of file GUIViewTraffic.cpp.

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

◆ copyViewportTo()

◆ destroyPopup()

◆ displayLegend()

void GUISUMOAbstractView::displayLegend ( )
protectedinherited

◆ doInit()

void GUISUMOAbstractView::doInit ( )
protectedvirtualinherited

doInit

Reimplemented in GNEViewNet.

Definition at line 260 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::onConfigure(), and GUISUMOAbstractView::retrieveBreakpoints().

◆ doPaintGL()

◆ drawDecals()

◆ endSnapshot()

void GUIViewTraffic::endSnapshot ( )
virtual

Ends a video snapshot.

Reimplemented from GUISUMOAbstractView.

Definition at line 432 of file GUIViewTraffic.cpp.

Referenced by ~GUIViewTraffic().

◆ getChanger()

◆ getColoringSchemesCombo()

FXComboBox & GUISUMOAbstractView::getColoringSchemesCombo ( )
inherited

◆ getCurrentTimeStep()

SUMOTime GUIViewTraffic::getCurrentTimeStep ( ) const
virtual

get the current simulation time

Reimplemented from GUISUMOAbstractView.

Definition at line 348 of file GUIViewTraffic.cpp.

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

Referenced by checkSnapshots(), and onGamingClick().

◆ getDelay()

double GUISUMOAbstractView::getDelay ( ) const
inherited

Returns the delay of the parent application.

Definition at line 1455 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

◆ getGridHeight()

double GUISUMOAbstractView::getGridHeight ( ) const
inherited

◆ getGridWidth()

double GUISUMOAbstractView::getGridWidth ( ) const
inherited

◆ getGUIGlObjectsAtPosition()

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

◆ getGUIGlObjectsUnderCursor()

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

◆ getLaneUnderCursor()

◆ getObjectAtPosition()

◆ getObjectsAtPosition()

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

◆ getObjectsInBoundary()

◆ getObjectstUnderCursor()

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

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

Definition at line 323 of file GUISUMOAbstractView.cpp.

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

Referenced by GUISUMOAbstractView::retrieveBreakpoints().

◆ getObjectUnderCursor()

GUIGlID GUISUMOAbstractView::getObjectUnderCursor ( )
protectedinherited

◆ getPopupPosition()

◆ getPositionInformation()

Position GUISUMOAbstractView::getPositionInformation ( ) const
inherited

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

Definition at line 187 of file GUISUMOAbstractView.cpp.

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

Referenced by GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEViewNet::SelectingArea::beginRectangleSelection(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::MoveSingleElementValues::calculateOffsetMovement(), GNEViewNet::MoveSingleElementValues::calculatePolyValues(), GNEViewNet::MoveSingleElementValues::calculateTAZValues(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNEPoly::drawGL(), GNEEdge::drawGL(), GNEViewNet::drawTemporalDrawShape(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GNEFrame::NeteditAttributes::getNeteditAttributesAndValues(), GUISUMOAbstractView::getObjectstUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPoly::mouseOverObject(), GNEJunction::mouseOverObject(), GNEViewNet::SelectingArea::moveRectangleSelection(), GNEViewNet::MoveMultipleElementValues::moveSelection(), GUIDanielPerspectiveChanger::onKeyPress(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::openObjectDialog(), GNEViewNet::openObjectDialog(), GNEDeleteFrame::removeAttributeCarrier(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updatePositionInformation().

◆ getTrackedID()

GUIGlID GUIViewTraffic::getTrackedID ( ) const
virtual

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

Returns
The glID of the vehicle to track

Reimplemented from GUISUMOAbstractView.

Definition at line 300 of file GUIViewTraffic.cpp.

References myTrackedID.

◆ getViewportEditor()

◆ getVisibleBoundary()

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const
inherited

◆ getVisualisationSettings() [1/2]

◆ getVisualisationSettings() [2/2]

GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( )
inherited

get visualisation settings

Definition at line 233 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationSettings.

◆ 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 1411 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUISUMOAbstractView::buildColorRainbow().

◆ isInEditMode()

bool GUISUMOAbstractView::isInEditMode ( )
inherited

returns true, if the edit button was pressed

Definition at line 166 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myInEditMode.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ m2p()

double GUISUMOAbstractView::m2p ( double  meter) const
inherited

◆ makeCurrent()

◆ makeSnapshot()

std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile,
const int  width = -1,
const int  height = -1 
)
inherited

◆ onCmdAddRerouter()

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

◆ onCmdCloseEdge()

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

◆ onCmdCloseLane()

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

◆ onConfigure()

◆ onDoubleClicked()

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

◆ onGamingClick()

◆ onKeyPress()

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

◆ onKeyRelease()

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

◆ onLeftBtnPress()

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

◆ onLeftBtnRelease()

◆ onMiddleBtnPress()

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

Definition at line 770 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMiddleBtnRelease()

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

Definition at line 776 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMouseLeft()

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

Definition at line 846 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMouseMove()

◆ onMouseWheel()

◆ onPaint()

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

◆ onRightBtnPress()

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

◆ onRightBtnRelease()

◆ openObjectDialog()

◆ p2m()

◆ paintGL()

◆ paintGLGrid()

◆ recenterView()

◆ remove() [1/2]

void GUISUMOAbstractView::remove ( GUIDialog_EditViewport )
inherited

remove viewport

Definition at line 1205 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myViewportChooser.

Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().

◆ remove() [2/2]

void GUISUMOAbstractView::remove ( GUIDialog_ViewSettings )
inherited

remove view settings

Definition at line 1211 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationChanger.

◆ removeAdditionalGLVisualisation()

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

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

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

Definition at line 1395 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ retrieveBreakpoints()

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

retrieve breakpoints from the current runThread

Reimplemented from GUISUMOAbstractView.

Definition at line 454 of file GUIViewTraffic.cpp.

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

◆ saveFrame()

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

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

Reimplemented from GUISUMOAbstractView.

Definition at line 418 of file GUIViewTraffic.cpp.

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

◆ screenPos2NetPos()

◆ setColorScheme()

◆ setDelay()

void GUISUMOAbstractView::setDelay ( double  delay)
inherited

Sets the delay of the parent application.

Definition at line 1461 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::loadSettings().

◆ setViewportFromToRot()

◆ setWindowCursorPosition()

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

Returns the information whether rotation is allowd.

Note
disabled Returns the gl-id of the object under the given coordinates

Definition at line 667 of file GUISUMOAbstractView.cpp.

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

Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUIDanielPerspectiveChanger::onMouseMove().

◆ showToolTipFor()

◆ showToolTips()

void GUISUMOAbstractView::showToolTips ( bool  val)
inherited

◆ showViewportEditor()

◆ showViewschemeEditor()

◆ snapToActiveGrid()

◆ startTrack()

void GUIViewTraffic::startTrack ( int  id)
virtual

Starts vehicle tracking.

Parameters
[in]idThe glID of the vehicle to track

Reimplemented from GUISUMOAbstractView.

Definition at line 288 of file GUIViewTraffic.cpp.

References myTrackedID.

◆ stopTrack()

void GUIViewTraffic::stopTrack ( )
virtual

Stops vehicle tracking.

Reimplemented from GUISUMOAbstractView.

Definition at line 294 of file GUIViewTraffic.cpp.

References GUIGlObject::INVALID_ID, and myTrackedID.

Referenced by onDoubleClicked().

◆ updatePositionInformation()

◆ updateToolTip()

void GUISUMOAbstractView::updateToolTip ( )
inherited

◆ waitForSnapshots()

void GUISUMOAbstractView::waitForSnapshots ( const SUMOTime  snapshotTime)
inherited

Field Documentation

◆ myAdditionallyDrawn

std::map<const GUIGlObject*, int> GUISUMOAbstractView::myAdditionallyDrawn
protectedinherited

◆ myAmInitialised

bool GUISUMOAbstractView::myAmInitialised
protectedinherited

◆ myApp

◆ myChanger

◆ myDecals

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

◆ myDecalsLock

MFXMutex GUISUMOAbstractView::myDecalsLock
protectedinherited

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

Definition at line 447 of file GUISUMOAbstractView.h.

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

◆ myGrid

◆ myInEditMode

bool GUISUMOAbstractView::myInEditMode
protectedinherited

Information whether too-tip informations shall be generated.

Definition at line 412 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 415 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMouseHotspotY

int GUISUMOAbstractView::myMouseHotspotY
protectedinherited

Definition at line 415 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myParent

GUIGlChildWindow* GUISUMOAbstractView::myParent
protectedinherited

The parent window.

Definition at line 403 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getColoringSchemesCombo().

◆ myPolyDrawLock

MFXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotectedinherited

poly draw lock

Definition at line 460 of file GUISUMOAbstractView.h.

◆ myPopup

◆ myPopupPosition

Position GUISUMOAbstractView::myPopupPosition
protectedinherited

◆ mySnapshotCondition

FXCondition GUISUMOAbstractView::mySnapshotCondition
protectedinherited

the semaphore when waiting for snapshots to finish

Definition at line 457 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 454 of file GUISUMOAbstractView.h.

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

◆ myTrackedID

GUIGlID GUIViewTraffic::myTrackedID
private

Definition at line 124 of file GUIViewTraffic.h.

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

◆ myUseToolTips

bool GUISUMOAbstractView::myUseToolTips
protectedinherited

◆ myViewportChooser

◆ myVisualizationChanger

GUIDialog_ViewSettings* GUISUMOAbstractView::myVisualizationChanger
protectedinherited

◆ myVisualizationSettings

◆ myWindowCursorPositionX

FXint GUISUMOAbstractView::myWindowCursorPositionX
protectedinherited

◆ myWindowCursorPositionY

FXint GUISUMOAbstractView::myWindowCursorPositionY
protectedinherited

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