SUMO - Simulation of Urban MObility
GUISUMOAbstractView Class Reference

#include <GUISUMOAbstractView.h>

Inheritance diagram for GUISUMOAbstractView:
Inheritance graph
Collaboration diagram for GUISUMOAbstractView:
Collaboration graph

Data Structures

struct  Decal
 A decal (an image) that can be shown. More...
 

Public Member Functions

void addDecals (const std::vector< Decal > &decals)
 add decals More...
 
virtual void buildColorRainbow (GUIColorScheme &, int, GUIGlObjectType)
 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...
 
virtual void copyViewportTo (GUISUMOAbstractView *view)
 copy the viewport to the given view More...
 
void destroyPopup ()
 destoys the popup More...
 
GUIPerspectiveChangergetChanger () const
 get changer More...
 
FXComboBox & getColoringSchemesCombo ()
 get coloring schemes combo 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...
 
virtual GUIGlID getTrackedID () const
 get tracked id 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...
 
 GUISUMOAbstractView (FXComposite *p, GUIMainWindow &app, GUIGlChildWindow *parent, const SUMORTree &grid, 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...
 
virtual void onGamingClick (Position)
 on gaming click 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...
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
void setApplicationSnapshots (std::set< SUMOTime > *snapshots, FXMutex *lock)
 add snapshot synchronization More...
 
virtual bool setColorScheme (const std::string &)
 set color scheme More...
 
void setDelay (double delay)
 Sets the delay of the parent application. More...
 
virtual void setViewportFromTo (const Position &lookFrom, const Position &lookAt)
 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...
 
virtual void startTrack (int)
 star track More...
 
virtual void stopTrack ()
 stop track More...
 
void updateToolTip ()
 A method that updates the tooltip. More...
 
virtual ~GUISUMOAbstractView ()
 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 onDoubleClicked (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)
 Sets the snapshot time to file map. More...
 
std::string makeSnapshot (const std::string &destFile)
 Takes a snapshots and writes it into the given file. More...
 
virtual void saveFrame (const std::string &destFile, FXColor *buf)
 Adds a frame to a video snapshot which will be initialized if neccessary. More...
 
virtual void endSnapshot ()
 Ends a video snapshot. More...
 
virtual void checkSnapshots ()
 Checks whether it is time for a snapshot. More...
 
virtual SUMOTime getCurrentTimeStep () const
 get the current simulation time More...
 
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

void 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...
 
virtual int doPaintGL (int, const Boundary &)
 paint GL More...
 
void drawDecals ()
 Draws the stored decals. 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 (const Boundary &bound)
 returns the ids of all objects in the given boundary More...
 
GUIGlID getObjectUnderCursor ()
 returns the id of the object under the cursor using GL_SELECT More...
 
 GUISUMOAbstractView ()
 empty constructor More...
 
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...
 
std::set< SUMOTime > * myApplicationSnapshots
 
FXMutex * myApplicationSnapshotsLock
 
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...
 
std::map< SUMOTime, std::vector< std::string > > mySnapshots
 Snapshots. More...
 
MFXMutex mySnapshotsLock
 The mutex to use before accessing the decals list in order to avoid thread conficts. 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 conficts. More...
 

Detailed Description

This class is meant to be pure virtual later; It shall be the main class to inherit views of the simulation (micro- or macroscopic ones) from it.

Definition at line 80 of file GUISUMOAbstractView.h.

Constructor & Destructor Documentation

◆ GUISUMOAbstractView() [1/2]

GUISUMOAbstractView::GUISUMOAbstractView ( FXComposite *  p,
GUIMainWindow app,
GUIGlChildWindow parent,
const SUMORTree grid,
FXGLVisual *  glVis,
FXGLCanvas *  share 
)

◆ ~GUISUMOAbstractView()

◆ GUISUMOAbstractView() [2/2]

GUISUMOAbstractView::GUISUMOAbstractView ( )
inlineprotected

empty constructor

Definition at line 456 of file GUISUMOAbstractView.h.

Member Function Documentation

◆ addAdditionalGLVisualisation()

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

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

References myAdditionallyDrawn.

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

◆ addDecals()

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

◆ addSnapshot()

void GUISUMOAbstractView::addSnapshot ( SUMOTime  time,
const std::string &  file 
)

Sets the snapshot time to file map.

Parameters
[in]snapsThe snapshots to take at certain times

Definition at line 825 of file GUISUMOAbstractView.cpp.

References MFXMutex::lock(), myApplicationSnapshots, myApplicationSnapshotsLock, mySnapshots, mySnapshotsLock, and MFXMutex::unlock().

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

◆ applyGLTransform()

void GUISUMOAbstractView::applyGLTransform ( bool  fixRatio = true)
protected

applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections)

