![]() |
SUMO - Simulation of Urban MObility
|
#include <GUISUMOAbstractView.h>
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... | |
GUIPerspectiveChanger & | getChanger () 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 Position & | getPopupPosition () 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_EditViewport * | getViewportEditor () |
get the viewport and create it on first access More... | |
Boundary | getVisibleBoundary () const |
get visible boundary More... | |
GUIVisualizationSettings * | getVisualisationSettings () const |
get visualitation settings More... | |
GUIVisualizationSettings * | getVisualisationSettings () |
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< GUIGlID > | getObjectsAtPosition (Position pos, double radius) |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More... | |
std::vector< GUIGlID > | getObjectsInBoundary (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... | |
GUIMainWindow * | myApp |
The application. More... | |
std::set< SUMOTime > * | myApplicationSnapshots |
FXMutex * | myApplicationSnapshotsLock |
GUIPerspectiveChanger * | myChanger |
The perspective changer. More... | |
SUMORTree * | myGrid |
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 |
GUIGlChildWindow * | myParent |
The parent window. More... | |
MFXMutex | myPolyDrawLock |
poly draw lock More... | |
GUIGLObjectPopupMenu * | myPopup |
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_EditViewport * | myViewportChooser |
viewport chooser More... | |
GUIDialog_ViewSettings * | myVisualizationChanger |
Visualization changer. More... | |
GUIVisualizationSettings * | myVisualizationSettings |
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< Decal > | myDecals |
MFXMutex | myDecalsLock |
The mutex to use before accessing the decals list in order to avoid thread conficts. More... | |
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.
GUISUMOAbstractView::GUISUMOAbstractView | ( | FXComposite * | p, |
GUIMainWindow & | app, | ||
GUIGlChildWindow * | parent, | ||
const SUMORTree & | grid, | ||
FXGLVisual * | glVis, | ||
FXGLCanvas * | share | ||
) |
constructor
Definition at line 120 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gaming, GUICompleteSchemeStorage::getDefault(), gSchemeStorage, and GUICompleteSchemeStorage::setViewport().
|
virtual |
destructor
Definition at line 150 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), gSchemeStorage, myChanger, myDecals, myPopup, myViewportChooser, myVisualizationChanger, myVisualizationSettings, GUIVisualizationSettings::name, GUICompleteSchemeStorage::saveViewport(), and GUICompleteSchemeStorage::setDefault().
|
inlineprotected |
empty constructor
Definition at line 456 of file GUISUMOAbstractView.h.
bool GUISUMOAbstractView::addAdditionalGLVisualisation | ( | const GUIGlObject *const | which | ) |
Adds an object to call its additional visualisation method.
[in] | which | The object to add |
Definition at line 1281 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), buildColorRainbow(), and GUIVehicle::drawOutsideNetwork().
void GUISUMOAbstractView::addDecals | ( | const std::vector< Decal > & | decals | ) |
add decals
Definition at line 215 of file GUISUMOAbstractView.cpp.
References myDecals.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
void GUISUMOAbstractView::addSnapshot | ( | SUMOTime | time, |
const std::string & | file | ||
) |
Sets the snapshot time to file map.
[in] | snaps | The 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().
|
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().
|
inlinevirtual |
recalibrate color scheme according to the current value range
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 213 of file GUISUMOAbstractView.h.
References addAdditionalGLVisualisation(), destroyPopup(), getGridHeight(), getGridWidth(), getPopupPosition(), getTrackedID(), isAdditionalGLVisualisationEnabled(), onGamingClick(), removeAdditionalGLVisualisation(), startTrack(), and stopTrack().
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
|
inlinevirtual |
builds the view toolbars
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 90 of file GUISUMOAbstractView.h.
References addSnapshot(), centerTo(), copyViewportTo(), getChanger(), getVisibleBoundary(), isInEditMode(), m2p(), makeCurrent(), makeSnapshot(), onConfigure(), onDoubleClicked(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMiddleBtnPress(), onMiddleBtnRelease(), onMouseLeft(), onMouseMove(), onMouseWheel(), onPaint(), onRightBtnPress(), onRightBtnRelease(), openObjectDialog(), p2m(), recenterView(), saveFrame(), setViewportFromTo(), setWindowCursorPosition(), and updateToolTip().
Referenced by GUISUMOViewParent::init().
|
virtual |
centers to the chosen artifact
[in] | id | The id of the artifact to center to |
[in] | applyZoom | Whether to zoom in |
[in] | zoomDist | The distance in m to use for the zoom, values < 0 means: use the centeringBoundary |
Definition at line 560 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, myChanger, GUIPerspectiveChanger::setViewport(), GUIGlObjectStorage::unblockObject(), and updatePositionInformation().
Referenced by GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), buildViewToolBars(), GUIGLObjectPopupMenu::onCmdCenter(), GNEDeleteFrame::onCmdCenterChildItem(), GNEInspectorFrame::onCmdCenterItem(), paintGL(), TraCIServerAPI_GUI::processSet(), and GUIGlChildWindow::setView().
void GUISUMOAbstractView::centerTo | ( | const Boundary & | bound | ) |
centers to the chosen artifact
Definition at line 577 of file GUISUMOAbstractView.cpp.
References myChanger, and GUIPerspectiveChanger::setViewport().
|
protected |
check whether we can read image data or position with gdal
Definition at line 1154 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, getGridHeight(), getGridWidth(), GeoConvHelper::getProcessing(), GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::width, WRITE_MESSAGE, WRITE_WARNING, Position::x(), GeoConvHelper::x2cartesian(), and Position::y().
Referenced by drawDecals().
|
virtual |
Checks whether it is time for a snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 991 of file GUISUMOAbstractView.cpp.
References DELTA_T, getCurrentTimeStep(), joinToString(), MFXMutex::lock(), makeSnapshot(), myApplicationSnapshots, myApplicationSnapshotsLock, mySnapshots, mySnapshotsLock, toString(), MFXMutex::unlock(), and WRITE_WARNING.
Referenced by GUIViewTraffic::checkSnapshots(), endSnapshot(), onConfigure(), and GUISUMOViewParent::onSimStep().
|
virtual |
copy the viewport to the given view
Definition at line 1077 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), myChanger, and setViewportFromTo().
Referenced by buildViewToolBars(), and GUIApplicationWindow::openNewView().
void GUISUMOAbstractView::destroyPopup | ( | ) |
destoys the popup
Definition at line 641 of file GUISUMOAbstractView.cpp.
References myPopup, myPopupPosition, and Position::set().
Referenced by buildColorRainbow(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdReplaceJunction(), GNEViewNet::onCmdResetConnections(), GNEInternalLane::onDefault(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), and GNEViewNet::processClick().
|
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().
|
protectedvirtual |
doInit
Reimplemented in GNEViewNet.
Definition at line 248 of file GUISUMOAbstractView.cpp.
Referenced by onConfigure().
|
protectedvirtual |
paint GL
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 242 of file GUISUMOAbstractView.cpp.
Referenced by getObjectsInBoundary(), makeSnapshot(), and paintGL().
|
protected |
Draws the stored decals.
Definition at line 1233 of file GUISUMOAbstractView.cpp.
References GUITexturesHelper::add(), GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, checkGDALImage(), GUITexturesHelper::drawTexturedBox(), GUISUMOAbstractView::Decal::filename, GUITexturesHelper::getMaxTextureSize(), GUISUMOAbstractView::Decal::glID, GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::image, GUISUMOAbstractView::Decal::initialised, GUISUMOAbstractView::Decal::layer, MFXImageHelper::loadImage(), MFXMutex::lock(), myDecals, myDecalsLock, p2m(), GUISUMOAbstractView::Decal::rot, MFXImageHelper::scalePower2(), screenPos2NetPos(), GUISUMOAbstractView::Decal::screenRelative, GUISUMOAbstractView::Decal::skip2D, MFXMutex::unlock(), GUISUMOAbstractView::Decal::width, WRITE_ERROR, Position::x(), and Position::y().
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), and makeSnapshot().
|
inlinevirtual |
Ends a video snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 185 of file GUISUMOAbstractView.h.
References checkSnapshots(), getCurrentTimeStep(), getViewportEditor(), getVisualisationSettings(), setColorScheme(), showToolTips(), showViewportEditor(), and showViewschemeEditor().
Referenced by GUISUMOViewParent::onCmdMakeSnapshot().
GUIPerspectiveChanger & GUISUMOAbstractView::getChanger | ( | ) | const |
get changer
Definition at line 171 of file GUISUMOAbstractView.cpp.
References myChanger.
Referenced by GUISettingsHandler::applyViewport(), buildViewToolBars(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIApplicationWindow::onCmdNetedit(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), and GUIDialog_EditViewport::setValues().
FXComboBox & GUISUMOAbstractView::getColoringSchemesCombo | ( | ) |
get coloring schemes combo
Definition at line 1148 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), and myParent.
Referenced by GUISettingsHandler::addSettings(), GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
|
virtual |
get the current simulation time
Reimplemented in GUIViewTraffic.
Definition at line 1029 of file GUISUMOAbstractView.cpp.
Referenced by checkSnapshots(), and endSnapshot().
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().
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().
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().
returns the id of the object at position using GL_SELECT
Definition at line 311 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_LANE, GLO_POI, GLO_POLYGON, Boundary::grow(), GUIGlObjectStorage::unblockObject(), and GUIVisualizationSettings::UseMesoSim.
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), getObjectUnderCursor(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPOILaneAtPopupPosition(), and GNEViewNet::getPolygonAtPopupPosition().
|
protected |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 356 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by GNEViewNet::getEdgesAtPopupPosition().
|
protected |
returns the ids of all objects in the given boundary
Definition at line 384 of file GUISUMOAbstractView.cpp.
References applyGLTransform(), doPaintGL(), GUIVisualizationSettings::drawForSelecting, GUIPerspectiveChanger::getViewport(), myApp, myChanger, myVisualizationSettings, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), and toString().
Referenced by getObjectAtPosition(), getObjectsAtPosition(), GNEViewNet::mergeJunctions(), GNEViewNet::onCmdTransformPOI(), and GNEViewNet::onLeftBtnRelease().
|
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().
const Position & GUISUMOAbstractView::getPopupPosition | ( | ) | const |
get position of current popup
Definition at line 636 of file GUISUMOAbstractView.cpp.
References myPopupPosition.
Referenced by buildColorRainbow(), GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getEdgesAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPOILaneAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::onCmdDeleteGeometryPoint(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdSetEdgeEndpoint(), GNEViewNet::onCmdSetFirstGeometryPoint(), GNEViewNet::onCmdSplitEdge(), and GNEViewNet::onCmdSplitEdgeBidi().
Position GUISUMOAbstractView::getPositionInformation | ( | ) | const |
Returns the cursor's x/y position within the network.
Definition at line 186 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, myWindowCursorPositionY, and screenPos2NetPos().
Referenced by GNEAdditionalFrame::addAdditional(), GNEViewNet::doPaintGL(), GNEPoly::drawGL(), getObjectUnderCursor(), GUIEdge::getParameterWindow(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GUIDanielPerspectiveChanger::onKeyPress(), GNEViewNet::onLeftBtnPress(), onLeftBtnRelease(), GNEViewNet::onMouseMove(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), openObjectDialog(), GNEDeleteFrame::removeAttributeCarrier(), showToolTipFor(), and updatePositionInformation().
|
virtual |
get tracked id
Reimplemented in GUIViewTraffic.
Definition at line 1137 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_ID.
Referenced by buildColorRainbow(), GUIPerson::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), paintGL(), and TraCIServerAPI_GUI::processSet().
GUIDialog_EditViewport * GUISUMOAbstractView::getViewportEditor | ( | ) |
get the viewport and create it on first access
Definition at line 1050 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), myChanger, myViewportChooser, and GUIDialog_EditViewport::setValues().
Referenced by endSnapshot(), GUIDialog_ViewSettings::onCmdExportSetting(), and showViewportEditor().
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().
GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings | ( | ) | const |
get visualitation settings
Definition at line 1097 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
Referenced by GNEEdge::commitShapeChange(), endSnapshot(), GNELane::getPopUpMenu(), GUIApplicationWindow::onCmdEditChosen(), and TraCIServerAPI_GUI::processGet().
GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings | ( | ) |
get visualisation settings
Definition at line 221 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
bool GUISUMOAbstractView::isAdditionalGLVisualisationEnabled | ( | GUIGlObject *const | which | ) | const |
Check if an object is added in the additional GL visualitation.
[in] | which | The object to check |
Definition at line 1309 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by buildColorRainbow().
bool GUISUMOAbstractView::isInEditMode | ( | ) |
returns true, if the edit button was pressed
Definition at line 165 of file GUISUMOAbstractView.cpp.
References myInEditMode.
Referenced by buildViewToolBars().
double GUISUMOAbstractView::m2p | ( | double | meter | ) | const |
meter-to-pixels conversion method
Definition at line 542 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and myChanger.
Referenced by buildViewToolBars(), displayLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), and makeSnapshot().
FXbool GUISUMOAbstractView::makeCurrent | ( | ) |
A reimplementation due to some internal reasons.
Definition at line 598 of file GUISUMOAbstractView.cpp.
Referenced by buildViewToolBars(), GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getEdgesAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUIViewTraffic::getLaneUnderCursor(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPOILaneAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), makeSnapshot(), GNEViewNet::mergeJunctions(), onConfigure(), GNEViewNet::onLeftBtnPress(), onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::onMouseMove(), onPaint(), and openObjectDialog().
std::string GUISUMOAbstractView::makeSnapshot | ( | const std::string & | destFile | ) |
Takes a snapshots and writes it into the given file.
The format to use is determined from the extension. If compiled with ffmpeg and a video format is requested it will instantiate a video encoder.
[in] | destFile | The name of the file to write the snapshot into |
Definition at line 840 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), displayLegend(), GUIVisualizationSettings::dither, doPaintGL(), drawDecals(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), m2p(), makeCurrent(), myChanger, myGrid, myUseToolTips, myVisualizationSettings, paintGLGrid(), RGBColor::red(), saveFrame(), MFXImageHelper::saveImage(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showSizeLegend, FXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by buildViewToolBars(), GUIViewTraffic::checkSnapshots(), checkSnapshots(), GUIApplicationWindow::handleEvent_Screenshot(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().
|
virtual |
mouse functions
Definition at line 605 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), checkSnapshots(), doInit(), RGBColor::green(), makeCurrent(), myAmInitialised, myVisualizationSettings, and RGBColor::red().
Referenced by buildViewToolBars().
|
virtual |
Definition at line 727 of file GUISUMOAbstractView.cpp.
Referenced by buildViewToolBars().
|
virtual |
on gaming click
Reimplemented in GUIViewTraffic.
Definition at line 1143 of file GUISUMOAbstractView.cpp.
Referenced by buildColorRainbow(), and onLeftBtnRelease().
|
virtual |
keyboard functions
Reimplemented in GNEViewNet.
Definition at line 802 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, and GUIPerspectiveChanger::onKeyPress().
Referenced by buildViewToolBars(), GUISUMOViewParent::onKeyPress(), GNEViewNet::onKeyPress(), and GNEViewParent::onKeyPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 813 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, and GUIPerspectiveChanger::onKeyRelease().
Referenced by buildViewToolBars(), GUISUMOViewParent::onKeyRelease(), GNEViewNet::onKeyRelease(), and GNEViewParent::onKeyRelease().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 651 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getObjectUnderCursor(), gSelected, makeCurrent(), myChanger, GUIPerspectiveChanger::onLeftBtnPress(), and GUISelectedStorage::toggleSelection().
Referenced by buildViewToolBars().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 682 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), GUIMainWindow::isGaming(), myApp, myChanger, onGamingClick(), and GUIPerspectiveChanger::onLeftBtnRelease().
Referenced by buildViewToolBars(), and GNEViewNet::onLeftBtnRelease().
|
virtual |
Definition at line 694 of file GUISUMOAbstractView.cpp.
Referenced by buildViewToolBars().
|
virtual |
Definition at line 700 of file GUISUMOAbstractView.cpp.
Referenced by buildViewToolBars().
|
virtual |
Definition at line 762 of file GUISUMOAbstractView.cpp.
Referenced by buildViewToolBars().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 743 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIDialog_EditViewport::haveGrabbed(), myChanger, myPopup, myViewportChooser, GUIPerspectiveChanger::onMouseMove(), GUIDialog_EditViewport::setValues(), and updatePositionInformation().
Referenced by buildViewToolBars(), GNEViewNet::onMouseMove(), and onRightBtnRelease().
|
virtual |
Definition at line 733 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::isGaming(), myApp, myChanger, GUIPerspectiveChanger::onMouseWheel(), and updatePositionInformation().
Referenced by buildViewToolBars().
|
virtual |
Definition at line 623 of file GUISUMOAbstractView.cpp.
References makeCurrent(), myAmInitialised, and paintGL().
Referenced by buildViewToolBars(), and GNEViewNet::updateModeSpecificControls().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 706 of file GUISUMOAbstractView.cpp.
References destroyPopup(), myChanger, and GUIPerspectiveChanger::onRightBtnPress().
Referenced by buildViewToolBars(), and GNEViewNet::onRightBtnPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 715 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUIMainWindow::isGaming(), myApp, myChanger, onMouseMove(), GUIPerspectiveChanger::onRightBtnRelease(), and openObjectDialog().
Referenced by buildViewToolBars(), and GNEViewNet::onRightBtnRelease().
|
virtual |
Definition at line 768 of file GUISUMOAbstractView.cpp.
References GUIGlObjectStorage::getNetObject(), GUIGlObjectStorage::getObjectBlocking(), getObjectUnderCursor(), GUIGlObject::getPopUpMenu(), getPositionInformation(), GUIGlObjectStorage::gIDStorage, makeCurrent(), myAmInitialised, myApp, myChanger, myPopup, myPopupPosition, GUIPerspectiveChanger::onRightBtnRelease(), and GUIGlObjectStorage::unblockObject().
Referenced by buildViewToolBars(), and onRightBtnRelease().
double GUISUMOAbstractView::p2m | ( | double | pixel | ) | const |
pixels-to-meters conversion method
Definition at line 548 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and myChanger.
Referenced by buildViewToolBars(), GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), GNEViewNet::doPaintGL(), drawDecals(), GUIDanielPerspectiveChanger::move(), and showToolTipFor().
|
protected |
performs the painting of the simulation
Definition at line 259 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), centerTo(), displayLegend(), GUIVisualizationSettings::dither, doPaintGL(), getObjectUnderCursor(), getTrackedID(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), GUIGlObject::INVALID_ID, myChanger, myUseToolTips, myVisualizationSettings, RGBColor::red(), GUIVisualizationSettings::showSizeLegend, and showToolTipFor().
Referenced by onPaint().
|
protected |
paints a grid
Definition at line 437 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::addSize, GUIVisualizationSizeSettings::getExaggeration(), GUIPerspectiveChanger::getViewport(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, myChanger, myVisualizationSettings, GUIVisualizationSettings::scale, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), and makeSnapshot().
|
virtual |
recenters the view
Definition at line 554 of file GUISUMOAbstractView.cpp.
References myChanger, myGrid, and GUIPerspectiveChanger::setViewport().
Referenced by buildViewToolBars(), GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().
void GUISUMOAbstractView::remove | ( | GUIDialog_EditViewport * | ) |
remove viewport
Definition at line 1103 of file GUISUMOAbstractView.cpp.
References myViewportChooser.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
void GUISUMOAbstractView::remove | ( | GUIDialog_ViewSettings * | ) |
remove view settings
Definition at line 1109 of file GUISUMOAbstractView.cpp.
References myVisualizationChanger.
bool GUISUMOAbstractView::removeAdditionalGLVisualisation | ( | const GUIGlObject *const | which | ) |
Removes an object from the list of objects that show additional things.
[in] | which | The object to remoe |
Definition at line 1293 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by buildColorRainbow(), GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
|
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().
Position GUISUMOAbstractView::screenPos2NetPos | ( | int | x, |
int | y | ||
) | const |
Translate screen position to network position.
Definition at line 205 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), myChanger, Boundary::xmin(), and Boundary::ymin().
Referenced by GNEViewNet::doPaintGL(), drawDecals(), and getPositionInformation().
|
inline |
add snapshot synchronization
Definition at line 271 of file GUISUMOAbstractView.h.
References myApplicationSnapshots, and myApplicationSnapshotsLock.
Referenced by GUIApplicationWindow::openNewView().
|
virtual |
set color scheme
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 1091 of file GUISUMOAbstractView.cpp.
Referenced by GUISettingsHandler::addSettings(), endSnapshot(), GUIGlChildWindow::onCmdChangeColorScheme(), GUIDialog_ViewSettings::onCmdColorChange(), GUIDialog_ViewSettings::onCmdNameChange(), GUIDialog_ViewSettings::onCmdSaveSetting(), and TraCIServerAPI_GUI::processSet().
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().
|
virtual |
applies the given viewport settings
Definition at line 1070 of file GUISUMOAbstractView.cpp.
References myChanger, GUIPerspectiveChanger::setViewportFrom(), Position::x(), Position::y(), and Position::z().
Referenced by GUISettingsHandler::applyViewport(), buildViewToolBars(), copyViewportTo(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIDialog_EditViewport::onCmdCancel(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdOk(), TraCIServerAPI_GUI::processSet(), and GUICompleteSchemeStorage::setViewport().
void GUISUMOAbstractView::setWindowCursorPosition | ( | FXint | x, |
FXint | y | ||
) |
Returns the information whether rotation is allowd.
Definition at line 591 of file GUISUMOAbstractView.cpp.
References myMouseHotspotX, myMouseHotspotY, myWindowCursorPositionX, and myWindowCursorPositionY.
Referenced by buildViewToolBars(), and GUIDanielPerspectiveChanger::onMouseMove().
|
protected |
invokes the tooltip for the given object
Definition at line 423 of file GUISUMOAbstractView.cpp.
References Position::add(), RGBColor::BLACK, GLHelper::drawTextBox(), GUIGlObject::getFullName(), GUIGlObjectStorage::getObjectBlocking(), getPositionInformation(), GUIGlObjectStorage::gIDStorage, GLO_MAX, p2m(), and GUIGlObjectStorage::unblockObject().
Referenced by paintGL().
void GUISUMOAbstractView::showToolTips | ( | bool | val | ) |
show tool tips
Definition at line 1085 of file GUISUMOAbstractView.cpp.
References myUseToolTips.
Referenced by endSnapshot(), and GUIGlChildWindow::onCmdShowToolTips().
|
virtual |
show viewport editor
Definition at line 1061 of file GUISUMOAbstractView.cpp.
References getViewportEditor(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), Position::INVALID, myChanger, myViewportChooser, GUIDialog_EditViewport::setOldValues(), and GUIDialog_EditViewport::show().
Referenced by endSnapshot(), GUIGlChildWindow::onCmdEditViewport(), and GNEApplicationWindow::onCmdEditViewport().
void GUISUMOAbstractView::showViewschemeEditor | ( | ) |
show viewsscheme editor
Definition at line 1035 of file GUISUMOAbstractView.cpp.
References myDecals, myDecalsLock, myVisualizationChanger, myVisualizationSettings, GUIDialog_ViewSettings::setCurrent(), and GUIDialog_ViewSettings::show().
Referenced by endSnapshot(), GUIGlChildWindow::onCmdEditViewScheme(), and GUIDanielPerspectiveChanger::onKeyPress().
Returns a position that is mapped to the closest grid point if the grid is active.
Definition at line 192 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, myVisualizationSettings, Position::setx(), Position::sety(), GUIVisualizationSettings::showGrid, Position::x(), and Position::y().
Referenced by GNEAdditionalFrame::addAdditional(), GNEViewNet::doPaintGL(), GNEViewNet::onLeftBtnPress(), and GNEViewNet::onMouseMove().
|
virtual |
star track
Reimplemented in GUIViewTraffic.
Definition at line 1127 of file GUISUMOAbstractView.cpp.
Referenced by buildColorRainbow(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), and TraCIServerAPI_GUI::processSet().
|
virtual |
stop track
Reimplemented in GUIViewTraffic.
Definition at line 1132 of file GUISUMOAbstractView.cpp.
Referenced by buildColorRainbow(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), and TraCIServerAPI_GUI::processSet().
|
protected |
update position information
Definition at line 227 of file GUISUMOAbstractView.cpp.
References GeoConvHelper::cartesian2geo(), GUIMainWindow::getCartesianLabel(), GeoConvHelper::getFinal(), GUIMainWindow::getGeoLabel(), getPositionInformation(), gPrecisionGeo, myApp, toString(), Position::x(), and Position::y().
Referenced by centerTo(), onMouseMove(), and onMouseWheel().
void GUISUMOAbstractView::updateToolTip | ( | ) |
A method that updates the tooltip.
Definition at line 177 of file GUISUMOAbstractView.cpp.
References myUseToolTips.
Referenced by buildViewToolBars(), GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
|
protected |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 452 of file GUISUMOAbstractView.h.
Referenced by addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), isAdditionalGLVisualisationEnabled(), and removeAdditionalGLVisualisation().
|
protected |
Internal information whether doInit() was called.
Definition at line 420 of file GUISUMOAbstractView.h.
Referenced by onConfigure(), onPaint(), and openObjectDialog().
|
protected |
The application.
Definition at line 390 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::doPaintGL(), getDelay(), getObjectsInBoundary(), onLeftBtnRelease(), onMouseWheel(), onRightBtnRelease(), openObjectDialog(), GUIViewTraffic::saveFrame(), GUIViewTraffic::setColorScheme(), setDelay(), GNEViewNet::setEditMode(), GNEViewNet::setStatusBarText(), and updatePositionInformation().
|
protected |
Definition at line 442 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and setApplicationSnapshots().
|
protected |
Definition at line 446 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and setApplicationSnapshots().
|
protected |
The perspective changer.
Definition at line 399 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), centerTo(), copyViewportTo(), getChanger(), getObjectsInBoundary(), getViewportEditor(), getVisibleBoundary(), m2p(), makeSnapshot(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onMouseWheel(), onRightBtnPress(), onRightBtnRelease(), openObjectDialog(), p2m(), paintGL(), paintGLGrid(), GNEViewNet::processClick(), recenterView(), screenPos2NetPos(), setViewportFromTo(), showViewportEditor(), and ~GUISUMOAbstractView().
|
protected |
Definition at line 434 of file GUISUMOAbstractView.h.
Referenced by addDecals(), drawDecals(), showViewschemeEditor(), and ~GUISUMOAbstractView().
|
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().
|
protected |
The visualization speed-up.
Definition at line 396 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), getGridHeight(), getGridWidth(), makeSnapshot(), and recenterView().
|
protected |
Information whether too-tip informations shall be generated.
Definition at line 402 of file GUISUMOAbstractView.h.
Referenced by isInEditMode().
|
protected |
Offset to the mouse-hotspot from the mouse position.
Definition at line 405 of file GUISUMOAbstractView.h.
Referenced by setWindowCursorPosition().
|
protected |
Definition at line 405 of file GUISUMOAbstractView.h.
Referenced by setWindowCursorPosition().
|
protected |
The parent window.
Definition at line 393 of file GUISUMOAbstractView.h.
Referenced by getColoringSchemesCombo().
|
mutableprotected |
poly draw lock
Definition at line 449 of file GUISUMOAbstractView.h.
|
protected |
The current popup-menu.
Definition at line 408 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), onKeyPress(), onKeyRelease(), onMouseMove(), openObjectDialog(), and ~GUISUMOAbstractView().
|
protected |
The current popup-menu position.
Definition at line 411 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), getPopupPosition(), and openObjectDialog().
|
protected |
Snapshots.
Definition at line 441 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), and checkSnapshots().
|
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().
|
protected |
use tool tips
Definition at line 417 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), makeSnapshot(), paintGL(), showToolTips(), and updateToolTip().
|
protected |
viewport chooser
Definition at line 423 of file GUISUMOAbstractView.h.
Referenced by getViewportEditor(), onMouseMove(), remove(), showViewportEditor(), and ~GUISUMOAbstractView().
|
protected |
Visualization changer.
Definition at line 429 of file GUISUMOAbstractView.h.
Referenced by remove(), GUIViewTraffic::setColorScheme(), GNEViewNet::setColorScheme(), showViewschemeEditor(), and ~GUISUMOAbstractView().
|
protected |
visualization settings
Definition at line 414 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::buildEditModeControls(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), getObjectsInBoundary(), getVisualisationSettings(), makeSnapshot(), GNEViewNet::onCmdShowGrid(), GNEViewNet::onCmdToogleShowConnection(), onConfigure(), GNEViewNet::onMouseMove(), paintGL(), paintGLGrid(), GUIViewTraffic::setColorScheme(), GNEViewNet::setColorScheme(), GNEViewNet::setSelectionScaling(), GNEViewNet::showConnections(), showViewschemeEditor(), snapToActiveGrid(), GNEViewNet::updateModeSpecificControls(), and ~GUISUMOAbstractView().
|
protected |
Position of the cursor relative to the window.
Definition at line 426 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), and setWindowCursorPosition().
|
protected |
Definition at line 426 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), and setWindowCursorPosition().