![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEViewNet.h>
Public Member Functions | |
void | abortOperation (bool clearSelection=true) |
void | addDecals (const std::vector< Decal > &decals) |
bool | autoSelectNodes () |
virtual void | buildViewToolBars (GUIGlChildWindow &) |
builds the view toolbars More... | |
virtual void | centerTo (GUIGlID id, bool applyZoom, SUMOReal zoomDist=20) |
centers to the chosen artifact More... | |
void | centerTo (const Boundary &bound) |
centers to the chosen artifact More... | |
bool | changeAllPhases () const |
void | destroyPopup () |
destoys the popup More... | |
GUIPerspectiveChanger & | getChanger () const |
FXComboBox & | getColoringSchemesCombo () |
SUMOReal | getDelay () const |
Returns the delay of the parent application. More... | |
SUMOReal | getGridHeight () const |
SUMOReal | getGridWidth () const |
GNENet * | getNet () |
Position | getPositionInformation () const |
Returns the cursor's x/y position within the network. More... | |
GNESelector * | getSelector () |
GNETLSEditor * | getTLSEditor () |
virtual int | getTrackedID () const |
GUIDialog_EditViewport * | getViewportEditor () |
get the viewport and create it on first access More... | |
Boundary | getVisibleBoundary () const |
GUIVisualizationSettings * | getVisualisationSettings () const |
GUIVisualizationSettings * | getVisualisationSettings () |
GNEViewNet (FXComposite *tmpParent, FXComposite *actualParent, GUIMainWindow &app, GNEViewParent *viewParent, GNENet *net, FXGLVisual *glVis, FXGLCanvas *share, FXToolBar *toolBar) | |
void | hotkeyDel () |
void | hotkeyEnter () |
bool | isInEditMode () |
returns true, if the edit button was pressed More... | |
SUMOReal | m2p (SUMOReal meter) const |
meter-to-pixels conversion method More... | |
FXbool | makeCurrent () |
A reimplementation due to some internal reasons. More... | |
void | markPopupPosition () |
long | onCmdAddReversedEdge (FXObject *, FXSelector, void *) |
add reversed edge More... | |
long | onCmdChangeMode (FXObject *, FXSelector, void *) |
sets edit mode via combo box More... | |
long | onCmdDeleteGeometry (FXObject *, FXSelector, void *) |
delete the closes geometry point More... | |
long | onCmdDuplicateLane (FXObject *, FXSelector, void *) |
duplicate selected lane More... | |
long | onCmdNodeReplace (FXObject *, FXSelector, void *) |
replace node by geometry More... | |
long | onCmdNodeShape (FXObject *, FXSelector, void *) |
input custom node shape More... | |
long | onCmdResetEdgeEndpoint (FXObject *, FXSelector, void *) |
restore geometry endpoint to node position More... | |
long | onCmdReverseEdge (FXObject *, FXSelector, void *) |
reverse edge More... | |
long | onCmdSetEdgeEndpoint (FXObject *, FXSelector, void *) |
set non-default geometry endpoint More... | |
long | onCmdSimplifyShape (FXObject *, FXSelector, void *) |
simply shape of current polygon More... | |
long | onCmdSplitEdge (FXObject *, FXSelector, void *) |
split edge at cursor position More... | |
long | onCmdSplitEdgeBidi (FXObject *, FXSelector, void *) |
split edge at cursor position More... | |
long | onCmdStraightenEdges (FXObject *, FXSelector, void *) |
makes selected edges straight More... | |
virtual long | onConfigure (FXObject *, FXSelector, void *) |
virtual void | onGamingClick (Position) |
virtual long | onKeyPress (FXObject *o, FXSelector sel, void *data) |
virtual long | onKeyRelease (FXObject *o, FXSelector sel, void *data) |
virtual long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
virtual long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
virtual long | onMouseLeft (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 () |
SUMOReal | p2m (SUMOReal pixel) const |
pixels-to-meters conversion method More... | |
virtual void | recenterView () |
recenters the view More... | |
void | remove (GUIDialog_EditViewport *) |
void | remove (GUIDialog_ViewSettings *) |
bool | selectEdges () |
bool | setColorScheme (const std::string &name) |
void | setDelay (SUMOReal delay) |
Sets the delay of the parent application. More... | |
void | setEditModeFromHotkey (FXushort selid) |
sets edit mode (from hotkey) More... | |
void | setSelectionScaling (SUMOReal selectionScale) |
void | setStatusBarText (const std::string &text) |
virtual void | setViewport (const Position &lookFrom, const Position &lookAt) |
applies the given viewport settings More... | |
void | setWindowCursorPosition (FXint x, FXint y) |
Returns the information whether rotation is allowd. More... | |
void | showToolTips (bool val) |
virtual void | showViewportEditor () |
void | showViewschemeEditor () |
virtual void | startTrack (int) |
virtual void | stopTrack () |
void | updateControls () |
update control contents after undo/redo or recompute More... | |
void | updateToolTip () |
A method that updates the tooltip. More... | |
virtual | ~GNEViewNet () |
destructor More... | |
long | onLeftBtnPress (FXObject *, FXSelector, void *) |
long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
long | onMouseMove (FXObject *, FXSelector, void *) |
Dealing with snapshots | |
void | setSnapshots (std::map< SUMOTime, std::string > snaps) |
Sets the snapshot time to file map. More... | |
std::string | makeSnapshot (const std::string &destFile) |
Takes a snapshots and writes it into the given file. More... | |
virtual void | saveFrame (const std::string &destFile, FXColor *buf) |
Adds a frame to a video snapshot which will be initialized if neccessary. More... | |
virtual void | endSnapshot () |
Ends a video snapshot. More... | |
virtual void | checkSnapshots () |
Checks whether it is time for a snapshot. More... | |
virtual SUMOTime | getCurrentTimeStep () const |
get the current simulation time More... | |
Additional visualisations | |
bool | addAdditionalGLVisualisation (GUIGlObject *const which) |
Adds an object to call its additional visualisation method. More... | |
bool | removeAdditionalGLVisualisation (GUIGlObject *const which) |
Removes an object from the list of objects that show additional things. More... | |
Protected Member Functions | |
void | applyGLTransform (bool fixRatio=true) |
FXImage * | checkGDALImage (Decal &d) |
check whether we can read image data or position with gdal More... | |
void | displayLegend () |
void | doInit () |
called after some features are already initialized More... | |
int | doPaintGL (int mode, const Boundary &bound) |
void | drawDecals () |
Draws the stored decals. More... | |
GUIGlID | getObjectAtPosition (Position pos) |
returns the id of the object at position using GL_SELECT More... | |
std::vector< GUIGlID > | getObjectsAtPosition (Position pos, SUMOReal radius) |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More... | |
std::vector< GUIGlID > | getObjectsInBoundary (const Boundary &bound) |
returns the ids of all objects in the given boundary More... | |
GUIGlID | getObjectUnderCursor () |
returns the id of the object under the cursor using GL_SELECT More... | |
GNEViewNet () | |
FOX needs this. More... | |
void | paintGL () |
performs the painting of the simulation More... | |
void | paintGLGrid () |
paints a grid More... | |
void | showToolTipFor (unsigned int id) |
invokes the tooltip for the given object More... | |
void | updatePositionInformation () const |
Protected Attributes | |
std::map< 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... | |
SUMORTree * | myGrid |
The visualization speed-up. More... | |
bool | myInEditMode |
Information whether too-tip informations shall be generated. More... | |
int | myMouseHotspotX |
Offset to the mouse-hotspot from the mouse position. More... | |
int | myMouseHotspotY |
GUIGlChildWindow * | myParent |
The parent window. More... | |
MFXMutex | myPolyDrawLock |
GUIGLObjectPopupMenu * | myPopup |
The current popup-menu. More... | |
std::map< SUMOTime, std::string > | mySnapshots |
bool | myUseToolTips |
GUIDialog_EditViewport * | myViewportChooser |
GUIDialog_ViewSettings * | myVisualizationChanger |
GUIVisualizationSettings * | myVisualizationSettings |
FXint | myWindowCursorPositionX |
Position of the cursor relative to the window. More... | |
FXint | myWindowCursorPositionY |
Optionally shown decals | |
std::vector< Decal > | myDecals |
The list of decals to show. More... | |
MFXMutex | myDecalsLock |
The mutex to use before accessing the decals list in order to avoid thread conficts. More... | |
Private Member Functions | |
void | buildEditModeControls () |
adds controls for setting the edit mode More... | |
void | deleteSelectedEdges () |
delete all currently selected edges More... | |
void | deleteSelectedJunctions () |
delete all currently selected junctions More... | |
GNEEdge * | getEdgeAtCursorPosition (Position &pos) |
try to retrieve an edge at the given position More... | |
std::set< GNEEdge * > | getEdgesAtCursorPosition (Position &pos) |
try to retrieve multiple edges at the given position More... | |
GNEJunction * | getJunctionAtCursorPosition (Position &pos) |
try to retrieve a junction at the given position More... | |
GNELane * | getLaneAtCurserPosition (Position &pos) |
try to retrieve a lane at the given position More... | |
bool | mergeJunctions (GNEJunction *moved) |
try to merge moved junction with another junction in that spot return true if merging did take place More... | |
void | removeCurrentPoly () |
remove the currently edited polygon More... | |
void | setEditMode (EditMode mode) |
void | updateModeSpecificControls () |
updates mode specific controls More... | |
Private Attributes | |
FXMenuCheck * | myChangeAllPhases |
GNEConnector * | myConnector |
GNEPoly * | myCurrentPoly |
EditMode | myEditMode |
FXMenuCheck * | myExtendToEdgeNodes |
GNEInspector * | myInspector |
GNENet * | myNet |
Position | myPopupSpot |
EditMode | myPreviousEditMode |
FXMenuCheck * | mySelectEdges |
GNESelector * | mySelector |
GNETLSEditor * | myTLSEditor |
GNEUndoList * | myUndoList |
a reference to the undolist maintained in the application More... | |
the state-variables of the create-edge state-machine | |
GNEJunction * | myCreateEdgeSource |
FXMenuCheck * | myChainCreateEdge |
FXMenuCheck * | myAutoCreateOppositeEdge |
the state-variables of the move state-machine | |
GNEJunction * | myJunctionToMove |
GNEEdge * | myEdgeToMove |
the edge of which geometry is being moved More... | |
GNEPoly * | myPolyToMove |
the poly of which geometry is being moved More... | |
Position | myMoveSrc |
position from which to move edge geometry More... | |
bool | myMoveSelection |
whether a selection is being moved More... | |
FXMenuCheck * | myWarnAboutMerge |
whether we should warn about merging junctions More... | |
state-variables of select-mode | |
bool | myAmInRectSelect |
Position | mySelCorner1 |
Position | mySelCorner2 |
FXToolBar * | myToolbar |
a reference to the toolbar in myParent More... | |
FXComboBox * | myEditModesCombo |
combo box for selecting the edit mode More... | |
StringBijection< EditMode > | myEditModeNames |
since we cannot switch on strings we map the mode names to an enum More... | |
Microsocopic view at the simulation
Definition at line 87 of file GNEViewNet.h.
GNEViewNet::GNEViewNet | ( | FXComposite * | tmpParent, |
FXComposite * | actualParent, | ||
GUIMainWindow & | app, | ||
GNEViewParent * | viewParent, | ||
GNENet * | net, | ||
FXGLVisual * | glVis, | ||
FXGLCanvas * | share, | ||
FXToolBar * | toolBar | ||
) |
Definition at line 101 of file GNEViewNet.cpp.
References GUIPropertyScheme< T >::addColor(), GUIPropertySchemeStorage< T >::addScheme(), RGBColor::BLACK, RGBColor::BLUE, RGBColor::CYAN, RGBColor::GREEN, RGBColor::GREY, RGBColor::MAGENTA, RGBColor::ORANGE, RGBColor::RED, GUIPropertyScheme< T >::setAllowsNegativeValues(), SUMOReal, SVC_BICYCLE, SVC_BUS, SVC_DELIVERY, SVC_MOPED, SVC_NON_ROAD, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_SHIP, SVC_TAXI, SVCAll, and RGBColor::YELLOW.
|
virtual |
destructor
Definition at line 252 of file GNEViewNet.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 218 of file GNEViewNet.h.
void GNEViewNet::abortOperation | ( | bool | clearSelection = true | ) |
Definition at line 653 of file GNEViewNet.cpp.
References GUISelectedStorage::clear(), GNE_MODE_CONNECT, GNE_MODE_MOVE, GNE_MODE_SELECT, GNE_MODE_TLS, gSelected, myAmInRectSelect, myConnector, myCreateEdgeSource, myEditMode, myTLSEditor, myUndoList, GNEConnector::onCmdCancel(), GNETLSEditor::onCmdCancel(), GNEUndoList::p_abort(), removeCurrentPoly(), and GNEJunction::unMarkAsCreateEdgeSource().
Referenced by GNEApplicationWindow::onCmdAbort(), and setEditMode().
|
inherited |
Adds an object to call its additional visualisation method.
[in] | which | The object to add |
Definition at line 1085 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myAdditionallyDrawn.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), and GUISUMOAbstractView::onGamingClick().
|
inlineinherited |
Definition at line 322 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::myDecals.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GUIApplicationWindow::handleEvent_SimulationLoaded().
|
protectedinherited |
Definition at line 1116 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GLO_MAX, GUISUMOAbstractView::myChanger, SUMOReal, Boundary::xmin(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::doInit(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().
|
inline |
Definition at line 187 of file GNEViewNet.h.
References myExtendToEdgeNodes.
Referenced by GNESelector::handleIDs().
|
private |
adds controls for setting the edit mode
Definition at line 1046 of file GNEViewNet.cpp.
References StringBijection< T >::getStrings(), GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_SELECT, GNE_MODE_TLS, StringBijection< T >::insert(), MID_GNE_MODE_CHANGE, myAutoCreateOppositeEdge, myChainCreateEdge, myChangeAllPhases, myEditModeNames, myEditModesCombo, myExtendToEdgeNodes, mySelectEdges, myToolbar, myWarnAboutMerge, and StringBijection< T >::size().
|
virtual |
builds the view toolbars
Reimplemented from GUISUMOAbstractView.
Definition at line 260 of file GNEViewNet.cpp.
References GUIIconSubSys::getIcon(), GUIGlChildWindow::getLocatorPopup(), ICON_LOCATEEDGE, ICON_LOCATEJUNCTION, ICON_LOCATETLS, MID_LOCATEEDGE, MID_LOCATEJUNCTION, and MID_LOCATETLS.
Referenced by GNEViewParent::GNEViewParent().
|
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 506 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::centerTo(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setViewport(), GUIGlObjectStorage::unblockObject(), and GUISUMOAbstractView::updatePositionInformation().
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIGLObjectPopupMenu::onCmdCenter(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processSet(), and GUIGlChildWindow::setView().
|
inherited |
centers to the chosen artifact
Definition at line 523 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::setViewport().
|
inline |
Definition at line 207 of file GNEViewNet.h.
References doInit(), doPaintGL(), and myChangeAllPhases.
Referenced by GNETLSEditor::handleChange().
|
protectedinherited |
check whether we can read image data or position with gdal
Definition at line 965 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::Decal::filename, GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GeoConvHelper::getProcessing(), GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::width, WRITE_MESSAGE, WRITE_WARNING, Position::x(), GeoConvHelper::x2cartesian(), and Position::y().
Referenced by GUISUMOAbstractView::doInit(), and GUISUMOAbstractView::drawDecals().
|
virtualinherited |
Checks whether it is time for a snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 886 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getCurrentTimeStep(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::mySnapshots, and WRITE_WARNING.
Referenced by GUIViewTraffic::checkSnapshots(), GUISUMOAbstractView::endSnapshot(), GUISUMOAbstractView::onConfigure(), and GUISUMOViewParent::onSimStep().
|
private |
delete all currently selected edges
Definition at line 1169 of file GNEViewNet.cpp.
References GNENet::deleteEdge(), GNENet::deleteLane(), myNet, mySelectEdges, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), and GNENet::retrieveLanes().
Referenced by hotkeyDel().
|
private |
delete all currently selected junctions
Definition at line 1158 of file GNEViewNet.cpp.
References GNENet::deleteJunction(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNENet::retrieveJunctions().
Referenced by hotkeyDel().
|
inherited |
destoys the popup
Definition at line 582 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myPopup.
Referenced by GNEInternalLane::onDefault(), GUISUMOAbstractView::onGamingClick(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onRightBtnPress(), and GUISUMOAbstractView::onRightBtnRelease().
|
protectedinherited |
brief Draws the size legend
Draws a line with ticks, and the length information.
Definition at line 419 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::m2p(), pfDrawString(), pfSetPosition(), pfSetScaleXY(), and SUMOReal.
Referenced by GUISUMOAbstractView::doInit(), GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().
|
protectedvirtual |
called after some features are already initialized
Reimplemented from GUISUMOAbstractView.
Definition at line 256 of file GNEViewNet.cpp.
Referenced by changeAllPhases().
|
protectedvirtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 316 of file GNEViewNet.cpp.
References GUISUMOAbstractView::drawDecals(), GUIVisualizationSettings::editMode, GLO_ADDITIONAL, GLO_MAX, GUISUMOAbstractView::m2p(), GUISUMOAbstractView::myAdditionallyDrawn, myAmInRectSelect, myEditMode, GUISUMOAbstractView::myGrid, mySelCorner1, mySelCorner2, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GUIVisualizationSettings::scale, SUMORTree::Search(), GNENet::selectionColor, GLHelper::setColor(), GUIVisualizationSettings::showGrid, SUMO_const_laneWidth, SUMOReal, Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by changeAllPhases().
|
protectedinherited |
Draws the stored decals.
Definition at line 1044 of file GUISUMOAbstractView.cpp.
References GUITexturesHelper::add(), GUISUMOAbstractView::Decal::centerX, GUISUMOAbstractView::Decal::centerY, GUISUMOAbstractView::checkGDALImage(), GUITexturesHelper::drawTexturedBox(), GUISUMOAbstractView::Decal::filename, GUITexturesHelper::getMaxTextureSize(), GUISUMOAbstractView::Decal::glID, GUISUMOAbstractView::Decal::height, GUISUMOAbstractView::Decal::image, GUISUMOAbstractView::Decal::initialised, GUISUMOAbstractView::Decal::layer, MFXImageHelper::loadImage(), MFXMutex::lock(), GUISUMOAbstractView::myDecals, GUISUMOAbstractView::myDecalsLock, GUISUMOAbstractView::Decal::rot, MFXImageHelper::scalePower2(), GUISUMOAbstractView::Decal::skip2D, SUMOReal, MFXMutex::unlock(), GUISUMOAbstractView::Decal::width, WRITE_ERROR, and WRITE_WARNING.
Referenced by GUISUMOAbstractView::doInit(), GUIViewTraffic::doPaintGL(), doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
inlinevirtualinherited |
Ends a video snapshot.
Reimplemented in GUIViewTraffic.
Definition at line 193 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::checkSnapshots().
Referenced by GUISUMOViewParent::onCmdMakeSnapshot().
|
inlineinherited |
Definition at line 131 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::getVisibleBoundary(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), and GUISUMOAbstractView::onPaint().
Referenced by GUIApplicationWindow::onCmdNetedit(), TraCIServerAPI_GUI::processGet(), and TraCIServerAPI_GUI::processSet().
|
inherited |
Definition at line 959 of file GUISUMOAbstractView.cpp.
References GUIGlChildWindow::getColoringSchemesCombo(), and GUISUMOAbstractView::myParent.
Referenced by GUISettingsHandler::addSettings(), GUIDialog_ViewSettings::onCmdColorChange(), and GUIDialog_ViewSettings::onCmdSaveSetting().
|
inlinevirtualinherited |
get the current simulation time
Reimplemented in GUIViewTraffic.
Definition at line 201 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::showToolTips(), GUISUMOAbstractView::showViewportEditor(), and GUISUMOAbstractView::showViewschemeEditor().
Referenced by GUISUMOAbstractView::checkSnapshots().
|
inherited |
Returns the delay of the parent application.
Definition at line 1134 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::getDelay(), and GUISUMOAbstractView::myApp.
Referenced by GUISUMOAbstractView::getVisualisationSettings(), and GUIDialog_ViewSettings::onCmdExportSetting().
try to retrieve an edge at the given position
Definition at line 772 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_EDGE, GLO_LANE, GUISUMOAbstractView::makeCurrent(), myPopupSpot, and GUIGlObjectStorage::unblockObject().
Referenced by onCmdAddReversedEdge(), onCmdResetEdgeEndpoint(), onCmdReverseEdge(), onCmdSetEdgeEndpoint(), onCmdSplitEdge(), and onCmdStraightenEdges().
try to retrieve multiple edges at the given position
Definition at line 813 of file GNEViewNet.cpp.
References GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsAtPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_EDGE, GLO_LANE, GUISUMOAbstractView::makeCurrent(), myPopupSpot, and GUIGlObjectStorage::unblockObject().
Referenced by onCmdSplitEdgeBidi().
|
inherited |
Definition at line 953 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), and GUISUMOAbstractView::myGrid.
Referenced by GUISUMOAbstractView::checkGDALImage(), GUIDialog_ViewSettings::onCmdEditTable(), and GUISUMOAbstractView::remove().
|
inherited |
Definition at line 947 of file GUISUMOAbstractView.cpp.
References Boundary::getWidth(), GUISUMOAbstractView::myGrid, and SUMOReal.
Referenced by GUISUMOAbstractView::checkGDALImage(), GUIDialog_ViewSettings::onCmdEditTable(), and GUISUMOAbstractView::remove().
|
private |
try to retrieve a junction at the given position
Definition at line 749 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_JUNCTION, GUISUMOAbstractView::makeCurrent(), myPopupSpot, and GUIGlObjectStorage::unblockObject().
Referenced by onCmdNodeReplace(), and onCmdNodeShape().
try to retrieve a lane at the given position
Definition at line 796 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), GUIGlObjectStorage::getObjectBlocking(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_LANE, GUISUMOAbstractView::makeCurrent(), myPopupSpot, and GUIGlObjectStorage::unblockObject().
Referenced by onCmdDuplicateLane().
|
inline |
Definition at line 173 of file GNEViewNet.h.
References myNet, and setStatusBarText().
Referenced by GNEConnector::buildIinternalLanes(), GNETLSEditor::buildIinternalLanes(), GNESelector::getMatches(), GNEConnector::handleLaneClick(), GNETLSEditor::handleMultiChange(), GNEConnector::initTargets(), GNETLSEditor::onCmdDefSwitch(), GNESelector::onCmdInvert(), GNEViewParent::onCmdLocate(), GNETLSEditor::onCmdOK(), GNEConnector::onCmdSelectConflicts(), GNEConnector::onCmdSelectDeadEnds(), GNEConnector::onCmdSelectDeadStarts(), and GNEConnector::onCmdSelectPass().
returns the id of the object at position using GL_SELECT
Definition at line 261 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_LANE, GLO_POI, GLO_POLYGON, Boundary::grow(), max, SUMOReal, GUIGlObjectStorage::unblockObject(), and GUIVisualizationSettings::UseMesoSim.
Referenced by GUISUMOAbstractView::doInit(), getEdgeAtCursorPosition(), getJunctionAtCursorPosition(), getLaneAtCurserPosition(), and GUISUMOAbstractView::getObjectUnderCursor().
|
protectedinherited |
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT
Definition at line 306 of file GUISUMOAbstractView.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, Boundary::grow(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::doInit(), and getEdgesAtCursorPosition().
|
protectedinherited |
returns the ids of all objects in the given boundary
Definition at line 334 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::doPaintGL(), GUIVisualizationSettings::drawForSelecting, GUIPerspectiveChanger::getViewport(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myVisualizationSettings, GUIMainWindow::setStatusBarText(), GUIPerspectiveChanger::setViewport(), and toString().
Referenced by GUISUMOAbstractView::doInit(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), mergeJunctions(), and onLeftBtnRelease().
|
protectedinherited |
returns the id of the object under the cursor using GL_SELECT
Definition at line 255 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getObjectAtPosition(), and GUISUMOAbstractView::getPositionInformation().
Referenced by GUISUMOAbstractView::doInit(), GUIViewTraffic::getLaneUnderCursor(), onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::openObjectDialog(), and GUISUMOAbstractView::paintGL().
|
inherited |
Returns the cursor's x/y position within the network.
Definition at line 172 of file GUISUMOAbstractView.cpp.
References Boundary::getHeight(), GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, SUMOReal, Boundary::xmin(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), markPopupPosition(), GUIDanielPerspectiveChanger::onKeyPress(), onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), onMouseMove(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updatePositionInformation().
|
inline |
Definition at line 191 of file GNEViewNet.h.
References mySelector.
Referenced by GNEConnector::onCmdSelectConflicts(), GNEConnector::onCmdSelectDeadEnds(), GNEConnector::onCmdSelectDeadStarts(), and GNEConnector::onCmdSelectPass().
|
inline |
Definition at line 203 of file GNEViewNet.h.
References myTLSEditor.
|
inlinevirtualinherited |
Reimplemented in GUIViewTraffic.
Definition at line 238 of file GUISUMOAbstractView.h.
Referenced by GUIPerson::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::removeAdditionalGLVisualisation().
|
inherited |
get the viewport and create it on first access
Definition at line 912 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myViewportChooser, and GUIDialog_EditViewport::setValues().
Referenced by GUISUMOAbstractView::getCurrentTimeStep(), GUIDialog_ViewSettings::onCmdExportSetting(), and GUISUMOAbstractView::showViewportEditor().
|
inherited |
Definition at line 197 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::getChanger(), and TraCIServerAPI_GUI::processGet().
|
inlineinherited |
Definition at line 218 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::myVisualizationSettings.
Referenced by GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIApplicationWindow::onCmdEditChosen(), and TraCIServerAPI_GUI::processGet().
|
inlineinherited |
Definition at line 327 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::getDelay(), GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::setDelay(), SUMOReal, and GUISUMOAbstractView::updatePositionInformation().
void GNEViewNet::hotkeyDel | ( | ) |
Definition at line 675 of file GNEViewNet.cpp.
References deleteSelectedEdges(), deleteSelectedJunctions(), GNE_MODE_CONNECT, GNE_MODE_TLS, myEditMode, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and setStatusBarText().
Referenced by GNEApplicationWindow::onCmdDel().
void GNEViewNet::hotkeyEnter | ( | ) |
Definition at line 688 of file GNEViewNet.cpp.
References GNEPoly::getEditedJunction(), SUMO::Polygon::getShape(), GNE_MODE_CONNECT, GNE_MODE_MOVE, GNE_MODE_TLS, myConnector, myCurrentPoly, myEditMode, myTLSEditor, myUndoList, GNEConnector::onCmdOK(), GNETLSEditor::onCmdOK(), removeCurrentPoly(), GNEJunction::setAttribute(), SUMO_ATTR_SHAPE, and toString().
Referenced by GNEApplicationWindow::onCmdEnter().
|
inherited |
returns true, if the edit button was pressed
Definition at line 157 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myInEditMode.
Referenced by GUISUMOAbstractView::buildViewToolBars().
meter-to-pixels conversion method
Definition at line 488 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), GUISUMOAbstractView::myChanger, and SUMOReal.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUISUMOAbstractView::displayLegend(), GUIViewTraffic::doPaintGL(), doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
inherited |
A reimplementation due to some internal reasons.
Definition at line 544 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::buildViewToolBars(), getEdgeAtCursorPosition(), getEdgesAtCursorPosition(), getJunctionAtCursorPosition(), getLaneAtCurserPosition(), GUIViewTraffic::getLaneUnderCursor(), GUISUMOAbstractView::makeSnapshot(), mergeJunctions(), GUISUMOAbstractView::onConfigure(), onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnPress(), onLeftBtnRelease(), GUISUMOAbstractView::onPaint(), and GUISUMOAbstractView::openObjectDialog().
|
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 |
Definition at line 731 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::antialiase, GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawDecals(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), RGBColor::red(), GUISUMOAbstractView::saveFrame(), MFXImageHelper::saveImage(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showSizeLegend, FXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUIViewTraffic::checkSnapshots(), GUISUMOAbstractView::checkSnapshots(), GUIApplicationWindow::handleEvent_Screenshot(), GNEViewParent::onCmdMakeSnapshot(), GUISUMOViewParent::onCmdMakeSnapshot(), and GUISUMOAbstractView::onMiddleBtnRelease().
void GNEViewNet::markPopupPosition | ( | ) |
Definition at line 743 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getPositionInformation(), and myPopupSpot.
|
private |
try to merge moved junction with another junction in that spot return true if merging did take place
Definition at line 1188 of file GNEViewNet.cpp.
References Boundary::add(), GUIGlObject::getGlID(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectsInBoundary(), NBNode::getPosition(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_JUNCTION, Boundary::grow(), GUISUMOAbstractView::makeCurrent(), GNENet::mergeJunctions(), myNet, myUndoList, myWarnAboutMerge, toString(), and GUIGlObjectStorage::unblockObject().
Referenced by onLeftBtnRelease().
long GNEViewNet::onCmdAddReversedEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add reversed edge
Definition at line 869 of file GNEViewNet.cpp.
References GNENet::addReversedEdge(), getEdgeAtCursorPosition(), myNet, myPopupSpot, and myUndoList.
long GNEViewNet::onCmdChangeMode | ( | FXObject * | , |
FXSelector | , | ||
void * | data | ||
) |
sets edit mode via combo box
Definition at line 704 of file GNEViewNet.cpp.
References StringBijection< T >::get(), myEditModeNames, and setEditMode().
long GNEViewNet::onCmdDeleteGeometry | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
delete the closes geometry point
Definition at line 930 of file GNEViewNet.cpp.
References GNEPoly::deleteGeometryNear(), myCurrentPoly, and myPopupSpot.
long GNEViewNet::onCmdDuplicateLane | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
duplicate selected lane
Definition at line 940 of file GNEViewNet.cpp.
References GNENet::duplicateLane(), GUIGlObject::getGlID(), getLaneAtCurserPosition(), GLO_LANE, gSelected, GUISelectedStorage::isSelected(), myNet, myPopupSpot, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNENet::retrieveLanes().
long GNEViewNet::onCmdNodeReplace | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
replace node by geometry
Definition at line 1004 of file GNEViewNet.cpp.
References getJunctionAtCursorPosition(), myNet, myPopupSpot, myUndoList, and GNENet::replaceJunctionByGeometry().
long GNEViewNet::onCmdNodeShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
input custom node shape
Definition at line 961 of file GNEViewNet.cpp.
References SUMORTree::addAdditionalGLObject(), PositionVector::closePolygon(), NBNode::computeNodeShape(), getJunctionAtCursorPosition(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), SUMO::Polygon::getShape(), NBNode::getShape(), GNENet::getVisualisationSpeedUp(), GLO_POLYGON, RGBColor::GREEN, MID_GNE_MODE_MOVE, myCurrentPoly, myNet, myPopupSpot, myUndoList, SUMORTree::removeAdditionalGLObject(), removeCurrentPoly(), GNEJunction::setAttribute(), setEditModeFromHotkey(), GUIPolygon::setLineWidth(), SUMO_ATTR_SHAPE, and toString().
long GNEViewNet::onCmdResetEdgeEndpoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
restore geometry endpoint to node position
Definition at line 889 of file GNEViewNet.cpp.
References getEdgeAtCursorPosition(), myPopupSpot, myUndoList, and GNEEdge::resetEndpoint().
long GNEViewNet::onCmdReverseEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
reverse edge
Definition at line 859 of file GNEViewNet.cpp.
References getEdgeAtCursorPosition(), myNet, myPopupSpot, myUndoList, and GNENet::reverseEdge().
long GNEViewNet::onCmdSetEdgeEndpoint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
set non-default geometry endpoint
Definition at line 879 of file GNEViewNet.cpp.
References getEdgeAtCursorPosition(), myPopupSpot, myUndoList, and GNEEdge::setEndpoint().
long GNEViewNet::onCmdSimplifyShape | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
simply shape of current polygon
Definition at line 920 of file GNEViewNet.cpp.
References myCurrentPoly, and GNEPoly::simplifyShape().
long GNEViewNet::onCmdSplitEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
split edge at cursor position
Definition at line 839 of file GNEViewNet.cpp.
References getEdgeAtCursorPosition(), GNEEdge::getSplitPos(), myNet, myPopupSpot, myUndoList, and GNENet::splitEdge().
long GNEViewNet::onCmdSplitEdgeBidi | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
split edge at cursor position
Definition at line 849 of file GNEViewNet.cpp.
References getEdgesAtCursorPosition(), myNet, myPopupSpot, myUndoList, and GNENet::splitEdgesBidi().
long GNEViewNet::onCmdStraightenEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
makes selected edges straight
Definition at line 899 of file GNEViewNet.cpp.
References getEdgeAtCursorPosition(), GUIGlObject::getGlID(), GLO_EDGE, gSelected, GUISelectedStorage::isSelected(), myNet, myPopupSpot, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), GNEEdge::setAttribute(), and SUMO_ATTR_SHAPE.
|
virtualinherited |
Definition at line 551 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 GUISUMOAbstractView::getChanger().
|
inlinevirtualinherited |
Reimplemented in GUIViewTraffic.
Definition at line 242 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), GUISUMOAbstractView::destroyPopup(), and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUISUMOAbstractView::onLeftBtnRelease().
|
virtualinherited |
Definition at line 710 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onKeyPress().
Referenced by GNEViewParent::onKeyPress(), GUISUMOViewParent::onKeyPress(), and GUISUMOAbstractView::onMiddleBtnRelease().
|
virtualinherited |
Definition at line 717 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onKeyRelease().
Referenced by GNEViewParent::onKeyRelease(), GUISUMOViewParent::onKeyRelease(), and GUISUMOAbstractView::onMiddleBtnRelease().
|
virtual |
overloaded handlers
Reimplemented from GUISUMOAbstractView.
Definition at line 375 of file GNEViewNet.cpp.
References GNENet::createEdge(), GNENet::createJunction(), GNENet::deleteGeometryOrEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNETLSEditor::editJunction(), GNEInspector::getEdgeTemplate(), GUIGlObject::getGlID(), GUIGlObject::getMicrosimID(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), GUISelectedStorage::getSelected(), GNENet::getShapeContainer(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_POI, GLO_POLYGON, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_SELECT, GNE_MODE_TLS, gSelected, GNEConnector::handleLaneClick(), GNEUndoList::hasCommandGroup(), GNEInspector::inspect(), GUISelectedStorage::isSelected(), GUISUMOAbstractView::makeCurrent(), GNEJunction::markAsCreateEdgeSource(), myAmInRectSelect, myAutoCreateOppositeEdge, myChainCreateEdge, myConnector, myCreateEdgeSource, myEdgeToMove, myEditMode, myInspector, myJunctionToMove, myMoveSelection, myMoveSrc, myNet, myPolyToMove, mySelCorner1, mySelCorner2, mySelectEdges, myTLSEditor, myUndoList, GUISUMOAbstractView::onLeftBtnPress(), GNEUndoList::p_begin(), GNEUndoList::p_end(), ShapeContainer::removePOI(), GNENet::retrieveAttributeCarriers(), selectEdges(), setStatusBarText(), GUISelectedStorage::toggleSelection(), GUIGlObjectStorage::unblockObject(), and GNEJunction::unMarkAsCreateEdgeSource().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 595 of file GNEViewNet.cpp.
References Boundary::add(), GNENet::finishMoveSelection(), GNEEdge::getAttribute(), GUISUMOAbstractView::getObjectsInBoundary(), GNESelector::handleIDs(), GUISUMOAbstractView::makeCurrent(), mergeJunctions(), myAmInRectSelect, myEdgeToMove, myJunctionToMove, myMoveSelection, myNet, myPolyToMove, mySelCorner1, mySelCorner2, mySelector, myUndoList, GUISUMOAbstractView::onLeftBtnRelease(), GNEJunction::registerMove(), selectEdges(), GNEEdge::setAttribute(), and SUMO_ATTR_SHAPE.
|
inlinevirtualinherited |
Definition at line 141 of file GUISUMOAbstractView.h.
|
inlinevirtualinherited |
Definition at line 144 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onMouseLeft(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openObjectDialog(), GUISUMOAbstractView::setSnapshots(), and GUISUMOAbstractView::updateToolTip().
|
virtualinherited |
Definition at line 672 of file GUISUMOAbstractView.cpp.
Referenced by GUISUMOAbstractView::onMiddleBtnRelease().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 632 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getPositionInformation(), GNEJunction::move(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GNENet::moveSelection(), myAmInRectSelect, myEdgeToMove, myJunctionToMove, myMoveSelection, myMoveSrc, myNet, myPolyToMove, mySelCorner2, and GUISUMOAbstractView::onMouseMove().
|
virtualinherited |
Definition at line 649 of file GUISUMOAbstractView.cpp.
References GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::onMouseWheel(), and GUISUMOAbstractView::updatePositionInformation().
Referenced by GUISUMOAbstractView::onMiddleBtnRelease().
|
virtualinherited |
Definition at line 569 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, and GUISUMOAbstractView::paintGL().
Referenced by GUISUMOAbstractView::getChanger(), and updateModeSpecificControls().
|
virtualinherited |
Definition at line 628 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onRightBtnPress().
Referenced by GUISUMOAbstractView::onMiddleBtnRelease().
|
virtualinherited |
Definition at line 637 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::destroyPopup(), GUIMainWindow::isGaming(), GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::onMouseMove(), GUIPerspectiveChanger::onRightBtnRelease(), and GUISUMOAbstractView::openObjectDialog().
Referenced by GUISUMOAbstractView::onMiddleBtnRelease().
|
virtualinherited |
Definition at line 678 of file GUISUMOAbstractView.cpp.
References GUIGlObjectStorage::getNetObject(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GUIGlObject::getPopUpMenu(), GUIGlObjectStorage::gIDStorage, GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myAmInitialised, GUISUMOAbstractView::myApp, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myPopup, GUIPerspectiveChanger::onRightBtnRelease(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::onMiddleBtnRelease(), and GUISUMOAbstractView::onRightBtnRelease().
pixels-to-meters conversion method
Definition at line 494 of file GUISUMOAbstractView.cpp.
References GUIPerspectiveChanger::getViewport(), Boundary::getWidth(), and GUISUMOAbstractView::myChanger.
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIDanielPerspectiveChanger::changeCanvassLeft(), GUIDanielPerspectiveChanger::move(), and GUISUMOAbstractView::showToolTipFor().
|
protectedinherited |
performs the painting of the simulation
Definition at line 202 of file GUISUMOAbstractView.cpp.
References RGBColor::alpha(), GUIVisualizationSettings::antialiase, GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::getObjectUnderCursor(), GUISUMOAbstractView::getTrackedID(), GUIPerspectiveChanger::getViewport(), RGBColor::green(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, RGBColor::red(), GUIVisualizationSettings::showSizeLegend, and GUISUMOAbstractView::showToolTipFor().
Referenced by GUISUMOAbstractView::getVisualisationSettings(), and GUISUMOAbstractView::onPaint().
|
protectedinherited |
paints a grid
Definition at line 387 of file GUISUMOAbstractView.cpp.
References GUIVisualizationSettings::gridXSize, GUIVisualizationSettings::gridYSize, GUISUMOAbstractView::myGrid, GUISUMOAbstractView::myVisualizationSettings, SUMOReal, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUISUMOAbstractView::doInit(), GUIViewTraffic::doPaintGL(), doPaintGL(), and GUISUMOAbstractView::makeSnapshot().
|
virtualinherited |
recenters the view
Definition at line 500 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, and GUIPerspectiveChanger::setViewport().
Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIGlChildWindow::onCmdRecenterView(), GUIDanielPerspectiveChanger::onKeyPress(), and GUICompleteSchemeStorage::setViewport().
|
inlineinherited |
Definition at line 222 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::myViewportChooser.
Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().
|
inlineinherited |
Definition at line 226 of file GUISUMOAbstractView.h.
References GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::myVisualizationChanger, and SUMOReal.
|
inherited |
Removes an object from the list of objects that show additional things.
[in] | which | The object to remoe |
Definition at line 1097 of file GUISUMOAbstractView.cpp.
References GUIGlObject::getGlID(), GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::myAdditionallyDrawn, and GUISUMOAbstractView::stopTrack().
Referenced by GUISUMOAbstractView::onGamingClick(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIPerson::removeActiveAddVisualisation().
|
private |
remove the currently edited polygon
Definition at line 994 of file GNEViewNet.cpp.
References GNENet::getVisualisationSpeedUp(), myCurrentPoly, myNet, and SUMORTree::removeAdditionalGLObject().
Referenced by abortOperation(), hotkeyEnter(), and onCmdNodeShape().
|
inlinevirtualinherited |
Adds a frame to a video snapshot which will be initialized if neccessary.
Reimplemented in GUIViewTraffic.
Definition at line 185 of file GUISUMOAbstractView.h.
References UNUSED_PARAMETER.
Referenced by GUISUMOAbstractView::makeSnapshot().
|
inline |
Definition at line 181 of file GNEViewNet.h.
References mySelectEdges.
Referenced by GNESelector::onCmdInvert(), onLeftBtnPress(), and onLeftBtnRelease().
|
virtual |
Reimplemented from GUISUMOAbstractView.
Definition at line 294 of file GNEViewNet.cpp.
References GUICompleteSchemeStorage::contains(), GUICompleteSchemeStorage::get(), GUIDialog_ViewSettings::getCurrentScheme(), gSchemeStorage, GUISUMOAbstractView::myVisualizationChanger, GUISUMOAbstractView::myVisualizationSettings, and GUIDialog_ViewSettings::setCurrentScheme().
|
inherited |
Sets the delay of the parent application.
Definition at line 1140 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setDelay().
Referenced by GUISUMOAbstractView::getVisualisationSettings(), and GUIDialog_ViewSettings::loadSettings().
|
private |
Definition at line 1018 of file GNEViewNet.cpp.
References abortOperation(), GNENet::computeEverything(), GNE_MODE_CONNECT, GNE_MODE_TLS, GUIVisualizationSettings::laneColorer, GUISUMOAbstractView::myApp, myEditMode, myNet, myPreviousEditMode, GUISUMOAbstractView::myVisualizationSettings, GUIPropertySchemeStorage< T >::setActive(), setStatusBarText(), and updateModeSpecificControls().
Referenced by onCmdChangeMode(), and setEditModeFromHotkey().
void GNEViewNet::setEditModeFromHotkey | ( | FXushort | selid | ) |
sets edit mode (from hotkey)
[in] | selid | An id MID_GNE_MODE_<foo> as defined in GUIAppEnum |
Definition at line 711 of file GNEViewNet.cpp.
References StringBijection< T >::getString(), GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_SELECT, GNE_MODE_TLS, MID_GNE_MODE_CONNECT, MID_GNE_MODE_CREATE_EDGE, MID_GNE_MODE_DELETE, MID_GNE_MODE_INSPECT, MID_GNE_MODE_MOVE, MID_GNE_MODE_SELECT, MID_GNE_MODE_TLS, myEditMode, myEditModeNames, myEditModesCombo, and setEditMode().
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), onCmdNodeShape(), and GNEApplicationWindow::onCmdSetMode().
|
inline |
Definition at line 196 of file GNEViewNet.h.
References GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::selectionScale, and updateControls().
Referenced by GNESelector::onCmdScaleSelection().
|
inherited |
Sets the snapshot time to file map.
[in] | snaps | The snapshots to take at certain times |
Definition at line 725 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::mySnapshots.
Referenced by GUISUMOAbstractView::onMiddleBtnRelease(), and GUISettingsHandler::setSnapshots().
void GNEViewNet::setStatusBarText | ( | const std::string & | text | ) |
Definition at line 310 of file GNEViewNet.cpp.
References GUISUMOAbstractView::myApp, and GUIMainWindow::setStatusBarText().
Referenced by GNETLSEditor::editJunction(), getNet(), GNEConnector::handleLaneClick(), hotkeyDel(), GNEConnector::onCmdCancel(), GNETLSEditor::onCmdDefSwitch(), GNEConnector::onCmdOK(), onLeftBtnPress(), and setEditMode().
|
virtualinherited |
applies the given viewport settings
Definition at line 933 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myChanger, GUIPerspectiveChanger::setViewport(), Position::x(), Position::y(), and Position::z().
Referenced by GUISUMOAbstractView::buildViewToolBars(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIDialog_ViewSettings::loadSettings(), GUIDialog_EditViewport::onCmdCancel(), GUIDialog_EditViewport::onCmdChanged(), GUIDialog_EditViewport::onCmdLoad(), GUIDialog_EditViewport::onCmdOk(), TraCIServerAPI_GUI::processSet(), GUISettingsHandler::setViewport(), and GUICompleteSchemeStorage::setViewport().
|
inherited |
Returns the information whether rotation is allowd.
Returns the gl-id of the object under the given coordinates
Definition at line 537 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myMouseHotspotX, GUISUMOAbstractView::myMouseHotspotY, GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.
Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUIDanielPerspectiveChanger::onMouseMove().
|
protectedinherited |
invokes the tooltip for the given object
Definition at line 373 of file GUISUMOAbstractView.cpp.
References Position::add(), RGBColor::BLACK, GLHelper::drawTextBox(), GUIGlObject::getFullName(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getPositionInformation(), GUIGlObjectStorage::gIDStorage, GLO_MAX, GUISUMOAbstractView::p2m(), and GUIGlObjectStorage::unblockObject().
Referenced by GUISUMOAbstractView::doInit(), and GUISUMOAbstractView::paintGL().
|
inherited |
Definition at line 940 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myUseToolTips, and SUMOReal.
Referenced by GUISUMOAbstractView::getCurrentTimeStep(), and GUIGlChildWindow::onCmdShowToolTips().
|
virtualinherited |
Definition at line 924 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::getViewportEditor(), GUIPerspectiveChanger::getXPos(), GUIPerspectiveChanger::getYPos(), GUIPerspectiveChanger::getZoom(), Position::INVALID, GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myViewportChooser, and GUIDialog_EditViewport::setOldValues().
Referenced by GUISUMOAbstractView::getCurrentTimeStep(), and GUIGlChildWindow::onCmdEditViewport().
|
inherited |
Definition at line 898 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myDecals, GUISUMOAbstractView::myDecalsLock, GUISUMOAbstractView::myVisualizationChanger, GUISUMOAbstractView::myVisualizationSettings, and GUIDialog_ViewSettings::setCurrent().
Referenced by GUISUMOAbstractView::getCurrentTimeStep(), GUIGlChildWindow::onCmdEditViewScheme(), and GUIDanielPerspectiveChanger::onKeyPress().
|
inlinevirtualinherited |
Reimplemented in GUIViewTraffic.
Definition at line 236 of file GUISUMOAbstractView.h.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), and TraCIServerAPI_GUI::processSet().
|
inlinevirtualinherited |
Reimplemented in GUIViewTraffic.
Definition at line 237 of file GUISUMOAbstractView.h.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), TraCIServerAPI_GUI::processSet(), and GUISUMOAbstractView::removeAdditionalGLVisualisation().
void GNEViewNet::updateControls | ( | ) |
update control contents after undo/redo or recompute
Definition at line 1236 of file GNEViewNet.cpp.
References GNE_MODE_INSPECT, myEditMode, myInspector, and GNEInspector::update().
Referenced by setSelectionScaling(), and GNEApplicationWindow::updateControls().
|
private |
updates mode specific controls
Definition at line 1084 of file GNEViewNet.cpp.
References GUIPerspectiveChanger::changeCanvassLeft(), GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_SELECT, GNE_MODE_TLS, GNESelector::hide(), GNEInspector::inspect(), myAutoCreateOppositeEdge, myChainCreateEdge, myChangeAllPhases, GUISUMOAbstractView::myChanger, myConnector, myEditMode, myExtendToEdgeNodes, myInspector, mySelectEdges, mySelector, myTLSEditor, myToolbar, myWarnAboutMerge, GUISUMOAbstractView::onPaint(), and GNESelector::show().
Referenced by setEditMode().
|
protectedinherited |
Definition at line 182 of file GUISUMOAbstractView.cpp.
References GeoConvHelper::cartesian2geo(), GEO_OUTPUT_ACCURACY, GUIMainWindow::getCartesianLabel(), GeoConvHelper::getFinal(), GUIMainWindow::getGeoLabel(), GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::myApp, toString(), Position::x(), and Position::y().
Referenced by GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::onMouseMove(), and GUISUMOAbstractView::onMouseWheel().
|
inherited |
A method that updates the tooltip.
Definition at line 163 of file GUISUMOAbstractView.cpp.
References GUISUMOAbstractView::myUseToolTips.
Referenced by GUIDanielPerspectiveChanger::onKeyPress(), GUISUMOAbstractView::onMiddleBtnRelease(), GUIDanielPerspectiveChanger::onMouseMove(), and GUIDanielPerspectiveChanger::onMouseWheel().
|
protectedinherited |
List of objects for which GUIGlObject::drawGLAdditional is called.
Definition at line 447 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addAdditionalGLVisualisation(), GUIViewTraffic::doPaintGL(), doPaintGL(), and GUISUMOAbstractView::removeAdditionalGLVisualisation().
|
protectedinherited |
Internal information whether doInit() was called.
Definition at line 421 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::onPaint(), and GUISUMOAbstractView::openObjectDialog().
|
private |
Definition at line 278 of file GNEViewNet.h.
Referenced by abortOperation(), doPaintGL(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
protectedinherited |
The application.
Definition at line 396 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getDelay(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openObjectDialog(), GUIViewTraffic::saveFrame(), GUIViewTraffic::setColorScheme(), GUISUMOAbstractView::setDelay(), setEditMode(), setStatusBarText(), and GUISUMOAbstractView::updatePositionInformation().
|
private |
Definition at line 246 of file GNEViewNet.h.
Referenced by buildEditModeControls(), onLeftBtnPress(), and updateModeSpecificControls().
|
private |
Definition at line 245 of file GNEViewNet.h.
Referenced by buildEditModeControls(), onLeftBtnPress(), and updateModeSpecificControls().
|
private |
Definition at line 232 of file GNEViewNet.h.
Referenced by buildEditModeControls(), changeAllPhases(), and updateModeSpecificControls().
|
protectedinherited |
The perspective changer.
Definition at line 405 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::applyGLTransform(), GUISUMOAbstractView::centerTo(), GUISUMOAbstractView::getChanger(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getPositionInformation(), GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::getVisibleBoundary(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onKeyPress(), GUISUMOAbstractView::onKeyRelease(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::onMouseWheel(), GUISUMOAbstractView::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), GUISUMOAbstractView::openObjectDialog(), GUISUMOAbstractView::p2m(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::recenterView(), GUISUMOAbstractView::setViewport(), GUISUMOAbstractView::showViewportEditor(), updateModeSpecificControls(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
private |
Definition at line 307 of file GNEViewNet.h.
Referenced by abortOperation(), hotkeyEnter(), onLeftBtnPress(), and updateModeSpecificControls().
|
private |
Definition at line 240 of file GNEViewNet.h.
Referenced by abortOperation(), and onLeftBtnPress().
|
private |
Definition at line 314 of file GNEViewNet.h.
Referenced by hotkeyEnter(), onCmdDeleteGeometry(), onCmdNodeShape(), onCmdSimplifyShape(), and removeCurrentPoly().
|
protectedinherited |
The list of decals to show.
Definition at line 435 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::addDecals(), GUISUMOAbstractView::drawDecals(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
The mutex to use before accessing the decals list in order to avoid thread conficts.
Definition at line 438 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::showViewschemeEditor().
|
private |
the edge of which geometry is being moved
Definition at line 258 of file GNEViewNet.h.
Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
private |
Definition at line 225 of file GNEViewNet.h.
Referenced by abortOperation(), doPaintGL(), hotkeyDel(), hotkeyEnter(), onLeftBtnPress(), setEditMode(), setEditModeFromHotkey(), updateControls(), and updateModeSpecificControls().
|
private |
since we cannot switch on strings we map the mode names to an enum
Definition at line 293 of file GNEViewNet.h.
Referenced by buildEditModeControls(), onCmdChangeMode(), and setEditModeFromHotkey().
|
private |
combo box for selecting the edit mode
Definition at line 289 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and setEditModeFromHotkey().
|
private |
Definition at line 231 of file GNEViewNet.h.
Referenced by autoSelectNodes(), buildEditModeControls(), and updateModeSpecificControls().
|
protectedinherited |
The visualization speed-up.
Definition at line 402 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::getGridHeight(), GUISUMOAbstractView::getGridWidth(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::paintGLGrid(), and GUISUMOAbstractView::recenterView().
|
protectedinherited |
Information whether too-tip informations shall be generated.
Definition at line 408 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::isInEditMode().
|
private |
Definition at line 301 of file GNEViewNet.h.
Referenced by onLeftBtnPress(), updateControls(), and updateModeSpecificControls().
|
private |
Definition at line 255 of file GNEViewNet.h.
Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
protectedinherited |
Offset to the mouse-hotspot from the mouse position.
Definition at line 411 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 411 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::setWindowCursorPosition().
|
private |
whether a selection is being moved
Definition at line 267 of file GNEViewNet.h.
Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
private |
position from which to move edge geometry
Definition at line 264 of file GNEViewNet.h.
Referenced by onLeftBtnPress(), and onMouseMove().
|
private |
Definition at line 222 of file GNEViewNet.h.
Referenced by deleteSelectedEdges(), deleteSelectedJunctions(), getNet(), mergeJunctions(), onCmdAddReversedEdge(), onCmdDuplicateLane(), onCmdNodeReplace(), onCmdNodeShape(), onCmdReverseEdge(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdStraightenEdges(), onLeftBtnPress(), onLeftBtnRelease(), onMouseMove(), removeCurrentPoly(), and setEditMode().
|
protectedinherited |
The parent window.
Definition at line 399 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getColoringSchemesCombo().
|
mutableprotectedinherited |
Definition at line 444 of file GUISUMOAbstractView.h.
|
private |
the poly of which geometry is being moved
Definition at line 261 of file GNEViewNet.h.
Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
protectedinherited |
The current popup-menu.
Definition at line 414 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::openObjectDialog(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
private |
Definition at line 312 of file GNEViewNet.h.
Referenced by getEdgeAtCursorPosition(), getEdgesAtCursorPosition(), getJunctionAtCursorPosition(), getLaneAtCurserPosition(), markPopupPosition(), onCmdAddReversedEdge(), onCmdDeleteGeometry(), onCmdDuplicateLane(), onCmdNodeReplace(), onCmdNodeShape(), onCmdResetEdgeEndpoint(), onCmdReverseEdge(), onCmdSetEdgeEndpoint(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), and onCmdStraightenEdges().
|
private |
Definition at line 228 of file GNEViewNet.h.
Referenced by setEditMode().
|
private |
Definition at line 280 of file GNEViewNet.h.
Referenced by doPaintGL(), onLeftBtnPress(), and onLeftBtnRelease().
|
private |
Definition at line 281 of file GNEViewNet.h.
Referenced by doPaintGL(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().
|
private |
Definition at line 230 of file GNEViewNet.h.
Referenced by buildEditModeControls(), deleteSelectedEdges(), onLeftBtnPress(), selectEdges(), and updateModeSpecificControls().
|
private |
Definition at line 304 of file GNEViewNet.h.
Referenced by getSelector(), onLeftBtnRelease(), and updateModeSpecificControls().
|
protectedinherited |
Definition at line 442 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::setSnapshots().
|
private |
Definition at line 310 of file GNEViewNet.h.
Referenced by abortOperation(), getTLSEditor(), hotkeyEnter(), onLeftBtnPress(), and updateModeSpecificControls().
|
private |
a reference to the toolbar in myParent
Definition at line 287 of file GNEViewNet.h.
Referenced by buildEditModeControls(), and updateModeSpecificControls().
|
private |
a reference to the undolist maintained in the application
Definition at line 298 of file GNEViewNet.h.
Referenced by abortOperation(), deleteSelectedEdges(), deleteSelectedJunctions(), hotkeyDel(), hotkeyEnter(), mergeJunctions(), onCmdAddReversedEdge(), onCmdDuplicateLane(), onCmdNodeReplace(), onCmdNodeShape(), onCmdResetEdgeEndpoint(), onCmdReverseEdge(), onCmdSetEdgeEndpoint(), onCmdSplitEdge(), onCmdSplitEdgeBidi(), onCmdStraightenEdges(), onLeftBtnPress(), and onLeftBtnRelease().
|
protectedinherited |
Definition at line 418 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::showToolTips(), and GUISUMOAbstractView::updateToolTip().
|
protectedinherited |
Definition at line 423 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getViewportEditor(), GUISUMOAbstractView::onMouseMove(), GUISUMOAbstractView::remove(), GUISUMOAbstractView::showViewportEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Definition at line 428 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::remove(), GUIViewTraffic::setColorScheme(), setColorScheme(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
protectedinherited |
Definition at line 416 of file GUISUMOAbstractView.h.
Referenced by GUIViewTraffic::buildViewToolBars(), GUIViewTraffic::doPaintGL(), doPaintGL(), GUISUMOAbstractView::getObjectsInBoundary(), GUISUMOAbstractView::getVisualisationSettings(), GUISUMOAbstractView::makeSnapshot(), GUISUMOAbstractView::onConfigure(), GUISUMOAbstractView::paintGL(), GUISUMOAbstractView::paintGLGrid(), GUIViewTraffic::setColorScheme(), setColorScheme(), setEditMode(), setSelectionScaling(), GUISUMOAbstractView::showViewschemeEditor(), and GUISUMOAbstractView::~GUISUMOAbstractView().
|
private |
whether we should warn about merging junctions
Definition at line 270 of file GNEViewNet.h.
Referenced by buildEditModeControls(), mergeJunctions(), and updateModeSpecificControls().
|
protectedinherited |
Position of the cursor relative to the window.
Definition at line 426 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::setWindowCursorPosition().
|
protectedinherited |
Definition at line 426 of file GUISUMOAbstractView.h.
Referenced by GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::setWindowCursorPosition().