Definition at line 1319 of file GUISUMOAbstractView.cpp.

References Boundary::getHeight(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GLO_MAX, myChanger, Boundary::xmin(), and Boundary::ymin().

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

◆ buildColorRainbow()

virtual void GUISUMOAbstractView::buildColorRainbow ( GUIColorScheme ,
int  ,
GUIGlObjectType   
)
inlinevirtual

◆ buildViewToolBars()

◆ centerTo() [1/2]

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

◆ centerTo() [2/2]

void GUISUMOAbstractView::centerTo ( const Boundary bound)

centers to the chosen artifact

Definition at line 577 of file GUISUMOAbstractView.cpp.

References myChanger, and GUIPerspectiveChanger::setViewport().

◆ checkGDALImage()

◆ checkSnapshots()

void GUISUMOAbstractView::checkSnapshots ( )
virtual

◆ copyViewportTo()

void GUISUMOAbstractView::copyViewportTo ( GUISUMOAbstractView view)
virtual

◆ destroyPopup()

◆ displayLegend()

void GUISUMOAbstractView::displayLegend ( )
protected

a line with ticks, and the length information.

Definition at line 479 of file GUISUMOAbstractView.cpp.

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

Referenced by makeSnapshot(), and paintGL().

◆ doInit()

void GUISUMOAbstractView::doInit ( )
protectedvirtual

doInit

Reimplemented in GNEViewNet.

Definition at line 248 of file GUISUMOAbstractView.cpp.

Referenced by onConfigure().

◆ doPaintGL()

int GUISUMOAbstractView::doPaintGL ( int  ,
const Boundary  
)
protectedvirtual

paint GL

Reimplemented in GNEViewNet, and GUIViewTraffic.

Definition at line 242 of file GUISUMOAbstractView.cpp.

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

◆ drawDecals()

◆ endSnapshot()

virtual void GUISUMOAbstractView::endSnapshot ( )
inlinevirtual

◆ getChanger()

◆ getColoringSchemesCombo()

FXComboBox & GUISUMOAbstractView::getColoringSchemesCombo ( )

◆ getCurrentTimeStep()

SUMOTime GUISUMOAbstractView::getCurrentTimeStep ( ) const
virtual

get the current simulation time

Reimplemented in GUIViewTraffic.

Definition at line 1029 of file GUISUMOAbstractView.cpp.

Referenced by checkSnapshots(), and endSnapshot().

◆ getDelay()

double GUISUMOAbstractView::getDelay ( ) const

Returns the delay of the parent application.

Definition at line 1337 of file GUISUMOAbstractView.cpp.

References GUIMainWindow::getDelay(), and myApp.

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

◆ getGridHeight()

double GUISUMOAbstractView::getGridHeight ( ) const

get grid Height

Definition at line 1121 of file GUISUMOAbstractView.cpp.

References Boundary::getHeight(), and myGrid.

Referenced by buildColorRainbow(), checkGDALImage(), and GUIDialog_ViewSettings::onCmdEditTable().

◆ getGridWidth()

double GUISUMOAbstractView::getGridWidth ( ) const

get grid width

Definition at line 1115 of file GUISUMOAbstractView.cpp.

References Boundary::getWidth(), and myGrid.

Referenced by buildColorRainbow(), checkGDALImage(), and GUIDialog_ViewSettings::onCmdEditTable().

◆ getObjectAtPosition()

◆ getObjectsAtPosition()

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

◆ getObjectsInBoundary()

◆ getObjectUnderCursor()

GUIGlID GUISUMOAbstractView::getObjectUnderCursor ( )
protected

returns the id of the object under the cursor using GL_SELECT

Definition at line 305 of file GUISUMOAbstractView.cpp.

References getObjectAtPosition(), and getPositionInformation().

Referenced by GUIViewTraffic::getLaneUnderCursor(), GNEViewNet::onLeftBtnPress(), onLeftBtnPress(), GNEViewNet::onMouseMove(), openObjectDialog(), and paintGL().

◆ getPopupPosition()

◆ getPositionInformation()

◆ getTrackedID()

◆ getViewportEditor()

◆ getVisibleBoundary()

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const

get visible boundary

Definition at line 253 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::getViewport(), and myChanger.

Referenced by buildViewToolBars(), and TraCIServerAPI_GUI::processGet().

◆ getVisualisationSettings() [1/2]

GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( ) const

◆ getVisualisationSettings() [2/2]

GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( )

get visualisation settings

Definition at line 221 of file GUISUMOAbstractView.cpp.

References myVisualizationSettings.

◆ isAdditionalGLVisualisationEnabled()

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

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

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

Definition at line 1309 of file GUISUMOAbstractView.cpp.

References myAdditionallyDrawn.

Referenced by buildColorRainbow().

◆ isInEditMode()

bool GUISUMOAbstractView::isInEditMode ( )

returns true, if the edit button was pressed

Definition at line 165 of file GUISUMOAbstractView.cpp.

References myInEditMode.

Referenced by buildViewToolBars().

◆ m2p()

double GUISUMOAbstractView::m2p ( double  meter) const

◆ makeCurrent()

◆ makeSnapshot()

std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile)

