![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIViewTraffic.h>
Public Member Functions | |
void | addDecals (const std::vector< Decal > &decals) |
add decals | |
void | buildColorRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, bool hide=false, double hideThreshold=0, bool hide2=false, double hideThreshold2=0) |
recalibrate color scheme according to the current value range | |
virtual void | buildViewToolBars (GUIGlChildWindow *) |
builds the view toolbars | |
void | centerTo (const Boundary &bound) |
centers to the chosen artifact | |
virtual void | centerTo (const Position &pos, bool applyZoom, double zoomDist=20) |
centers to the chosen position | |
virtual void | centerTo (GUIGlID id, bool applyZoom, double zoomDist=20) |
centers to the chosen artifact | |
void | checkSnapshots () |
Checks whether it is time for a snapshot. | |
virtual void | copyViewportTo (GUISUMOAbstractView *view) |
copy the viewport to the given view | |
void | destroyPopup () |
destroys the popup | |
GUIVisualizationSettings * | editVisualisationSettings () const |
edit visualization settings (allow modify VisualizationSetings, use carefully) | |
void | endSnapshot () |
Ends a video snapshot. | |
GUIPerspectiveChanger & | getChanger () const |
get changer | |
FXComboBox * | getColoringSchemesCombo () |
get coloring schemes combo | |
SUMOTime | getCurrentTimeStep () const |
get the current simulation time | |
std::vector< Decal > & | getDecals () |
The list of decals to show. | |
FXMutex & | getDecalsLockMutex () |
The mutex to use before accessing the decals list in order to avoid thread conflicts. | |
double | getDelay () const |
Returns the delay of the parent application. | |
std::vector< std::string > | getEdgeDataAttrs () const |
return list of loaded edgeData attributes | |
std::vector< std::string > | getEdgeLaneParamKeys (bool edgeKeys) const |
return list of available edge parameters | |
double | getFPS () const |
retrieve FPS | |
double | getGridHeight () const |
get grid height | |
double | getGridWidth () const |
get grid width | |
GUIGlChildWindow * | getGUIGlChildWindow () |
get GUIGlChildWindow | |
GUIMainWindow * | getMainWindow () const |
get main window | |
std::vector< std::string > | getMeanDataAttrs (const std::string &meanDataID) const |
return list of available attributes for the given meanData id | |
std::vector< std::string > | getMeanDataIDs () const |
return list of loaded edgeData ids (being computed in the current simulation) | |
std::vector< std::string > | getPOIParamKeys () const |
return list of available POI parameters | |
const Position & | getPopupPosition () const |
get position of current popup | |
virtual Position | getPositionInformation () const |
Returns the cursor's x/y position within the network. | |
virtual std::vector< std::string > | getRelDataAttrs () const |
return list of loaded edgeRelation and tazRelation attributes | |
GUIGlID | getTrackedID () const |
Returns the id of the tracked vehicle (-1 if none) | |
std::vector< std::string > | getVehicleParamKeys (bool vTypeKeys) const |
return list of available vehicle parameters | |
GUIDialog_EditViewport * | getViewportEditor () |
get the viewport and create it on first access | |
Boundary | getVisibleBoundary () const |
get visible boundary | |
const GUIVisualizationSettings & | getVisualisationSettings () const |
get visualization settings (read only) | |
Position | getWindowCursorPosition () const |
return windows cursor position | |
GUIViewTraffic (FXComposite *p, GUIMainWindow &app, GUISUMOViewParent *parent, GUINet &net, FXGLVisual *glVis, FXGLCanvas *share) | |
constructor | |
virtual bool | is3DView () const |
return whether this is a 3D view | |
bool | isInEditMode () |
returns true, if the edit button was pressed | |
double | m2p (double meter) const |
meter-to-pixels conversion method | |
FXbool | makeCurrent () |
A reimplementation due to some internal reasons. | |
long | onCmdAddRerouter (FXObject *, FXSelector, void *) |
long | onCmdCloseEdge (FXObject *, FXSelector, void *) |
long | onCmdCloseLane (FXObject *, FXSelector, void *) |
interaction with the simulation | |
long | onCmdShowReachability (FXObject *, FXSelector, void *) |
highlight edges according to reachability | |
virtual long | onConfigure (FXObject *, FXSelector, void *) |
mouse functions | |
long | onDoubleClicked (FXObject *, FXSelector, void *) |
void | onGamingClick (Position pos) |
handle mouse click in gaming mode | |
void | onGamingRightClick (Position pos) |
virtual long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
keyboard functions | |
virtual long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
virtual long | onLeftBtnPress (FXObject *, FXSelector, void *) |
virtual long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onMouseLeft (FXObject *, FXSelector, void *) |
virtual long | onMouseMove (FXObject *, FXSelector, void *) |
virtual long | onMouseWheel (FXObject *, FXSelector, void *) |
virtual long | onPaint (FXObject *, FXSelector, void *) |
virtual long | onRightBtnPress (FXObject *, FXSelector, void *) |
virtual long | onRightBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onVisualizationChange (FXObject *, FXSelector, void *) |
hook to react on change in visualization settings | |
void | openObjectDialog (const std::vector< GUIGlObject * > &objects, const bool filter=true) |
open object dialog for the given object | |
virtual void | openObjectDialogAtCursor (const FXEvent *ev) |
open object dialog at the cursor position | |
double | p2m (double pixel) const |
pixels-to-meters conversion method | |
void | recalculateBoundaries () |
recalculate boundaries | |
virtual void | recenterView () |
recenters the view | |
void | remove (GUIDialog_EditViewport *) |
remove viewport | |
void | remove (GUIDialog_ViewSettings *) |
remove view settings | |
void | replacePopup (GUIGLObjectPopupMenu *popUp) |
replace PopUp | |
const std::vector< SUMOTime > | retrieveBreakpoints () const |
retrieve breakpoints from the current runThread | |
void | saveFrame (const std::string &destFile, FXColor *buf) |
Adds a frame to a video snapshot which will be initialized if neccessary. | |
Position | screenPos2NetPos (int x, int y) const |
Translate screen position to network position. | |
void | setBreakpoints (const std::vector< SUMOTime > &breakpoints) |
Sets the breakpoints of the parent application. | |
bool | setColorScheme (const std::string &name) |
set color scheme | |
void | setDelay (double delay) |
Sets the delay of the parent application. | |
virtual void | setViewportFromToRot (const Position &lookFrom, const Position &lookAt, double rotation) |
applies the given viewport settings | |
void | setWindowCursorPosition (FXint x, FXint y) |
Returns the gl-id of the object under the given coordinates. | |
virtual void | showViewportEditor () |
show viewport editor | |
void | showViewschemeEditor () |
show viewsscheme editor | |
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. | |
void | startTrack (int id) |
Starts vehicle tracking. | |
void | stopTrack () |
Stops vehicle tracking. | |
void | updateToolTip () |
A method that updates the tooltip. | |
virtual void | updateViewportValues () |
update the viewport chooser with the current view values | |
virtual void | zoom2Pos (Position &camera, Position &lookAt, double zoom) |
zoom interface for 3D view | |
virtual | ~GUIViewTraffic () |
destructor | |
Dealing with snapshots | |
void | addSnapshot (SUMOTime time, const std::string &file, const int w=-1, const int h=-1) |
Sets the snapshot time to file map. | |
std::string | makeSnapshot (const std::string &destFile, const int w=-1, const int h=-1) |
Takes a snapshots and writes it into the given file. | |
void | waitForSnapshots (const SUMOTime snapshotTime) |
Additional visualisations | |
bool | addAdditionalGLVisualisation (GUIGlObject *const which) |
Adds an object to call its additional visualisation method. | |
bool | removeAdditionalGLVisualisation (GUIGlObject *const which) |
Removes an object from the list of objects that show additional things. | |
bool | isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const |
Check if an object is added in the additional GL visualitation. | |
Static Public Member Functions | |
static long | showLaneReachability (GUILane *lane, FXObject *, FXSelector) |
Protected Member Functions | |
Boundary | applyGLTransform (bool fixRatio=true) |
applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections) | |
FXImage * | checkGDALImage (Decal &d) |
check whether we can read image data or position with gdal | |
void | displayColorLegend (const GUIColorScheme &scheme, bool leftSide) |
Draws a legend for the given scheme. | |
void | displayLegend () |
Draws a line with ticks, and the length information. | |
void | displayLegends () |
Draws the configured legends. | |
virtual void | doInit () |
doInit | |
int | doPaintGL (int mode, const Boundary &bound) |
paint GL | |
void | drawDecals () |
Draws the stored decals. | |
void | drawFPS () |
Draws frames-per-second indicator. | |
std::vector< GUIGlObject * > | filterInernalLanes (const std::vector< GUIGlObject * > &objects) const |
filter internal lanes in Objects under cursor | |
std::vector< GUIGlObject * > | getGUIGlObjectsAtPosition (Position pos, double radius) |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT | |
std::vector< GUIGlObject * > | getGUIGlObjectsUnderCursor () |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects) | |
std::vector< GUIGlObject * > | getGUIGlObjectsUnderSnappedCursor () |
returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects) | |
GUILane * | getLaneUnderCursor () |
returns the GUILane at cursor position (implementation depends on view) | |
GUIGlID | getObjectAtPosition (Position pos) |
returns the id of the object at position using GL_SELECT | |
std::vector< GUIGlID > | getObjectsAtPosition (Position pos, double radius) |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT | |
std::vector< GUIGlID > | getObjectsInBoundary (Boundary bound, bool singlePosition) |
returns the ids of all objects in the given boundary | |
std::vector< GUIGlID > | getObjectsUnderCursor () |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects) | |
GUIGlID | getObjectUnderCursor () |
returns the id of the front object under the cursor using GL_SELECT | |
GUIViewTraffic () | |
void | openPopupDialog () |
open popup dialog | |
void | paintGL () |
FOX needs this. | |
void | paintGLGrid () |
paints a grid | |
bool | showToolTipFor (const GUIGlID idToolTip) |
invokes the tooltip for the given object | |
virtual void | updatePositionInformationLabel () const |
update position information labels | |
Protected Attributes | |
std::map< GUIGlObject *, int > | myAdditionallyDrawn |
List of objects for which GUIGlObject::drawGLAdditional is called. | |
bool | myAmInitialised = false |
Internal information whether doInit() was called. | |
GUIMainWindow * | myApp |
The application. | |
GUIPerspectiveChanger * | myChanger = nullptr |
The perspective changer. | |
Position | myClickedPopupPosition = Position::INVALID |
clicked poup position | |
std::vector< GUIGlObject * > | myCurrentObjectsDialog |
vector with current objects dialog | |
long | myFrameDrawTime = 0 |
counter for measuring rendering time | |
GUIGlChildWindow * | myGlChildWindowParent |
The parent window. | |
const SUMORTree * | myGrid |
The visualization speed-up. | |
GUIDialog_EditViewport * | myGUIDialogEditViewport = nullptr |
viewport chooser | |
GUIDialog_ViewSettings * | myGUIDialogViewSettings = nullptr |
Visualization changer. | |
bool | myInEditMode = false |
Information whether too-tip informations shall be generated. | |
int | myMouseHotspotX |
Offset to the mouse-hotspot from the mouse position. | |
int | myMouseHotspotY |
bool | myPanning = false |
Panning flag. | |
FXMutex | myPolyDrawLock |
poly draw lock | |
GUIGLObjectPopupMenu * | myPopup = nullptr |
The current popup-menu. | |
Position | myPopupPosition = Position(0, 0) |
The current popup-menu position. | |
FXCondition | mySnapshotCondition |
the semaphore when waiting for snapshots to finish | |
std::map< SUMOTime, std::vector< std::tuple< std::string, int, int > > > | mySnapshots |
Snapshots. | |
FXMutex | mySnapshotsMutex |
The mutex to use before accessing the decals list in order to avoid thread conflicts. | |
GUIVisualizationSettings * | myVisualizationSettings |
visualization settings | |
FXint | myWindowCursorPositionX |
Position of the cursor relative to the window. | |
FXint | myWindowCursorPositionY |
Optionally shown decals | |
std::vector< Decal > | myDecals |
The list of decals to show. | |
FXMutex | myDecalsLockMutex |
The mutex to use before accessing the decals list in order to avoid thread conflicts. | |
Private Member Functions | |
std::vector< GUIGlObject * > | filterGUIGLObjectsByLayer (const std::vector< GUIGlObject * > &objects) const |
@fbrief filter elements by layer | |
Private Attributes | |
bool | myTLSGame |
whether game mode was set to 'tls' | |
GUIGlID | myTrackedID |
Static Private Attributes | |
static const double | SENSITIVITY = 0.1 |
Microsocopic view at the simulation
Definition at line 52 of file GUIViewTraffic.h.
GUIViewTraffic::GUIViewTraffic | ( | FXComposite * | p, |
GUIMainWindow & | app, | ||
GUISUMOViewParent * | parent, | ||
GUINet & | net, | ||
FXGLVisual * | glVis, | ||
FXGLCanvas * | share | ||
) |
constructor
Definition at line 73 of file GUIViewTraffic.cpp.
|
virtual |
|
inlineprotected |
Definition at line 158 of file GUIViewTraffic.h.
|
inherited |
Adds an object to call its additional visualisation method.
[in] | which | The object to add |
Definition at line 1875 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), and GUIVehicle::drawOutsideNetwork().
|
inherited |
add decals
Definition at line 239 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecals.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
inherited |
Sets the snapshot time to file map.
[in] | snaps | The snapshots to take at certain times |
[in] | w | The snapshot image width |
[in] | w | The snapshot image height |
Definition at line 1367 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.
Referenced by checkSnapshots(), and GUISettingsHandler::setSnapshots().
|
protectedinherited |
applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections)
Definition at line 1913 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIVisualizationSettings::angle, DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GLO_MAX, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, Position::rotateAround2D(), Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().
|
virtual |
recalibrate color scheme according to the current value range
Reimplemented from GUISUMOAbstractView.
Definition at line 178 of file GUIViewTraffic.cpp.
References GUIPropertyScheme< T >::addColor(), RGBColor::BLUE, GUIPropertyScheme< T >::clear(), GUIVisualizationSettings::COL_MISSING_DATA, RGBColor::CYAN, RGBColor::fromHSV(), MSEdge::getAllEdges(), GUIEdge::getColorValue(), GUILane::getColorValue(), GUIPropertyScheme< T >::getName(), GLO_JUNCTION, GLO_LANE, RGBColor::GREEN, MSGlobals::gUseMesoSim, GUIPropertyScheme< T >::isFixed(), RGBColor::MAGENTA, MAX2(), MIN2(), GUIVisualizationSettings::MISSING_DATA, RGBColor::ORANGE, RGBColor::RED, GUIVisualizationSettings::SCHEME_NAME_DATA_ATTRIBUTE_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_EDGEDATA_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_LANE_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_PARAM_NUMERICAL, GUIVisualizationSettings::SCHEME_NAME_PERMISSION_CODE, and RGBColor::YELLOW.
|
virtual |
builds the view toolbars
Reimplemented from GUISUMOAbstractView.
Definition at line 100 of file GUIViewTraffic.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), GUIIconSubSys::getIcon(), GUIGlChildWindow::getLocatorPopup(), GUICompleteSchemeStorage::getNames(), GUIMainWindow::getStaticTooltipMenu(), gSchemeStorage, GUIDesignButtonPopup, LOCATEADD, LOCATECONTAINER, LOCATEEDGE, LOCATEJUNCTION, LOCATEPERSON, LOCATEPOI, LOCATEPOLY, LOCATETLS, LOCATEVEHICLE, MAX2(), MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL, MID_HOTKEY_SHIFT_C_LOCATECONTAINER, MID_HOTKEY_SHIFT_E_LOCATEEDGE, MID_HOTKEY_SHIFT_J_LOCATEJUNCTION, MID_HOTKEY_SHIFT_L_LOCATEPOLY, MID_HOTKEY_SHIFT_O_LOCATEPOI, MID_HOTKEY_SHIFT_P_LOCATEPERSON, MID_HOTKEY_SHIFT_T_LOCATETLS, MID_HOTKEY_SHIFT_V_LOCATEVEHICLE, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::name, and TL.
|
inherited |
centers to the chosen artifact
Definition at line 938 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::setViewport().
|
virtualinherited |
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 930 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::updatePositionInformationLabel().
|
virtualinherited |
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 910 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, Position::INVALID, GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setViewport(), GUIGlObjectStorage::unblockObject(), and GUISUMOAbstractView::updatePositionInformationLabel().
Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNERouteHandler::buildPersonPlan(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNEVehicleFrame::buildVehicleOverRoute(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), GUISUMOAbstractView::paintGL(), and GUIGlChildWindow::setView().
|
protectedinherited |
check whether we can read image data or position with gdal
Definition at line 1723 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GeoConvHelper::getProcessing(), GUISUMOAbstractView::Decal::height, TL, GUISUMOAbstractView::Decal::width, WRITE_WARNINGF, Position::x(), and Position::y().
Referenced by GUISUMOAbstractView::drawDecals().
|
virtual |
Checks whether it is time for a snapshot.
Reimplemented from GUISUMOAbstractView.
Definition at line 759 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), DELTA_T, and getCurrentTimeStep().
|
virtualinherited |
copy the viewport to the given view
Definition at line 1629 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::setViewportFromToRot().
Referenced by GUIApplicationWindow::openNewView().
|
inherited |
destroys the popup
Definition at line 1008 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myCurrentObjectsDialog, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myPopupPosition, GUIGLObjectPopupMenu::removePopupFromObject(), and Position::set().
Referenced by GNEApplicationWindow::clearUndoList(), GNENet::computeAndUpdate(), GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdConvertRoundabout(), GUICursorDialog::onCmdDeleteElement(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditLaneShape(), GNEViewNet::onCmdEditWalkingAreaShape(), GNEViewNet::onCmdReplaceJunction(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndPoints(), GNEViewNet::onCmdResetJunctionShape(), GUICursorDialog::onCmdSelectElement(), GNEViewNet::onCmdSelectRoundabout(), GUICursorDialog::onCmdSetFrontElement(), GNEViewNet::onCmdSmoothConnectionShape(), GNEViewNet::onCmdSplitJunction(), GNEViewNet::onCmdSplitJunctionReconnect(), GNEInternalLane::onDefault(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openSelectDialogAtCursor(), GNEViewNet::processClick(), and GUIBaseVehicle::~GUIBaseVehicle().
|
protectedinherited |
Draws a legend for the given scheme.
Definition at line 716 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, FONS_ALIGN_RIGHT, GUIPropertyScheme< T >::getColors(), GUIPropertyScheme< T >::getName(), GUIPropertyScheme< T >::getNames(), GUIPropertyScheme< T >::getThresholds(), RGBColor::interpolate(), GUIPropertyScheme< T >::isFixed(), GUIVisualizationSettings::MISSING_DATA, GLHelper::popMatrix(), GLHelper::pushMatrix(), GLHelper::setColor(), StringUtils::startsWith(), std::swap(), toString(), and RGBColor::WHITE.
Referenced by GUISUMOAbstractView::displayLegends().
|
protectedinherited |
Draws a line with ticks, and the length information.
Definition at line 637 of file GUISUMOAbstractView.cpp.
References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, GUISUMOAbstractView::m2p(), GLHelper::popMatrix(), and GLHelper::pushMatrix().
Referenced by GUISUMOAbstractView::displayLegends().
|
protectedinherited |
Draws the configured legends.
Definition at line 703 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::displayColorLegend(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::getLaneEdgeScheme(), GUIPropertySchemeStorage< T >::getScheme(), GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showSizeLegend, GUIVisualizationSettings::showVehicleColorLegend, and GUIVisualizationSettings::vehicleColorer.
Referenced by GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().
|
protectedvirtualinherited |
doInit
Reimplemented in GNEViewNet.
Definition at line 276 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::onConfigure().
|
protectedvirtual |
paint GL
Reimplemented from GUISUMOAbstractView.
Definition at line 356 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::drawDecals(), GUIVisualizationSettings::drawForPositionSelection, GUIVisualizationSettings::forceDrawForPositionSelection, GUINet::getGUIInstance(), GUINet::getVisualisationSpeedUp(), GUIGlobals::gSecondaryShape, GUINet::lock(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::myAdditionallyDrawn, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationSettings::secondaryShape, GUIVisualizationSettings::showGrid, SUMO_const_laneWidth, GUINet::unlock(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
|
protectedinherited |
Draws the stored decals.
Definition at line 1801 of file GUISUMOAbstractView.cpp.
References GUITexturesHelper::add(), GUISUMOAbstractView::checkGDALImage(), GUITexturesHelper::drawTexturedBox(), GUITexturesHelper::getMaxTextureSize(), MFXImageHelper::loadImage(), GUISUMOAbstractView::myDecals, GUISUMOAbstractView::myDecalsLockMutex, GUISUMOAbstractView::p2m(), GLHelper::popMatrix(), GLHelper::popName(), GLHelper::pushMatrix(), GLHelper::pushName(), MFXImageHelper::scalePower2(), GUISUMOAbstractView::screenPos2NetPos(), WRITE_ERROR, Position::x(), and Position::y().
Referenced by doPaintGL(), GNEViewNet::doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
protectedinherited |
Draws frames-per-second indicator.
Definition at line 869 of file GUISUMOAbstractView.cpp.
References GLHelper::drawText(), FONS_ALIGN_LEFT, GUISUMOAbstractView::getFPS(), GLHelper::getMatrixCounter(), GLHelper::getVertexCounter(), GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, and toString().
Referenced by GUISUMOAbstractView::paintGL().
|
inherited |
edit visualization settings (allow modify VisualizationSetings, use carefully)
Definition at line 1650 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationSettings.
Referenced by GUILane::getParameterWindow(), GUIApplicationWindow::onCmdEditChosen(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), and GUIApplicationWindow::onCmdToggleSecondaryShape().
|
virtual |
Ends a video snapshot.
Reimplemented from GUISUMOAbstractView.
Definition at line 748 of file GUIViewTraffic.cpp.
Referenced by ~GUIViewTraffic().
|
privateinherited |
@fbrief filter elements by layer
Definition at line 1987 of file GUISUMOAbstractView.cpp.
References Shape::getShapeLayer(), GLO_POI, and GLO_POLYGON.
Referenced by GUISUMOAbstractView::openObjectDialogAtCursor().
|
protectedinherited |
filter internal lanes in Objects under cursor
Definition at line 555 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::drawJunctionShape, GLO_LANE, and GUISUMOAbstractView::myVisualizationSettings.
Referenced by GUISUMOAbstractView::openObjectDialogAtCursor().
|
inherited |
get changer
Definition at line 185 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger.
Referenced by GUISettingsHandler::applyViewport(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIApplicationWindow::onCmdNeteditNetwork(), GUIApplicationWindow::onCmdNeteditSUMOConfig(), GNEApplicationWindow::onCmdOpenSUMOGUI(), GUIDialog_EditViewport::setValues(), and GUIDialog_EditViewport::setValues().
|
inherited |
get coloring schemes combo
Definition at line 1717 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), and GUISUMOAbstractView::myGlChildWindowParent.
Referenced by GUISettingsHandler::addSettings(), GUIApplicationWindow::eventOccurred(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
|
virtual |
get the current simulation time
Reimplemented from GUISUMOAbstractView.
Definition at line 585 of file GUIViewTraffic.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by checkSnapshots().
|
inherited |
The list of decals to show.
Definition at line 1705 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecals.
Referenced by GNEApplicationWindow::closeAllWindows(), MFXDecalsTable::fillTable(), GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), MFXDecalsTable::onCmdAddRow(), GUIDialog_ViewSettings::onCmdClearDecals(), MFXDecalsTable::onCmdEditRowCheckBox(), MFXDecalsTable::onCmdEditRowSpinner(), MFXDecalsTable::onCmdEditRowString(), MFXDecalsTable::onCmdOpenDecal(), MFXDecalsTable::onCmdRemoveRow(), MFXDecalsTable::onUpdAddRow(), and GUIDialog_ViewSettings::saveDecals().
|
inherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 1711 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecalsLockMutex.
Referenced by GUIDialog_ViewSettings::loadDecals(), GUIDialog_ViewSettings::loadSettings(), and GUIDialog_ViewSettings::onCmdClearDecals().
|
inherited |
Returns the delay of the parent application.
Definition at line 1947 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::getDelay(), and GUISUMOAbstractView::myApp.
Referenced by GUIDialog_ViewSettings::onCmdExportSetting().
|
virtual |
return list of loaded edgeData attributes
Reimplemented from GUISUMOAbstractView.
Definition at line 284 of file GUIViewTraffic.cpp.
References GUINet::getEdgeDataAttrs(), and GUINet::getGUIInstance().
|
virtual |
return list of available edge parameters
Reimplemented from GUISUMOAbstractView.
Definition at line 310 of file GUIViewTraffic.cpp.
References MSEdge::getAllEdges().
|
inherited |
retrieve FPS
Definition at line 857 of file GUISUMOAbstractView.cpp.
References MAX2(), and GUISUMOAbstractView::myFrameDrawTime.
Referenced by GUISUMOAbstractView::drawFPS(), and GUINet::getParameterWindow().
|
inherited |
get grid height
Definition at line 1674 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::checkGDALImage().
|
inherited |
get grid width
Definition at line 1668 of file GUISUMOAbstractView.cpp.
References Boundary::getWidth(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::checkGDALImage().
|
inherited |
get GUIGlChildWindow
Definition at line 863 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myGlChildWindowParent.
Referenced by MFXDecalsTable::Column::Column().
|
protectedinherited |
returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT
Definition at line 480 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor(), and GNEViewNet::updateObjectsUnderCursor().
|
protectedinherited |
returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)
Definition at line 397 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.
Referenced by GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNEViewNet::openObjectDialogAtCursor(), GUISUMOAbstractView::openObjectDialogAtCursor(), and GNEViewNet::processLeftButtonReleaseNetwork().
|
protectedinherited |
returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects)
Definition at line 403 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::SENSITIVITY, and GUISUMOAbstractView::snapToActiveGrid().
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
protectedvirtual |
returns the GUILane at cursor position (implementation depends on view)
Reimplemented from GUISUMOAbstractView.
Definition at line 705 of file GUIViewTraffic.cpp.
References GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GUIGlObjectStorage::gIDStorage, and GUISUMOAbstractView::makeCurrent().
Referenced by onCmdAddRerouter(), onCmdCloseEdge(), onCmdCloseLane(), and onCmdShowReachability().
|
inherited |
get main window
Definition at line 945 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp.
Referenced by GUICursorDialog::buildDialogElements(), and GUICursorDialog::onCmdOpenPropertiesPopUp().
|
virtual |
return list of available attributes for the given meanData id
Reimplemented from GUISUMOAbstractView.
Definition at line 301 of file GUIViewTraffic.cpp.
References GUINet::getGUIInstance(), and GUINet::getMeanDataAttrs().
|
virtual |
return list of loaded edgeData ids (being computed in the current simulation)
Reimplemented from GUISUMOAbstractView.
Definition at line 293 of file GUIViewTraffic.cpp.
References GUINet::getGUIInstance(), and GUINet::getMeanDataIDs().
returns the id of the object at position using GL_SELECT
Definition at line 409 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getClickPriority(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), GUISUMOAbstractView::SENSITIVITY, and GUIGlObjectStorage::unblockObject().
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectUnderCursor(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::getTAZAtPopupPosition(), GNEViewNet::getWalkingAreaAtPopupPosition(), GNEViewNet::onCmdAddEdgeSelected(), GNEViewNet::onCmdAddSelected(), GNEViewNet::onCmdRemoveEdgeSelected(), and GNEViewNet::onCmdRemoveSelected().
|
protectedinherited |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 445 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_NETWORK, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::getObjectsUnderCursor().
|
protectedinherited |
returns the ids of all objects in the given boundary
Definition at line 510 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::doPaintGL(), GUIVisualizationSettings::drawForPositionSelection, GUIVisualizationSettings::drawForRectangleSelection, GUIPerspectiveChanger::getViewport(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::scale, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), SUMO_const_laneWidth, and toString().
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GNEViewNet::onCmdTransformPOI(), and GNEViewNet::recalculateBoundaries().
|
protectedinherited |
returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)
Definition at line 391 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.
|
protectedinherited |
returns the id of the front object under the cursor using GL_SELECT
Definition at line 385 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), and GUISUMOAbstractView::getPositionInformation().
Referenced by getLaneUnderCursor(), GUISUMOAbstractView::onLeftBtnPress(), and GUISUMOAbstractView::paintGL().
|
virtual |
return list of available POI parameters
Reimplemented from GUISUMOAbstractView.
Definition at line 344 of file GUIViewTraffic.cpp.
References MSNet::getInstance(), and MSNet::getShapeContainer().
|
inherited |
get position of current popup
Definition at line 1002 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myPopupPosition.
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::getTAZAtPopupPosition(), GNEViewNet::getWalkingAreaAtPopupPosition(), GNEViewNet::onCmdAddEdgeSelected(), GNEViewNet::onCmdAddSelected(), GNEViewNet::onCmdDeleteGeometryPoint(), GNEViewNet::onCmdEditEdgeEndpoint(), GNEViewNet::onCmdRemoveEdgeSelected(), GNEViewNet::onCmdRemoveSelected(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdSetFirstGeometryPoint(), GNEViewNet::onCmdSplitEdge(), and GNEViewNet::onCmdSplitEdgeBidi().
|
virtualinherited |
Returns the cursor's x/y position within the network.
Definition at line 199 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, and GUISUMOAbstractView::screenPos2NetPos().
Referenced by GNEConsecutiveSelector::addLane(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEWireFrame::buildWireOverView(), GNEMoveElement::calculateNewLane(), GNEViewNet::doPaintGL(), GNETAZ::drawDottedContours(), GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEndGeometryPoint(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEWalkingArea::drawGL(), GNEPoly::drawGL(), GNEJunction::drawJunctionAsShape(), GNELane::drawLaneAsRailway(), GNELane::drawMarkings(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEDemandElement::drawPersonPlanPartial(), GNELane::drawShapeEdited(), GNEStoppingPlace::drawSign(), GNEEdge::drawStartGeometryPoint(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawStopPersonOverStoppingPlace(), GNEEdge::drawTAZElements(), GNEConsecutiveSelector::drawTemporalConsecutiveLanePath(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GNEStop::drawVehicleStop(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor(), GNEParkingSpace::getMoveOperation(), GNEStoppingPlace::getMoveOperation(), GNETAZ::getMoveOperation(), GNEPersonTrip::getMoveOperation(), GNERide::getMoveOperation(), GNEStop::getMoveOperation(), GNETranship::getMoveOperation(), GNETransport::getMoveOperation(), GNEVehicle::getMoveOperation(), GNEWalk::getMoveOperation(), GNEConnection::getMoveOperation(), GNECrossing::getMoveOperation(), GNEEdge::getMoveOperation(), GNEJunction::getMoveOperation(), GNELane::getMoveOperation(), GNEWalkingArea::getMoveOperation(), GNEPOI::getMoveOperation(), GNEPoly::getMoveOperation(), GNEAdditional::getMoveOperationMultiLane(), GNEAdditional::getMoveOperationSingleLane(), GNENeteditAttributes::getNeteditAttributesAndValues(), GUISUMOAbstractView::getObjectsUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEViewNet::onCmdSetCustomGeometryPoint(), GUIDanielPerspectiveChanger::onKeyPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMiddleBtnPress(), GUISUMOAbstractView::onMouseMove(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), GUISUMOAbstractView::openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEDeleteFrame::removeGeometryPoint(), and GUISUMOAbstractView::updatePositionInformationLabel().
|
inlinevirtualinherited |
return list of loaded edgeRelation and tazRelation attributes
Reimplemented in GNEViewNet.
Definition at line 274 of file GUISUMOAbstractView.h.
Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().
|
virtual |
Returns the id of the tracked vehicle (-1 if none)
Reimplemented from GUISUMOAbstractView.
Definition at line 431 of file GUIViewTraffic.cpp.
References myTrackedID.
|
virtual |
return list of available vehicle parameters
Reimplemented from GUISUMOAbstractView.
Definition at line 330 of file GUIViewTraffic.cpp.
References GUINet::getGUIInstance(), GUINet::getGUIVehicleControl(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), GUIVehicleControl::releaseVehicles(), and GUIVehicleControl::secureVehicles().
|
inherited |
get the viewport and create it on first access
Definition at line 1594 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myGUIDialogEditViewport, TL, and GUISUMOAbstractView::updateViewportValues().
Referenced by GUIDialog_ViewSettings::onCmdExportSetting(), and GUISUMOAbstractView::showViewportEditor().
|
inherited |
get visible boundary
Definition at line 281 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), and GUISUMOAbstractView::myChanger.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEVehicleFrame::buildVehicleOverRoute(), and GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary().
|
inherited |
get visualization settings (read only)
Definition at line 1644 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myVisualizationSettings.
Referenced by GNEConnectorFrame::buildConnection(), GNEProhibitionFrame::buildProhibition(), GNEViewNetHelper::LockIcon::checkDrawing(), GNEPathManager::PathDraw::drawPathGeometry(), GNEPathManager::PathDraw::drawPathGeometry(), GNEAdditional::drawSemiCircleGeometryPoint(), GNEStop::getColor(), GNEParkingSpace::getMoveOperation(), GNEStoppingPlace::getMoveOperation(), GNETAZ::getMoveOperation(), GNEStop::getMoveOperation(), GNEConnection::getMoveOperation(), GNECrossing::getMoveOperation(), GNEJunction::getMoveOperation(), GNELane::getMoveOperation(), GNEWalkingArea::getMoveOperation(), GNEPOI::getMoveOperation(), GNEPoly::getMoveOperation(), GNEAdditional::getMoveOperationMultiLane(), GNEAdditional::getMoveOperationSingleLane(), GUILane::getPopUpMenu(), GNEEdge::getSnapRadius(), GNEPoly::getVertexIndex(), GNETAZ::getVertexIndex(), GNEE2DetectorLegendModule::GNEE2DetectorLegendModule(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GUIApplicationWindow::onCmdToggleDrawJunctionShape(), GNEApplicationWindow::onCmdToggleDrawJunctionShape(), GNEApplicationWindow::onCmdToggleGrid(), GUIApplicationWindow::onCmdToggleSecondaryShape(), GNETAZ::removeGeometryPoint(), GNEConnection::removeGeometryPoint(), GNECrossing::removeGeometryPoint(), GNEJunction::removeGeometryPoint(), GNELane::removeGeometryPoint(), GNEPoly::removeGeometryPoint(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), and GNEStop::updateGeometry().
|
inherited |
return windows cursor position
Definition at line 951 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.
Referenced by GUISUMOAbstractView::updatePositionInformationLabel().
|
virtualinherited |
return whether this is a 3D view
Definition at line 287 of file GUISUMOAbstractView.cpp.
Referenced by GUISettingsHandler::applyViewport(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_ViewSettings::onCmdExportSetting(), GUIDialog_EditViewport::setValues(), and GUIDialog_EditViewport::writeXML().
|
inherited |
Check if an object is added in the additional GL visualitation.
[in] | which | The object to check |
Definition at line 1903 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
|
inherited |
returns true, if the edit button was pressed
Definition at line 179 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myInEditMode.
|
inherited |
meter-to-pixels conversion method
Definition at line 892 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::displayLegend(), doPaintGL(), GNEViewNet::doPaintGL(), GUISUMOAbstractView::getObjectsInBoundary(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
A reimplementation due to some internal reasons.
Definition at line 964 of file GUISUMOAbstractView.cpp.
Referenced by GNEViewNet::getAdditionalAtPopupPosition(), GNEViewNet::getAttributeCarriersInBoundary(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), getLaneUnderCursor(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::getTAZAtPopupPosition(), GNEViewNet::getWalkingAreaAtPopupPosition(), GUISUMOAbstractView::makeSnapshot(), GNEViewNet::onCmdAddEdgeSelected(), GNEViewNet::onCmdAddSelected(), GNEViewNet::onCmdRemoveEdgeSelected(), GNEViewNet::onCmdRemoveSelected(), GUISUMOAbstractView::onConfigure(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GUISUMOAbstractView::onPaint(), GNEViewNet::openObjectDialogAtCursor(), GUISUMOAbstractView::openObjectDialogAtCursor(), GNEViewNet::processLeftButtonReleaseNetwork(), and GNEViewNet::recalculateBoundaries().
|
inherited |
Takes a snapshots and writes it into the given file.
The format to use is determined from the extension. If compiled with ffmpeg and a video format is requested it will instantiate a video encoder.
[in] | destFile | The name of the file to write the snapshot into |
[in] | w | The snapshot image width |
[in] | w | The snapshot image height |
Definition at line 1377 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::displayLegends(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawDecals(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GLHelper::pushMatrix(), RGBColor::red(), GUISUMOAbstractView::saveFrame(), MFXImageHelper::saveImage(), GUIVisualizationSettings::scale, SUMORTree::Search(), GLHelper::setGL2PS(), GUIVisualizationSettings::showGrid, MFXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::checkSnapshots(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 615 of file GUIViewTraffic.cpp.
References MSLane::getEdge(), GUIGlObject::getGlID(), getLaneUnderCursor(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 603 of file GUIViewTraffic.cpp.
References MSLane::getEdge(), GUIGlObject::getGlID(), getLaneUnderCursor(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
|
virtual |
interaction with the simulation
Reimplemented from GUISUMOAbstractView.
Definition at line 591 of file GUIViewTraffic.cpp.
References GUILane::closeTraffic(), GUIGlObject::getGlID(), getLaneUnderCursor(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
|
virtual |
highlight edges according to reachability
Reimplemented from GUISUMOAbstractView.
Definition at line 689 of file GUIViewTraffic.cpp.
References GUIPropertySchemeStorage< T >::getActive(), getLaneUnderCursor(), GUIVisualizationSettings::laneColorer, GUISUMOAbstractView::myVisualizationSettings, GUIPropertySchemeStorage< T >::setActive(), and showLaneReachability().
|
virtualinherited |
mouse functions
Definition at line 971 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::checkSnapshots(), GUISUMOAbstractView::doInit(), RGBColor::green(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, GUISUMOAbstractView::myVisualizationSettings, and RGBColor::red().
Referenced by FXDEFMAP().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 721 of file GUIViewTraffic.cpp.
References GUIMainWindow::isFullScreen(), GUISUMOAbstractView::myApp, GUIMainWindow::onCmdFullScreen(), and stopTrack().
|
virtual |
handle mouse click in gaming mode
Reimplemented from GUISUMOAbstractView.
Definition at line 437 of file GUIViewTraffic.cpp.
References GUIBaseVehicle::addActiveAddVisualisation(), NamedObjectCont< T >::begin(), MSTrafficLightLogic::changeStepAndDuration(), Position::distanceTo(), Position::distanceTo2D(), MSPhaseDefinition::duration, NamedObjectCont< T >::end(), MSLane::geometryPositionAtOffset(), MSTLLogicControl::getAllLogics(), MSTrafficLightLogic::getCurrentPhaseDef(), MSTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getCurrentTimeStep(), MSStoppingPlace::getEndLanePosition(), GUIGlObject::getGlID(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSVehicle::getMutableLane(), GUIGlObjectStorage::getObjectBlocking(), MSBaseVehicle::getParameter(), MSTrafficLightLogic::getPhase(), MSTrafficLightLogic::getPhaseNumber(), MSTrafficLightLogic::getPhases(), GUIVehicle::getPosition(), GUISelectedStorage::getSelected(), MSTrafficLightLogic::getSpentDuration(), MSNet::getStoppingPlaces(), MSNet::getTLSControl(), MSNet::getVehicleControl(), MSLane::getVehiclesSecure(), GUIGlObjectStorage::gIDStorage, GLO_VEHICLE, gSelected, MSGlobals::gUseMesoSim, MSTLLogicControl::isActive(), MSPhaseDefinition::isAllRedPhase(), MSPhaseDefinition::isGreenPhase(), SUMOVehicleParameter::line, MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), myTLSGame, MSLane::releaseVehicles(), GUIVehicle::rerouteDRTStop(), GUISelectedStorage::select(), SUMO_TAG_BUS_STOP, GUIGlObjectStorage::unblockObject(), and GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE.
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 570 of file GUIViewTraffic.cpp.
References GUISelectedStorage::clear(), GUIGlObjectStorage::getObjectBlocking(), GUISelectedStorage::getSelected(), GUIGlObjectStorage::gIDStorage, GLO_VEHICLE, gSelected, GUIBaseVehicle::removeActiveAddVisualisation(), GUIGlObjectStorage::unblockObject(), and GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE.
|
virtualinherited |
keyboard functions
Reimplemented in GNEViewNet.
Definition at line 1315 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::altKeyPressed, GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myVisualizationSettings, and GUIPerspectiveChanger::onKeyPress().
Referenced by FXDEFMAP(), GUISUMOViewParent::onKeyPress(), GNEViewNet::onKeyPress(), and GNEViewParent::onKeyPress().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1348 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::altKeyPressed, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myVisualizationSettings, and GUIPerspectiveChanger::onKeyRelease().
Referenced by FXDEFMAP(), GUISUMOViewParent::onKeyRelease(), GNEViewNet::onKeyRelease(), and GNEViewParent::onKeyRelease().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1036 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_PERSON, GLO_REROUTER_EDGE, GLO_VEHICLE, gSelected, GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myChanger, GUIGlObject::onLeftBtnPress(), GUIPerspectiveChanger::onLeftBtnPress(), GUISUMOAbstractView::startTrack(), and GUISelectedStorage::toggleSelection().
Referenced by FXDEFMAP().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1085 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPositionInformation(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::onGamingClick(), and GUIPerspectiveChanger::onLeftBtnRelease().
Referenced by FXDEFMAP(), and GNEViewNet::onLeftBtnRelease().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1097 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUICursorSubSys::getCursor(), GUIMainWindow::isGaming(), MOVEVIEW, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPanning, and GUIPerspectiveChanger::onMiddleBtnPress().
Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnPress().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1114 of file GUISUMOAbstractView.cpp.
References DEFAULT, GUISUMOAbstractView::destroyPopup(), GUICursorSubSys::getCursor(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPanning, and GUIPerspectiveChanger::onMiddleBtnRelease().
Referenced by FXDEFMAP(), and GNEViewNet::onMiddleBtnRelease().
|
virtualinherited |
Definition at line 1206 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1178 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPositionInformation(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIDialog_EditViewport::haveGrabbed(), Position::INVALID, MID_CURSORDIALOG_FRONT, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGUIDialogEditViewport, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myPopupPosition, GUIPerspectiveChanger::onMouseMove(), GUIDialog_EditViewport::setValues(), and GUISUMOAbstractView::updatePositionInformationLabel().
Referenced by FXDEFMAP(), GNEViewNet::onMouseMove(), and GUISUMOAbstractView::onRightBtnRelease().
|
virtualinherited |
Definition at line 1162 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGUIDialogEditViewport, GUIPerspectiveChanger::onMouseWheel(), GUIDialog_EditViewport::setValues(), and GUISUMOAbstractView::updatePositionInformationLabel().
Referenced by FXDEFMAP().
|
virtualinherited |
Definition at line 989 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, and GUISUMOAbstractView::paintGL().
Referenced by FXDEFMAP(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1130 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onRightBtnPress().
Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnPress().
|
virtualinherited |
Reimplemented in GNEViewNet.
Definition at line 1141 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPositionInformation(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::onGamingRightClick(), GUISUMOAbstractView::onMouseMove(), GUIPerspectiveChanger::onRightBtnRelease(), and GUISUMOAbstractView::openObjectDialogAtCursor().
Referenced by FXDEFMAP(), and GNEViewNet::onRightBtnRelease().
|
virtualinherited |
hook to react on change in visualization settings
Definition at line 373 of file GUISUMOAbstractView.cpp.
Referenced by FXDEFMAP().
|
inherited |
open object dialog for the given object
Definition at line 1284 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp, GUISUMOAbstractView::myCurrentObjectsDialog, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::openPopupDialog(), and GUIGLObjectPopupMenu::PROPERTIES.
Referenced by GNEViewNet::openObjectDialogAtCursor(), and GUISUMOAbstractView::openObjectDialogAtCursor().
|
virtualinherited |
open object dialog at the cursor position
Reimplemented in GNEViewNet.
Definition at line 1212 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::filterGUIGLObjectsByLayer(), GUISUMOAbstractView::filterInernalLanes(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUIGlObjectStorage::getNetObject(), GUIGlObjectStorage::gIDStorage, GLO_CONTAINER, GLO_CONTAINERFLOW, GLO_EDGE, GLO_FLOW, GLO_PERSON, GLO_PERSONFLOW, GLO_ROUTEFLOW, GLO_TLLOGIC, GLO_TRIP, GLO_VEHICLE, GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, and GUISUMOAbstractView::openObjectDialog().
Referenced by GUISUMOAbstractView::onRightBtnRelease().
|
protectedinherited |
open popup dialog
Definition at line 1847 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getPositionInformation(), MAX2(), MIN2(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUISUMOAbstractView::myPopupPosition, and GUIPerspectiveChanger::onRightBtnRelease().
Referenced by GNEViewNet::openDeleteDialogAtCursor(), GUISUMOAbstractView::openObjectDialog(), GNEViewNet::openObjectDialogAtCursor(), and GNEViewNet::openSelectDialogAtCursor().
|
inherited |
pixels-to-meters conversion method
Definition at line 898 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUIDanielPerspectiveChanger::changeCanvasSizeLeft(), GUISUMOAbstractView::drawDecals(), and GUIDanielPerspectiveChanger::move().
|
protectedinherited |
FOX needs this.
performs the painting of the simulation
Definition at line 297 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::centerTo(), GLHelper::checkCounterMatrix(), GLHelper::checkCounterName(), GUISUMOAbstractView::displayLegends(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawFPS(), GUIVisualizationSettings::fps, SysUtils::getCurrentMillis(), GUIGlChildWindow::getGUIMainWindowParent(), GUISUMOAbstractView::getObjectUnderCursor(), GUIMainWindow::getStaticTooltipView(), GUISUMOAbstractView::getTrackedID(), RGBColor::green(), MFXStaticToolTip::hideStaticToolTip(), GUIGlObject::INVALID_ID, MFXStaticToolTip::isStaticToolTipEnabled(), GUISUMOAbstractView::myFrameDrawTime, GUISUMOAbstractView::myGlChildWindowParent, GUISUMOAbstractView::myVisualizationSettings, RGBColor::red(), GLHelper::resetMatrixCounter(), GLHelper::resetVertexCounter(), and GUISUMOAbstractView::showToolTipFor().
Referenced by GUISUMOAbstractView::onPaint().
|
protectedinherited |
paints a grid
Definition at line 595 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::addSize, GUIVisualizationSizeSettings::getExaggeration(), GUIPerspectiveChanger::getViewport(), GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::scale, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by doPaintGL(), GNEViewNet::doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
virtual |
recalculate boundaries
Implements GUISUMOAbstractView.
Definition at line 94 of file GUIViewTraffic.cpp.
|
virtualinherited |
recenters the view
Definition at line 904 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, and GUIPerspectiveChanger::setViewport().
Referenced by GUISettingsHandler::applyViewport(), GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
remove viewport
Definition at line 1656 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myGUIDialogEditViewport.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
|
inherited |
remove view settings
Definition at line 1662 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myGUIDialogViewSettings.
|
inherited |
Removes an object from the list of objects that show additional things.
[in] | which | The object to remove |
Definition at line 1887 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
|
inherited |
replace PopUp
Definition at line 1020 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUIPerspectiveChanger::onRightBtnRelease(), and GUIGLObjectPopupMenu::removePopupFromObject().
Referenced by GUICursorDialog::onCmdOpenPropertiesPopUp().
|
virtual |
retrieve breakpoints from the current runThread
Reimplemented from GUISUMOAbstractView.
Definition at line 770 of file GUIViewTraffic.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::retrieveBreakpoints().
|
virtual |
Adds a frame to a video snapshot which will be initialized if neccessary.
Reimplemented from GUISUMOAbstractView.
Definition at line 734 of file GUIViewTraffic.cpp.
References GUIMainWindow::getDelay(), GUISUMOAbstractView::myApp, and UNUSED_PARAMETER.
|
inherited |
Translate screen position to network position.
Definition at line 224 of file GUISUMOAbstractView.cpp.
References DEG2RAD, Boundary::getCenter(), Boundary::getHeight(), GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GUISUMOAbstractView::myChanger, Position::rotateAround2D(), Boundary::xmin(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::getPositionInformation().
|
inherited |
Sets the breakpoints of the parent application.
Definition at line 1959 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setBreakpoints().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtual |
set color scheme
Reimplemented from GUISUMOAbstractView.
Definition at line 161 of file GUIViewTraffic.cpp.
References GUICompleteSchemeStorage::contains(), GUIVisualizationSettings::gaming, GUICompleteSchemeStorage::get(), GUIDialog_ViewSettings::getCurrentScheme(), gSchemeStorage, GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myGUIDialogViewSettings, GUISUMOAbstractView::myVisualizationSettings, and GUIDialog_ViewSettings::setCurrentScheme().
|
inherited |
Sets the delay of the parent application.
Definition at line 1953 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setDelay().
Referenced by GUIDialog_ViewSettings::loadSettings().
|
virtualinherited |
applies the given viewport settings
Definition at line 1621 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setRotation(), GUIPerspectiveChanger::setViewportFrom(), Position::x(), Position::y(), and Position::z().
Referenced by GUISettingsHandler::applyViewport(), GUISUMOAbstractView::copyViewportTo(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIDialog_EditViewport::onCmdCancel(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdOk(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
Returns the gl-id of the object under the given coordinates.
Definition at line 957 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myMouseHotspotX, GUISUMOAbstractView::myMouseHotspotY, GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.
Referenced by GUIDanielPerspectiveChanger::onMouseMove().
|
static |
Definition at line 627 of file GUIViewTraffic.cpp.
References GUISelectedStorage::clear(), MSEdge::getAllEdges(), MSLane::getEdge(), GUIGlObject::getGlID(), MSEdge::getLanes(), MSEdge::getLength(), MSEdge::getPredecessors(), MSEdge::getSpeedLimit(), MSEdge::getSuccessors(), gSelected, INVALID_DOUBLE, MAX2(), SUMOVTypeParameter::VClassDefaultValues::maxSpeed, MIN2(), GUISelectedStorage::notifyChanged(), GUISelectedStorage::select(), GUILane::setReachability(), SumoVehicleClassStrings, and SVC_PEDESTRIAN.
Referenced by onCmdShowReachability().
|
protectedinherited |
invokes the tooltip for the given object
Definition at line 580 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getGUIMainWindowParent(), GUIGlObjectStorage::getObjectBlocking(), GUIMainWindow::getStaticTooltipView(), GUIGlObjectStorage::gIDStorage, MFXStaticToolTip::hideStaticToolTip(), GUIGlObject::INVALID_ID, GUISUMOAbstractView::myGlChildWindowParent, and MFXStaticToolTip::showStaticToolTip().
Referenced by GUISUMOAbstractView::paintGL().
|
virtualinherited |
show viewport editor
Definition at line 1612 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUISUMOAbstractView::getViewportEditor(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZPos(), Position::INVALID, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGUIDialogEditViewport, GUIDialog_EditViewport::setOldValues(), and GUIDialog_EditViewport::show().
Referenced by GNEApplicationWindow::onCmdEditViewport(), and GUIGlChildWindow::onCmdEditViewport().
|
inherited |
show viewsscheme editor
Definition at line 1581 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myGUIDialogViewSettings, GUISUMOAbstractView::myVisualizationSettings, GUIDialog_ViewSettings::setCurrent(), and GUIDialog_ViewSettings::show().
Referenced by GNEApplicationWindow::onCmdEditViewScheme(), and GUIGlChildWindow::onCmdEditViewScheme().
|
inherited |
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 205 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myVisualizationSettings, Position::setx(), Position::sety(), Position::setz(), GUIVisualizationSettings::showGrid, Position::x(), Position::y(), and Position::z().
Referenced by GNEConsecutiveSelector::addLane(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEMoveElement::calculateLaneOffset(), GNEMoveElement::commitMove(), GNEViewNet::drawTemporalDrawingShape(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GNEEdge::editEndpoint(), GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor(), GNENeteditAttributes::getNeteditAttributesAndValues(), GNEEdge::getSplitPos(), GNEPoly::getVertexIndex(), GNETAZ::getVertexIndex(), GNEMoveElement::moveElement(), GNECreateEdgeFrame::processClick(), and GNEViewNet::processLeftButtonPressNetwork().
|
virtual |
Starts vehicle tracking.
[in] | id | The glID of the vehicle to track |
Reimplemented from GUISUMOAbstractView.
Definition at line 412 of file GUIViewTraffic.cpp.
References GUIBaseVehicle::addActiveAddVisualisation(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, myTrackedID, and GUIBaseVehicle::VO_TRACK.
|
virtual |
Stops vehicle tracking.
Reimplemented from GUISUMOAbstractView.
Definition at line 425 of file GUIViewTraffic.cpp.
References GUIGlObject::INVALID_ID, and myTrackedID.
Referenced by onDoubleClicked().
|
protectedvirtualinherited |
update position information labels
Definition at line 245 of file GUISUMOAbstractView.cpp.
References GeoConvHelper::cartesian2geo(), GUIMainWindow::getCartesianLabel(), GeoConvHelper::getFinal(), GUIMainWindow::getGeoLabel(), OptionsCont::getOptions(), GUISUMOAbstractView::getPositionInformation(), GUIMainWindow::getTestFrame(), GUIMainWindow::getTestLabel(), GUISUMOAbstractView::getWindowCursorPosition(), gPrecisionGeo, GUISUMOAbstractView::myApp, TL, toString(), Position::x(), and Position::y().
Referenced by GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::onMouseMove(), and GUISUMOAbstractView::onMouseWheel().
|
inherited |
A method that updates the tooltip.
Definition at line 191 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getGUIMainWindowParent(), GUIMainWindow::getStaticTooltipView(), MFXStaticToolTip::isStaticToolTipEnabled(), and GUISUMOAbstractView::myGlChildWindowParent.
Referenced by GUIDanielPerspectiveChanger::onKeyPress(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
|
virtualinherited |
update the viewport chooser with the current view values
Definition at line 1604 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getRotation(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGUIDialogEditViewport, and GUIDialog_EditViewport::setValues().
Referenced by GUISUMOAbstractView::getViewportEditor().
|
inherited |
Definition at line 1566 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::mySnapshotCondition, GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.
|
virtualinherited |
zoom interface for 3D view
Definition at line 292 of file GUISUMOAbstractView.cpp.
Referenced by GUIDialog_EditViewport::onCmdChanged().
|
protectedinherited |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 603 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addAdditionalGLVisualisation(), doPaintGL(), GUISUMOAbstractView::isAdditionalGLVisualisationEnabled(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Internal information whether doInit() was called.
Definition at line 568 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onPaint(), GNEViewNet::openObjectDialogAtCursor(), and GUISUMOAbstractView::openObjectDialogAtCursor().
|
protectedinherited |
The application.
Definition at line 532 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::aksChangeSupermode(), buildViewToolBars(), GNEViewNet::doPaintGL(), GUISUMOAbstractView::getDelay(), GUISUMOAbstractView::getMainWindow(), GUISUMOAbstractView::getObjectsInBoundary(), onDoubleClicked(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openObjectDialog(), GUISUMOAbstractView::openPopupDialog(), retrieveBreakpoints(), saveFrame(), GUISUMOAbstractView::setBreakpoints(), setColorScheme(), GUISUMOAbstractView::setDelay(), GNEViewNet::setStatusBarText(), and GUISUMOAbstractView::updatePositionInformationLabel().
|
protectedinherited |
The perspective changer.
Definition at line 541 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::copyViewportTo(), GUISUMOAbstractView::getChanger(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getVisibleBoundary(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openPopupDialog(), GUISUMOAbstractView::p2m(), GUISUMOAbstractView::paintGLGrid(), GNEViewNet::processClick(), GUISUMOAbstractView::recenterView(), GUISUMOAbstractView::replacePopup(), GNEViewNet::saveVisualizationSettings(), GUISUMOAbstractView::screenPos2NetPos(), GUISUMOAbstractView::setViewportFromToRot(), GUISUMOAbstractView::showViewportEditor(), GUISUMOAbstractView::updateViewportValues(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
clicked poup position
Definition at line 556 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::openDeleteDialogAtCursor(), GNEViewNet::openObjectDialogAtCursor(), and GNEViewNet::openSelectDialogAtCursor().
|
protectedinherited |
vector with current objects dialog
Definition at line 562 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GNEViewNet::drawTemporalRoundabout(), and GUISUMOAbstractView::openObjectDialog().
|
protectedinherited |
The list of decals to show.
Definition at line 583 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addDecals(), GUISUMOAbstractView::drawDecals(), GUISUMOAbstractView::getDecals(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 586 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::getDecalsLockMutex().
|
protectedinherited |
counter for measuring rendering time
Definition at line 606 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getFPS(), and GUISUMOAbstractView::paintGL().
|
protectedinherited |
The parent window.
Definition at line 535 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getColoringSchemesCombo(), GUISUMOAbstractView::getGUIGlChildWindow(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updateToolTip().
|
protectedinherited |
The visualization speed-up.
Definition at line 538 of file GUISUMOAbstractView.h.
Referenced by GNEViewNet::doPaintGL(), GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::recenterView().
|
protectedinherited |
viewport chooser
Definition at line 571 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::remove(), GUISUMOAbstractView::showViewportEditor(), GUISUMOAbstractView::updateViewportValues(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Visualization changer.
Definition at line 577 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::remove(), setColorScheme(), GNEViewNet::setColorScheme(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Information whether too-tip informations shall be generated.
Definition at line 547 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::isInEditMode().
|
protectedinherited |
Offset to the mouse-hotspot from the mouse position.
Definition at line 550 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 550 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Panning flag.
Definition at line 544 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::onMiddleBtnPress(), GUISUMOAbstractView::onMiddleBtnRelease(), and GNEViewNet::updateCursor().
|
mutableprotectedinherited |
poly draw lock
Definition at line 600 of file GUISUMOAbstractView.h.
|
protectedinherited |
The current popup-menu.
Definition at line 553 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onMouseMove(), GNEViewNet::openDeleteDialogAtCursor(), GUISUMOAbstractView::openObjectDialog(), GNEViewNet::openObjectDialogAtCursor(), GUISUMOAbstractView::openPopupDialog(), GNEViewNet::openSelectDialogAtCursor(), GUISUMOAbstractView::replacePopup(), and GUISUMOAbstractView::~GUISUMOAbstractView().
The current popup-menu position.
Definition at line 559 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::getPopupPosition(), GUISUMOAbstractView::onMouseMove(), and GUISUMOAbstractView::openPopupDialog().
|
protectedinherited |
the semaphore when waiting for snapshots to finish
Definition at line 597 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
protectedinherited |
Snapshots.
Definition at line 591 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conflicts.
Definition at line 594 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addSnapshot(), GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::waitForSnapshots().
|
private |
whether game mode was set to 'tls'
Definition at line 151 of file GUIViewTraffic.h.
Referenced by onGamingClick().
|
private |
Definition at line 148 of file GUIViewTraffic.h.
Referenced by getTrackedID(), startTrack(), and stopTrack().
|
protectedinherited |
visualization settings
Definition at line 565 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), buildViewToolBars(), GNEViewNet::buildViewToolBars(), GUISUMOAbstractView::displayLegends(), doPaintGL(), GNEViewNet::doPaintGL(), GNEViewNet::drawDeleteContour(), GNEViewNet::drawDeleteDottedContour(), GNEViewNet::drawSelectContour(), GNEViewNet::drawSelectDottedContour(), GNEViewNet::drawTemporalE1TLSLines(), GNEViewNet::drawTemporalJunction(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::drawTemporalRoundabout(), GNEViewNet::drawTemporalSplitJunction(), GNEViewNet::drawTestsCircle(), GUISUMOAbstractView::editVisualisationSettings(), GUISUMOAbstractView::filterInernalLanes(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::makeSnapshot(), GNEViewNet::onCmdEditConnectionShape(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditWalkingAreaShape(), onCmdShowReachability(), GNEViewNet::onCmdToggleDrawJunctionShape(), GNEViewNet::onCmdToggleShowConnections(), GNEViewNet::onCmdToggleShowGrid(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::paintGLGrid(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::recalculateBoundaries(), GNEViewNet::saveVisualizationSettings(), setColorScheme(), GNEViewNet::setColorScheme(), GNEViewNet::setSelectorFrameScale(), GUISUMOAbstractView::showViewschemeEditor(), GUISUMOAbstractView::snapToActiveGrid(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Position of the cursor relative to the window.
Definition at line 574 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::getWindowCursorPosition(), and GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 574 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::getWindowCursorPosition(), and GUISUMOAbstractView::setWindowCursorPosition().
|
staticprivateinherited |
Definition at line 631 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUISUMOAbstractView::getGUIGlObjectsUnderSnappedCursor(), GUISUMOAbstractView::getObjectAtPosition(), and GUISUMOAbstractView::getObjectsUnderCursor().