![]() |
Eclipse 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 (const GUIVisualizationSettings &, GUIColorScheme &, int, GUIGlObjectType, bool hide=false, double hideThreshold=0) |
recalibrate color scheme according to the current value range More... | |
virtual void | buildViewToolBars (GUIGlChildWindow &) |
builds the view toolbars More... | |
void | centerTo (const Boundary &bound) |
centers to the chosen artifact More... | |
virtual void | centerTo (const Position &pos, bool applyZoom, double zoomDist=20) |
centers to the chosen position More... | |
virtual void | centerTo (GUIGlID id, bool applyZoom, double zoomDist=20) |
centers to the chosen artifact More... | |
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... | |
virtual std::vector< std::string > | getEdgeDataAttrs () const |
return list of loaded edgeData attributes More... | |
virtual std::vector< std::string > | getEdgeLaneParamKeys (bool) const |
return list of available edge parameters More... | |
double | getFPS () const |
retrieve FPS More... | |
double | getGridHeight () const |
get grid Height More... | |
double | getGridWidth () const |
get grid width More... | |
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 () |
get visualisation settings More... | |
GUIVisualizationSettings * | getVisualisationSettings () const |
get visualitation settings More... | |
Position | getWindowCursorPosition () const |
Returns the information whether rotation is allowd. 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 long | onConfigure (FXObject *, FXSelector, void *) |
mouse functions More... | |
virtual long | onDoubleClicked (FXObject *, FXSelector, void *) |
virtual void | onGamingClick (Position) |
on gaming click More... | |
virtual void | onGamingRightClick (Position) |
virtual long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
keyboard functions More... | |
virtual long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
virtual long | onLeftBtnPress (FXObject *, FXSelector, void *) |
virtual long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onMouseLeft (FXObject *, FXSelector, void *) |
virtual long | onMouseMove (FXObject *, FXSelector, void *) |
virtual long | onMouseWheel (FXObject *, FXSelector, void *) |
virtual long | onPaint (FXObject *, FXSelector, void *) |
virtual long | onRightBtnPress (FXObject *, FXSelector, void *) |
virtual long | onRightBtnRelease (FXObject *, FXSelector, void *) |
virtual 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... | |
virtual const std::vector< SUMOTime > | retrieveBreakpoints () const |
retrieve breakpoints if provided by the application More... | |
Position | screenPos2NetPos (int x, int y) const |
Translate screen position to network position. More... | |
void | setBreakpoints (const std::vector< SUMOTime > &breakpoints) |
Sets the breakpoints of the parent application. More... | |
virtual bool | setColorScheme (const std::string &) |
set color scheme More... | |
void | setDelay (double delay) |
Sets the delay of the parent application. More... | |
virtual void | setViewportFromToRot (const Position &lookFrom, const Position &lookAt, double rotation) |
applies the given viewport settings More... | |
void | setWindowCursorPosition (FXint x, FXint y) |
Returns the gl-id of the object under the given coordinates. More... | |
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, bool snapXY=true) 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... | |
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... | |
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... | |
void | waitForSnapshots (const SUMOTime snapshotTime) |
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 | |
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 | displayColorLegend () |
Draws a legend for the current edge coloring scheme. More... | |
void | displayLegend () |
Draws 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... | |
void | drawFPS () |
Draws frames-per-second indicator. 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... | |
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 (Boundary bound) |
returns the ids of all objects in the given boundary More... | |
std::vector< GUIGlID > | getObjectstUnderCursor () |
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... | |
GUISUMOAbstractView () | |
FOX need this. 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... | |
GUIPerspectiveChanger * | myChanger |
The perspective changer. More... | |
long | myFrameDrawTime |
counter for measuring rendering time 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... | |
FXMutex | myPolyDrawLock |
poly draw lock More... | |
GUIGLObjectPopupMenu * | myPopup |
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_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 |
FXMutex | myDecalsLock |
The mutex to use before accessing the decals list in order to avoid thread conflicts. More... | |
Static Private Attributes | |
static const double | SENSITIVITY = 0.1 |
This class is meant to be pure virtual later; It shall be the main class to inherit views of the simulation (micro- or macroscopic ones) from it.
Definition at line 73 of file GUISUMOAbstractView.h.
GUISUMOAbstractView::GUISUMOAbstractView | ( | FXComposite * | p, |
GUIMainWindow & | app, | ||
GUIGlChildWindow * | parent, | ||
const SUMORTree & | grid, | ||
FXGLVisual * | glVis, | ||
FXGLCanvas * | share | ||
) |
constructor
Definition at line 124 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gaming, GUICompleteSchemeStorage::getDefault(), gSchemeStorage, and GUICompleteSchemeStorage::setViewport().
|
virtual |
destructor
Definition at line 152 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), gSchemeStorage, myChanger, myDecals, myPopup, myViewportChooser, myVisualizationChanger, myVisualizationSettings, GUIVisualizationSettings::name, GUICompleteSchemeStorage::saveViewport(), and GUICompleteSchemeStorage::setDefault().
|
inlineprotected |
FOX need this.
Definition at line 422 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 1545 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), and GUIVehicle::drawOutsideNetwork().
void GUISUMOAbstractView::addDecals | ( | const std::vector< Decal > & | decals | ) |
add decals
Definition at line 228 of file GUISUMOAbstractView.cpp.
References myDecals.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
void GUISUMOAbstractView::addSnapshot | ( | SUMOTime | time, |
const std::string & | file, | ||
const int | width = -1 , |
||
const int | height = -1 |
||
) |
Sets the snapshot time to file map.
[in] | snaps | The snapshots to take at certain times |
Definition at line 1059 of file GUISUMOAbstractView.cpp.
References mySnapshots, and mySnapshotsMutex.
Referenced by GUIViewTraffic::checkSnapshots(), 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 1583 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::angle, DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GLO_MAX, myChanger, myVisualizationSettings, Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by getObjectsInBoundary(), makeSnapshot(), and paintGL().
|
inlinevirtual |
recalibrate color scheme according to the current value range
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 220 of file GUISUMOAbstractView.h.
References UNUSED_PARAMETER.
Referenced by GUIDialog_ViewSettings::onCmdColorChange().
|
inlinevirtual |
builds the view toolbars
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 84 of file GUISUMOAbstractView.h.
Referenced by GUISUMOViewParent::init().
void GUISUMOAbstractView::centerTo | ( | const Boundary & | bound | ) |
centers to the chosen artifact
Definition at line 794 of file GUISUMOAbstractView.cpp.
References myChanger, and GUIPerspectiveChanger::setViewport().
|
virtual |
centers to the chosen position
[in] | pos | Position to center view |
[in] | applyZoom | Whether to zoom in |
[in] | zoomDist | The distance in m to use for the zoom, values < 0 means: use the centeringBoundary |
Definition at line 786 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), myChanger, and updatePositionInformation().
|
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 769 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(), GUIGLObjectPopupMenu::onCmdCenter(), paintGL(), TraCIServerAPI_GUI::processSet(), and GUIGlChildWindow::setView().
|
protected |
check whether we can read image data or position with gdal
Definition at line 1418 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 1235 of file GUISUMOAbstractView.cpp.
References DELTA_T, getCurrentTimeStep(), joinToString(), makeSnapshot(), mySnapshotCondition, mySnapshots, mySnapshotsMutex, toString(), and WRITE_WARNING.
Referenced by GUIViewTraffic::checkSnapshots(), onConfigure(), and GUISUMOViewParent::onSimStep().
|
virtual |
copy the viewport to the given view
Definition at line 1336 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), myChanger, and setViewportFromToRot().
Referenced by GUIApplicationWindow::openNewView().
void GUISUMOAbstractView::destroyPopup | ( | ) |
destoys the popup
Definition at line 864 of file GUISUMOAbstractView.cpp.
References myPopup, myPopupPosition, and Position::set().
Referenced by GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdReplaceJunction(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetJunctionShape(), GNEViewNet::onCmdSplitJunction(), GNEViewNet::onCmdSplitJunctionReconnect(), GNEInternalLane::onDefault(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onRightBtnPress(), onRightBtnRelease(), and GNEViewNet::processClick().
|
protected |
Draws a legend for the current edge coloring scheme.
Definition at line 628 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_RIGHT, GUIPropertyScheme< T >::getColors(), GUIVisualizationSettings::getLaneEdgeScheme(), GUIPropertyScheme< T >::getNames(), GUIPropertyScheme< T >::getThresholds(), RGBColor::interpolate(), GUIPropertyScheme< T >::isFixed(), myVisualizationSettings, GLHelper::setColor(), toString(), and RGBColor::WHITE.
Referenced by makeSnapshot(), and paintGL().
|
protected |
Draws a line with ticks, and the length information.
Definition at line 562 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 261 of file GUISUMOAbstractView.cpp.
Referenced by onConfigure().
|
protectedvirtual |
paint GL
Reimplemented in GNEViewNet, and GUIViewTraffic.
Definition at line 255 of file GUISUMOAbstractView.cpp.
Referenced by getObjectsInBoundary(), makeSnapshot(), and paintGL().
|
protected |
Draws the stored decals.
Definition at line 1497 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(), myDecals, myDecalsLock, p2m(), GUISUMOAbstractView::Decal::rot, MFXImageHelper::scalePower2(), screenPos2NetPos(), GUISUMOAbstractView::Decal::screenRelative, GUISUMOAbstractView::Decal::skip2D, GUISUMOAbstractView::Decal::width, WRITE_ERROR, Position::x(), and Position::y().
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), and makeSnapshot().
|
protected |
Draws frames-per-second indicator.
Definition at line 731 of file GUISUMOAbstractView.cpp.
References GLHelper::drawText(), FONS_ALIGN_LEFT, getFPS(), RGBColor::RED, and toString().
Referenced by paintGL().
|
inlinevirtual |
Ends a video snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 190 of file GUISUMOAbstractView.h.
Referenced by GUISUMOViewParent::onCmdMakeSnapshot().
GUIPerspectiveChanger & GUISUMOAbstractView::getChanger | ( | ) | const |
get changer
Definition at line 173 of file GUISUMOAbstractView.cpp.
References myChanger.
Referenced by GUISettingsHandler::applyViewport(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIApplicationWindow::onCmdNetedit(), GNEApplicationWindow::onCmdOpenSUMOGUI(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), and GUIDialog_EditViewport::setValues().
FXComboBox * GUISUMOAbstractView::getColoringSchemesCombo | ( | ) |
get coloring schemes combo
Definition at line 1412 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 1277 of file GUISUMOAbstractView.cpp.
Referenced by checkSnapshots().
double GUISUMOAbstractView::getDelay | ( | ) | const |
Returns the delay of the parent application.
Definition at line 1617 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::getDelay(), and myApp.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
|
inlinevirtual |
return list of loaded edgeData attributes
Reimplemented in GUIViewTraffic.
Definition at line 227 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
inlinevirtual |
return list of available edge parameters
Reimplemented in GUIViewTraffic.
Definition at line 232 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
double GUISUMOAbstractView::getFPS | ( | ) | const |
retrieve FPS
Definition at line 726 of file GUISUMOAbstractView.cpp.
References MAX2(), and myFrameDrawTime.
Referenced by drawFPS(), and GUINet::getParameterWindow().
double GUISUMOAbstractView::getGridHeight | ( | ) | const |
get grid Height
Definition at line 1381 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), and myGrid.
Referenced by checkGDALImage(), and GUIDialog_ViewSettings::onCmdEditTable().
double GUISUMOAbstractView::getGridWidth | ( | ) | const |
get grid width
Definition at line 1375 of file GUISUMOAbstractView.cpp.
References Boundary::getWidth(), and myGrid.
Referenced by checkGDALImage(), and GUIDialog_ViewSettings::onCmdEditTable().
|
protected |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT
Definition at line 430 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by getGUIGlObjectsUnderCursor().
|
protected |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)
Definition at line 340 of file GUISUMOAbstractView.cpp.
References getGUIGlObjectsAtPosition(), getPositionInformation(), and SENSITIVITY.
Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::processLeftButtonReleaseNetwork().
returns the id of the object at position using GL_SELECT
Definition at line 346 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_LANE, GLO_NETWORK, GLO_POI, GLO_POLYGON, Boundary::grow(), SENSITIVITY, GUIGlObjectStorage::unblockObject(), and GUIVisualizationSettings::UseMesoSim.
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), getObjectUnderCursor(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::onCmdAddSelected(), and GNEViewNet::onCmdRemoveSelected().
|
protected |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 395 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_NETWORK, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by getObjectstUnderCursor().
returns the ids of all objects in the given boundary
Definition at line 460 of file GUISUMOAbstractView.cpp.
References applyGLTransform(), doPaintGL(), GUIVisualizationSettings::drawForSelecting, GUIPerspectiveChanger::getViewport(), m2p(), myApp, myChanger, myVisualizationSettings, GUIVisualizationSettings::scale, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), SUMO_const_laneWidth, and toString().
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), getGUIGlObjectsAtPosition(), getObjectAtPosition(), getObjectsAtPosition(), GNEViewNet::mergeJunctions(), and GNEViewNet::onCmdTransformPOI().
|
protected |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)
Definition at line 333 of file GUISUMOAbstractView.cpp.
References getObjectsAtPosition(), getPositionInformation(), and SENSITIVITY.
|
protected |
returns the id of the front object under the cursor using GL_SELECT
Definition at line 327 of file GUISUMOAbstractView.cpp.
References getObjectAtPosition(), and getPositionInformation().
Referenced by GUIViewTraffic::getLaneUnderCursor(), onLeftBtnPress(), GNEViewNet::openObjectDialog(), openObjectDialog(), and paintGL().
const Position & GUISUMOAbstractView::getPopupPosition | ( | ) | const |
get position of current popup
Definition at line 859 of file GUISUMOAbstractView.cpp.
References myPopupPosition.
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::onCmdAddSelected(), GNEViewNet::onCmdDeleteGeometryPoint(), GNEViewNet::onCmdEditEdgeEndpoint(), GNEViewNet::onCmdRemoveSelected(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdSetFirstGeometryPoint(), GNEViewNet::onCmdSplitEdge(), and GNEViewNet::onCmdSplitEdgeBidi().
Position GUISUMOAbstractView::getPositionInformation | ( | ) | const |
Returns the cursor's x/y position within the network.
Definition at line 188 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, myWindowCursorPositionY, and screenPos2NetPos().
Referenced by GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEEdge::drawGeometryPoints(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNEPoly::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), GNEViewNet::drawTemporalDrawShape(), getGUIGlObjectsUnderCursor(), getObjectstUnderCursor(), getObjectUnderCursor(), GUIEdge::getParameterWindow(), GUIEdge::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GUIDanielPerspectiveChanger::onKeyPress(), onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), onRightBtnRelease(), GNEViewNet::openObjectDialog(), openObjectDialog(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEDeleteFrame::removeAttributeCarrier(), showToolTipFor(), and updatePositionInformation().
|
virtual |
get tracked id
Reimplemented in GUIViewTraffic.
Definition at line 1397 of file GUISUMOAbstractView.cpp.
References GUIGlObject::INVALID_ID.
Referenced by GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), paintGL(), TraCIServerAPI_GUI::processGet(), and TraCIServerAPI_GUI::processSet().
GUIDialog_EditViewport * GUISUMOAbstractView::getViewportEditor | ( | ) |
get the viewport and create it on first access
Definition at line 1298 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), MAX2(), MIN2(), myChanger, myViewportChooser, and GUIDialog_EditViewport::setValues().
Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and showViewportEditor().
Boundary GUISUMOAbstractView::getVisibleBoundary | ( | ) | const |
get visible boundary
Definition at line 266 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), and myChanger.
Referenced by TraCIServerAPI_GUI::processGet().
GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings | ( | ) |
get visualisation settings
Definition at line 234 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings | ( | ) | const |
get visualitation settings
Definition at line 1357 of file GUISUMOAbstractView.cpp.
References myVisualizationSettings.
Referenced by GNEProhibitionFrame::buildProhibition(), GNEEdge::commitShapeChange(), GNEStop::getColor(), GUIApplicationWindow::onCmdEditChosen(), TraCIServerAPI_GUI::processGet(), and GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend().
Position GUISUMOAbstractView::getWindowCursorPosition | ( | ) | const |
Returns the information whether rotation is allowd.
return windows cursor position
Definition at line 808 of file GUISUMOAbstractView.cpp.
References myWindowCursorPositionX, and myWindowCursorPositionY.
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 1573 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
bool GUISUMOAbstractView::isInEditMode | ( | ) |
returns true, if the edit button was pressed
Definition at line 167 of file GUISUMOAbstractView.cpp.
References myInEditMode.
double GUISUMOAbstractView::m2p | ( | double | meter | ) | const |
meter-to-pixels conversion method
Definition at line 751 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and myChanger.
Referenced by displayLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), getObjectsInBoundary(), and makeSnapshot().
FXbool GUISUMOAbstractView::makeCurrent | ( | ) |
A reimplementation due to some internal reasons.
Definition at line 821 of file GUISUMOAbstractView.cpp.
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getAttributeCarriersInBoundary(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUIViewTraffic::getLaneUnderCursor(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), makeSnapshot(), GNEViewNet::mergeJunctions(), GNEViewNet::onCmdAddSelected(), GNEViewNet::onCmdRemoveSelected(), onConfigure(), GNEViewNet::onLeftBtnPress(), onLeftBtnPress(), onPaint(), GNEViewNet::openObjectDialog(), openObjectDialog(), and GNEViewNet::processLeftButtonReleaseNetwork().
std::string GUISUMOAbstractView::makeSnapshot | ( | const std::string & | destFile, |
const int | width = -1 , |
||
const int | height = -1 |
||
) |
Takes a snapshots and writes it into the given file.
The format to use is determined from the extension. If compiled with ffmpeg and a video format is requested it will instantiate a video encoder.
[in] | destFile | The name of the file to write the snapshot into |
Definition at line 1069 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), displayColorLegend(), 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(), GLHelper::setGL2PS(), GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showSizeLegend, FXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by checkSnapshots(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().
|
virtual |
mouse functions
Definition at line 828 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), checkSnapshots(), doInit(), RGBColor::green(), makeCurrent(), myAmInitialised, myVisualizationSettings, and RGBColor::red().
|
virtual |
Reimplemented in GUIViewTraffic.
Definition at line 953 of file GUISUMOAbstractView.cpp.
|
virtual |
on gaming click
Reimplemented in GUIViewTraffic.
Definition at line 1403 of file GUISUMOAbstractView.cpp.
Referenced by onLeftBtnRelease().
|
virtual |
Reimplemented in GUIViewTraffic.
Definition at line 1407 of file GUISUMOAbstractView.cpp.
Referenced by onRightBtnRelease().
|
virtual |
keyboard functions
Reimplemented in GNEViewNet.
Definition at line 1036 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, and GUIPerspectiveChanger::onKeyPress().
Referenced by GUISUMOViewParent::onKeyPress(), GNEViewNet::onKeyPress(), and GNEViewParent::onKeyPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1047 of file GUISUMOAbstractView.cpp.
References myChanger, myPopup, and GUIPerspectiveChanger::onKeyRelease().
Referenced by GUISUMOViewParent::onKeyRelease(), GNEViewNet::onKeyRelease(), and GNEViewParent::onKeyRelease().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 874 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getObjectUnderCursor(), gSelected, makeCurrent(), myChanger, GUIPerspectiveChanger::onLeftBtnPress(), and GUISelectedStorage::toggleSelection().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 905 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), GUIMainWindow::isGaming(), myApp, myChanger, onGamingClick(), and GUIPerspectiveChanger::onLeftBtnRelease().
Referenced by GNEViewNet::onLeftBtnRelease().
|
virtual |
Definition at line 917 of file GUISUMOAbstractView.cpp.
|
virtual |
Definition at line 923 of file GUISUMOAbstractView.cpp.
|
virtual |
Definition at line 996 of file GUISUMOAbstractView.cpp.
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 975 of file GUISUMOAbstractView.cpp.
References destroyPopup(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIDialog_EditViewport::haveGrabbed(), myChanger, myPopup, myViewportChooser, GUIPerspectiveChanger::onMouseMove(), GUIDialog_EditViewport::setValues(), and updatePositionInformation().
Referenced by GNEViewNet::onMouseMove(), and onRightBtnRelease().
|
virtual |
Definition at line 959 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIMainWindow::isGaming(), myApp, myChanger, myViewportChooser, GUIPerspectiveChanger::onMouseWheel(), GUIDialog_EditViewport::setValues(), and updatePositionInformation().
|
virtual |
Definition at line 846 of file GUISUMOAbstractView.cpp.
References makeCurrent(), myAmInitialised, and paintGL().
Referenced by GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 929 of file GUISUMOAbstractView.cpp.
References destroyPopup(), myChanger, and GUIPerspectiveChanger::onRightBtnPress().
Referenced by GNEViewNet::onRightBtnPress().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 938 of file GUISUMOAbstractView.cpp.
References destroyPopup(), getPositionInformation(), GUIMainWindow::isGaming(), myApp, myChanger, onGamingRightClick(), onMouseMove(), GUIPerspectiveChanger::onRightBtnRelease(), and openObjectDialog().
Referenced by GNEViewNet::onRightBtnRelease().
|
virtual |
Reimplemented in GNEViewNet.
Definition at line 1002 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 onRightBtnRelease().
double GUISUMOAbstractView::p2m | ( | double | pixel | ) | const |
pixels-to-meters conversion method
Definition at line 757 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and myChanger.
Referenced by GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), drawDecals(), GUIDanielPerspectiveChanger::move(), and showToolTipFor().
|
protected |
performs the painting of the simulation
Definition at line 272 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), centerTo(), displayColorLegend(), displayLegend(), GUIVisualizationSettings::dither, doPaintGL(), drawFPS(), GUIVisualizationSettings::fps, SysUtils::getCurrentMillis(), getObjectUnderCursor(), getTrackedID(), RGBColor::green(), GUIGlObject::INVALID_ID, myFrameDrawTime, myUseToolTips, myVisualizationSettings, RGBColor::red(), GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showSizeLegend, and showToolTipFor().
Referenced by onPaint().
|
protected |
paints a grid
Definition at line 520 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 763 of file GUISUMOAbstractView.cpp.
References myChanger, myGrid, and GUIPerspectiveChanger::setViewport().
Referenced by GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().
void GUISUMOAbstractView::remove | ( | GUIDialog_EditViewport * | ) |
remove viewport
Definition at line 1363 of file GUISUMOAbstractView.cpp.
References myViewportChooser.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
void GUISUMOAbstractView::remove | ( | GUIDialog_ViewSettings * | ) |
remove view settings
Definition at line 1369 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 1557 of file GUISUMOAbstractView.cpp.
References myAdditionallyDrawn.
Referenced by GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
|
inlinevirtual |
retrieve breakpoints if provided by the application
Reimplemented in GUIViewTraffic.
Definition at line 364 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
|
virtual |
Adds a frame to a video snapshot which will be initialized if neccessary.
Reimplemented in GUIViewTraffic.
Definition at line 1228 of file GUISUMOAbstractView.cpp.
References UNUSED_PARAMETER.
Referenced by makeSnapshot().
Position GUISUMOAbstractView::screenPos2NetPos | ( | int | x, |
int | y | ||
) | const |
Translate screen position to network position.
Definition at line 213 of file GUISUMOAbstractView.cpp.
References DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), myChanger, Position::rotateAround2D(), Boundary::xmin(), and Boundary::ymin().
Referenced by drawDecals(), and getPositionInformation().
void GUISUMOAbstractView::setBreakpoints | ( | const std::vector< SUMOTime > & | breakpoints | ) |
Sets the breakpoints of the parent application.
Definition at line 1629 of file GUISUMOAbstractView.cpp.
References myApp, and GUIMainWindow::setBreakpoints().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtual |
set color scheme
Reimplemented in GUIViewTraffic, and GNEViewNet.
Definition at line 1351 of file GUISUMOAbstractView.cpp.
Referenced by GUISettingsHandler::addSettings(), 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 1623 of file GUISUMOAbstractView.cpp.
References myApp, and GUIMainWindow::setDelay().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtual |
applies the given viewport settings
Definition at line 1328 of file GUISUMOAbstractView.cpp.
References myChanger, GUIPerspectiveChanger::setRotation(), GUIPerspectiveChanger::setViewportFrom(), Position::x(), Position::y(), and Position::z().
Referenced by GUISettingsHandler::applyViewport(), 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 gl-id of the object under the given coordinates.
Definition at line 814 of file GUISUMOAbstractView.cpp.
References myMouseHotspotX, myMouseHotspotY, myWindowCursorPositionX, and myWindowCursorPositionY.
Referenced by GUIDanielPerspectiveChanger::onMouseMove().
|
protected |
invokes the tooltip for the given object
Definition at line 500 of file GUISUMOAbstractView.cpp.
References Position::add(), RGBColor::BLACK, GLHelper::drawTextBox(), GUIVisualizationSettings::edgeValue, GUIGlObject::getColorValue(), GUIVisualizationSettings::getLaneEdgeMode(), GUIGlObjectStorage::getObjectBlocking(), getPositionInformation(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_EDGE, GLO_LANE, GLO_MAX, myVisualizationSettings, p2m(), GUIVisualizationTextSettings::show, toString(), and GUIGlObjectStorage::unblockObject().
Referenced by paintGL().
void GUISUMOAbstractView::showToolTips | ( | bool | val | ) |
show tool tips
Definition at line 1345 of file GUISUMOAbstractView.cpp.
References myUseToolTips.
Referenced by GUIGlChildWindow::onCmdShowToolTips().
|
virtual |
show viewport editor
Definition at line 1319 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), getViewportEditor(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), Position::INVALID, myChanger, myViewportChooser, GUIDialog_EditViewport::setOldValues(), and GUIDialog_EditViewport::show().
Referenced by GUIGlChildWindow::onCmdEditViewport(), and GNEApplicationWindow::onCmdEditViewport().
void GUISUMOAbstractView::showViewschemeEditor | ( | ) |
show viewsscheme editor
Definition at line 1283 of file GUISUMOAbstractView.cpp.
References myDecals, myDecalsLock, myVisualizationChanger, myVisualizationSettings, GUIDialog_ViewSettings::setCurrent(), and GUIDialog_ViewSettings::show().
Referenced by GUIGlChildWindow::onCmdEditViewScheme(), and GNEApplicationWindow::onCmdEditViewScheme().
Returns a position that is mapped to the closest grid point if the grid is active.
note: formats are pos(x,y,0) por pos(0,0,z)
Definition at line 194 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, myVisualizationSettings, Position::setx(), Position::sety(), Position::setz(), GUIVisualizationSettings::showGrid, Position::x(), Position::y(), and Position::z().
Referenced by GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEViewNet::drawTemporalDrawShape(), GNEEdge::editEndpoint(), GNETAZ::getVertexIndex(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNETAZ::moveGeometry(), GNEDetectorE3::moveGeometry(), GNEParkingSpace::moveGeometry(), GNEVariableSpeedSign::moveGeometry(), GNEAccess::moveGeometry(), GNERerouter::moveGeometry(), GNEDetectorE1::moveGeometry(), GNEDetectorEntryExit::moveGeometry(), GNEDetectorE1Instant::moveGeometry(), GNEStop::moveGeometry(), GNEStoppingPlace::moveGeometry(), GNEDetectorE2::moveGeometry(), GNEPOI::moveGeometry(), GNERide::moveGeometry(), GNEPersonTrip::moveGeometry(), GNEWalk::moveGeometry(), GNEJunction::moveGeometry(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNETAZ::moveVertexShape(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), GNECreateEdgeFrame::processClick(), and GNEViewNet::processLeftButtonPressNetwork().
|
virtual |
star track
Reimplemented in GUIViewTraffic.
Definition at line 1387 of file GUISUMOAbstractView.cpp.
Referenced by GUIDialog_GLObjChooser::onCmdTrack(), and TraCIServerAPI_GUI::processSet().
|
virtual |
stop track
Reimplemented in GUIViewTraffic.
Definition at line 1392 of file GUISUMOAbstractView.cpp.
Referenced by GUIDialog_GLObjChooser::onCmdCenter(), and TraCIServerAPI_GUI::processSet().
|
protected |
update position information
Definition at line 240 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 179 of file GUISUMOAbstractView.cpp.
References myUseToolTips.
Referenced by GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
void GUISUMOAbstractView::waitForSnapshots | ( | const SUMOTime | snapshotTime | ) |
Definition at line 1268 of file GUISUMOAbstractView.cpp.
References mySnapshotCondition, mySnapshots, and mySnapshotsMutex.
|
protected |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 500 of file GUISUMOAbstractView.h.
Referenced by addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), isAdditionalGLVisualisationEnabled(), and removeAdditionalGLVisualisation().
|
protected |
Internal information whether doInit() was called.
Definition at line 467 of file GUISUMOAbstractView.h.
Referenced by onConfigure(), onPaint(), GNEViewNet::openObjectDialog(), and openObjectDialog().
|
protected |
The application.
Definition at line 437 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::doPaintGL(), getDelay(), getObjectsInBoundary(), GUIViewTraffic::onDoubleClicked(), onLeftBtnRelease(), onMouseWheel(), onRightBtnRelease(), GNEViewNet::openObjectDialog(), openObjectDialog(), GUIViewTraffic::retrieveBreakpoints(), GUIViewTraffic::saveFrame(), setBreakpoints(), GUIViewTraffic::setColorScheme(), setDelay(), GNEViewNet::setStatusBarText(), and updatePositionInformation().
|
protected |
The perspective changer.
Definition at line 446 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), centerTo(), copyViewportTo(), getChanger(), getObjectsInBoundary(), getViewportEditor(), getVisibleBoundary(), m2p(), makeSnapshot(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), onMouseWheel(), onRightBtnPress(), onRightBtnRelease(), GNEViewNet::openObjectDialog(), openObjectDialog(), p2m(), paintGLGrid(), GNEViewNet::processClick(), recenterView(), screenPos2NetPos(), setViewportFromToRot(), showViewportEditor(), and ~GUISUMOAbstractView().
|
protected |
Definition at line 481 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 conflicts.
Definition at line 484 of file GUISUMOAbstractView.h.
Referenced by drawDecals(), and showViewschemeEditor().
|
protected |
counter for measuring rendering time
Definition at line 503 of file GUISUMOAbstractView.h.
|
protected |
The visualization speed-up.
Definition at line 443 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 449 of file GUISUMOAbstractView.h.
Referenced by isInEditMode().
|
protected |
Offset to the mouse-hotspot from the mouse position.
Definition at line 452 of file GUISUMOAbstractView.h.
Referenced by setWindowCursorPosition().
|
protected |
Definition at line 452 of file GUISUMOAbstractView.h.
Referenced by setWindowCursorPosition().
|
protected |
The parent window.
Definition at line 440 of file GUISUMOAbstractView.h.
Referenced by getColoringSchemesCombo().
|
mutableprotected |
poly draw lock
Definition at line 497 of file GUISUMOAbstractView.h.
|
protected |
The current popup-menu.
Definition at line 455 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), onKeyPress(), onKeyRelease(), onMouseMove(), GNEViewNet::openObjectDialog(), openObjectDialog(), and ~GUISUMOAbstractView().
|
protected |
The current popup-menu position.
Definition at line 458 of file GUISUMOAbstractView.h.
Referenced by destroyPopup(), getPopupPosition(), GNEViewNet::openObjectDialog(), and openObjectDialog().
|
protected |
the semaphore when waiting for snapshots to finish
Definition at line 494 of file GUISUMOAbstractView.h.
Referenced by checkSnapshots(), and waitForSnapshots().
|
protected |
Snapshots.
Definition at line 488 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and waitForSnapshots().
|
protected |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 491 of file GUISUMOAbstractView.h.
Referenced by addSnapshot(), checkSnapshots(), and waitForSnapshots().
|
protected |
use tool tips
Definition at line 464 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), makeSnapshot(), paintGL(), showToolTips(), and updateToolTip().
|
protected |
viewport chooser
Definition at line 470 of file GUISUMOAbstractView.h.
Referenced by getViewportEditor(), onMouseMove(), onMouseWheel(), remove(), showViewportEditor(), and ~GUISUMOAbstractView().
|
protected |
Visualization changer.
Definition at line 476 of file GUISUMOAbstractView.h.
Referenced by remove(), GNEViewNet::setColorScheme(), GUIViewTraffic::setColorScheme(), showViewschemeEditor(), and ~GUISUMOAbstractView().
|
protected |
visualization settings
Definition at line 461 of file GUISUMOAbstractView.h.
Referenced by applyGLTransform(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), displayColorLegend(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GNEViewNet::drawLaneCandidates(), getObjectsInBoundary(), getVisualisationSettings(), makeSnapshot(), GNEViewNet::onCmdToogleShowConnections(), GNEViewNet::onCmdToogleShowGrid(), onConfigure(), paintGL(), paintGLGrid(), GNEViewNet::setColorScheme(), GUIViewTraffic::setColorScheme(), GNEViewNet::setSelectionScaling(), showToolTipFor(), showViewschemeEditor(), snapToActiveGrid(), GNEViewNet::updateDemandModeSpecificControls(), GNEViewNet::updateNetworkModeSpecificControls(), and ~GUISUMOAbstractView().
|
protected |
Position of the cursor relative to the window.
Definition at line 473 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), getWindowCursorPosition(), and setWindowCursorPosition().
|
protected |
Definition at line 473 of file GUISUMOAbstractView.h.
Referenced by getPositionInformation(), getWindowCursorPosition(), and setWindowCursorPosition().
|
staticprivate |
Definition at line 507 of file GUISUMOAbstractView.h.
Referenced by getGUIGlObjectsUnderCursor(), getObjectAtPosition(), and getObjectstUnderCursor().