◆ onConfigure()

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

◆ onDoubleClicked()

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

Definition at line 727 of file GUISUMOAbstractView.cpp.

Referenced by buildViewToolBars().

◆ onGamingClick()

void GUISUMOAbstractView::onGamingClick ( Position  )
virtual

on gaming click

Reimplemented in GUIViewTraffic.

Definition at line 1143 of file GUISUMOAbstractView.cpp.

Referenced by buildColorRainbow(), and onLeftBtnRelease().

◆ onKeyPress()

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

◆ onKeyRelease()

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

◆ onLeftBtnPress()

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

◆ onLeftBtnRelease()

long GUISUMOAbstractView::onLeftBtnRelease ( FXObject *  ,
FXSelector  ,
void *  data 
)
virtual

◆ onMiddleBtnPress()

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

Definition at line 694 of file GUISUMOAbstractView.cpp.

Referenced by buildViewToolBars().

◆ onMiddleBtnRelease()

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

Definition at line 700 of file GUISUMOAbstractView.cpp.

Referenced by buildViewToolBars().

◆ onMouseLeft()

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

Definition at line 762 of file GUISUMOAbstractView.cpp.

Referenced by buildViewToolBars().

◆ onMouseMove()

◆ onMouseWheel()

long GUISUMOAbstractView::onMouseWheel ( FXObject *  ,
FXSelector  ,
void *  data 
)
virtual

◆ onPaint()

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

◆ onRightBtnPress()

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

◆ onRightBtnRelease()

long GUISUMOAbstractView::onRightBtnRelease ( FXObject *  o,
FXSelector  sel,
void *  data 
)
virtual

◆ openObjectDialog()

◆ p2m()

double GUISUMOAbstractView::p2m ( double  pixel) const

◆ paintGL()

◆ paintGLGrid()

◆ recenterView()

void GUISUMOAbstractView::recenterView ( )
virtual

◆ remove() [1/2]

void GUISUMOAbstractView::remove ( GUIDialog_EditViewport )

remove viewport

Definition at line 1103 of file GUISUMOAbstractView.cpp.

References myViewportChooser.

Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().

◆ remove() [2/2]

void GUISUMOAbstractView::remove ( GUIDialog_ViewSettings )

remove view settings

Definition at line 1109 of file GUISUMOAbstractView.cpp.

References myVisualizationChanger.

◆ removeAdditionalGLVisualisation()

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

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

References myAdditionallyDrawn.

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

◆ saveFrame()

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

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

Reimplemented in GUIViewTraffic.

Definition at line 984 of file GUISUMOAbstractView.cpp.

References UNUSED_PARAMETER.

Referenced by buildViewToolBars(), and makeSnapshot().

◆ screenPos2NetPos()

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

◆ setApplicationSnapshots()

void GUISUMOAbstractView::setApplicationSnapshots ( std::set< SUMOTime > *  snapshots,
FXMutex *  lock 
)
inline

add snapshot synchronization

Definition at line 271 of file GUISUMOAbstractView.h.

References myApplicationSnapshots, and myApplicationSnapshotsLock.

Referenced by GUIApplicationWindow::openNewView().

◆ setColorScheme()

◆ setDelay()

void GUISUMOAbstractView::setDelay ( double  delay)

Sets the delay of the parent application.

Definition at line 1343 of file GUISUMOAbstractView.cpp.

References myApp, and GUIMainWindow::setDelay().

Referenced by GUIDialog_ViewSettings::loadSettings().

◆ setViewportFromTo()

◆ setWindowCursorPosition()

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

Returns the information whether rotation is allowd.

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

Definition at line 591 of file GUISUMOAbstractView.cpp.

References myMouseHotspotX, myMouseHotspotY, myWindowCursorPositionX, and myWindowCursorPositionY.

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

◆ showToolTipFor()

void GUISUMOAbstractView::showToolTipFor ( const GUIGlID  id)
protected

◆ showToolTips()

void GUISUMOAbstractView::showToolTips ( bool  val)

show tool tips

Definition at line 1085 of file GUISUMOAbstractView.cpp.

References myUseToolTips.

Referenced by endSnapshot(), and GUIGlChildWindow::onCmdShowToolTips().

◆ showViewportEditor()

◆ showViewschemeEditor()

◆ snapToActiveGrid()

Position GUISUMOAbstractView::snapToActiveGrid ( const Position pos) const

◆ startTrack()

void GUISUMOAbstractView::startTrack ( int  )
virtual

◆ stopTrack()

void GUISUMOAbstractView::stopTrack ( )
virtual

◆ updatePositionInformation()

void GUISUMOAbstractView::updatePositionInformation ( ) const
protected

◆ updateToolTip()

void GUISUMOAbstractView::updateToolTip ( )

Field Documentation

◆ myAdditionallyDrawn

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

◆ myAmInitialised

bool GUISUMOAbstractView::myAmInitialised
protected

Internal information whether doInit() was called.

Definition at line 420 of file GUISUMOAbstractView.h.

Referenced by onConfigure(), onPaint(), and openObjectDialog().

◆ myApp

◆ myApplicationSnapshots

std::set<SUMOTime>* GUISUMOAbstractView::myApplicationSnapshots
protected

Definition at line 442 of file GUISUMOAbstractView.h.

Referenced by addSnapshot(), checkSnapshots(), and setApplicationSnapshots().

◆ myApplicationSnapshotsLock

FXMutex* GUISUMOAbstractView::myApplicationSnapshotsLock
protected

Definition at line 446 of file GUISUMOAbstractView.h.

Referenced by addSnapshot(), checkSnapshots(), and setApplicationSnapshots().

◆ myChanger

◆ myDecals

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

◆ myDecalsLock

MFXMutex GUISUMOAbstractView::myDecalsLock
protected

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

Definition at line 437 of file GUISUMOAbstractView.h.

Referenced by drawDecals(), and showViewschemeEditor().

◆ myGrid

SUMORTree* GUISUMOAbstractView::myGrid
protected

The visualization speed-up.

Definition at line 396 of file GUISUMOAbstractView.h.

Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), getGridHeight(), getGridWidth(), makeSnapshot(), and recenterView().

◆ myInEditMode

bool GUISUMOAbstractView::myInEditMode
protected

Information whether too-tip informations shall be generated.

Definition at line 402 of file GUISUMOAbstractView.h.

Referenced by isInEditMode().

◆ myMouseHotspotX

int GUISUMOAbstractView::myMouseHotspotX
protected

Offset to the mouse-hotspot from the mouse position.

Definition at line 405 of file GUISUMOAbstractView.h.

Referenced by setWindowCursorPosition().

◆ myMouseHotspotY

int GUISUMOAbstractView::myMouseHotspotY
protected

Definition at line 405 of file GUISUMOAbstractView.h.

Referenced by setWindowCursorPosition().

◆ myParent

GUIGlChildWindow* GUISUMOAbstractView::myParent
protected

The parent window.

Definition at line 393 of file GUISUMOAbstractView.h.

Referenced by getColoringSchemesCombo().

◆ myPolyDrawLock

MFXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotected

poly draw lock

Definition at line 449 of file GUISUMOAbstractView.h.

◆ myPopup

GUIGLObjectPopupMenu* GUISUMOAbstractView::myPopup
protected

The current popup-menu.

Definition at line 408 of file GUISUMOAbstractView.h.

Referenced by destroyPopup(), onKeyPress(), onKeyRelease(), onMouseMove(), openObjectDialog(), and ~GUISUMOAbstractView().

◆ myPopupPosition

Position GUISUMOAbstractView::myPopupPosition
protected

The current popup-menu position.

Definition at line 411 of file GUISUMOAbstractView.h.

Referenced by destroyPopup(), getPopupPosition(), and openObjectDialog().

◆ mySnapshots

std::map<SUMOTime, std::vector<std::string> > GUISUMOAbstractView::mySnapshots
protected

Snapshots.

Definition at line 441 of file GUISUMOAbstractView.h.

Referenced by addSnapshot(), and checkSnapshots().

◆ mySnapshotsLock

MFXMutex GUISUMOAbstractView::mySnapshotsLock
protected

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

Definition at line 445 of file GUISUMOAbstractView.h.

Referenced by addSnapshot(), and checkSnapshots().

◆ myUseToolTips

bool GUISUMOAbstractView::myUseToolTips
protected

◆ myViewportChooser

GUIDialog_EditViewport* GUISUMOAbstractView::myViewportChooser
protected

viewport chooser

Definition at line 423 of file GUISUMOAbstractView.h.

Referenced by getViewportEditor(), onMouseMove(), remove(), showViewportEditor(), and ~GUISUMOAbstractView().

◆ myVisualizationChanger

GUIDialog_ViewSettings* GUISUMOAbstractView::myVisualizationChanger
protected

◆ myVisualizationSettings

◆ myWindowCursorPositionX

FXint GUISUMOAbstractView::myWindowCursorPositionX
protected

Position of the cursor relative to the window.

Definition at line 426 of file GUISUMOAbstractView.h.

Referenced by getPositionInformation(), and setWindowCursorPosition().

◆ myWindowCursorPositionY

FXint GUISUMOAbstractView::myWindowCursorPositionY
protected

Definition at line 426 of file GUISUMOAbstractView.h.

Referenced by getPositionInformation(), and setWindowCursorPosition().


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