SUMO - Simulation of Urban MObility
GNEViewNet Class Reference

#include <GNEViewNet.h>

Inheritance diagram for GNEViewNet:
Inheritance graph
Collaboration diagram for GNEViewNet:
Collaboration graph

Public Member Functions

void abortOperation (bool clearSelection=true)
 abort current edition operation More...
 
void addDecals (const std::vector< Decal > &decals)
 add decals More...
 
bool autoSelectNodes ()
 whether to autoselect nodes or to lanes More...
 
virtual void buildViewToolBars (GUIGlChildWindow &)
 builds the view toolbars More...
 
virtual void centerTo (GUIGlID id, bool applyZoom, double zoomDist=20)
 centers to the chosen artifact More...
 
void centerTo (const Boundary &bound)
 centers to the chosen artifact More...
 
bool changeAllPhases () const
 change all phases More...
 
virtual void copyViewportTo (GUISUMOAbstractView *view)
 copy the viewport to the given view More...
 
void destroyPopup ()
 destoys the popup More...
 
GUIPerspectiveChangergetChanger () const
 get changer More...
 
FXComboBox & getColoringSchemesCombo ()
 get coloring schemes combo More...
 
EditMode getCurrentEditMode () const
 get the current edit mode More...
 
double getDelay () const
 Returns the delay of the parent application. More...
 
double getGridHeight () const
 get grid Height More...
 
double getGridWidth () const
 get grid width More...
 
GNENetgetNet () const
 get the net object More...
 
Position getPositionInformation () const
 Returns the cursor's x/y position within the network. More...
 
virtual GUIGlID getTrackedID () const
 get tracked id More...
 
GNEUndoListgetUndoList () const
 get the undoList object More...
 
GNEViewParentgetViewParent () const
 get the net object More...
 
GUIDialog_EditViewportgetViewportEditor ()
 get the viewport and create it on first access More...
 
Boundary getVisibleBoundary () const
 get visible boundary More...
 
GUIVisualizationSettingsgetVisualisationSettings () const
 get visualitation settings More...
 
GUIVisualizationSettingsgetVisualisationSettings ()
 get visualisation settings More...
 
 GNEViewNet (FXComposite *tmpParent, FXComposite *actualParent, GUIMainWindow &app, GNEViewParent *viewParent, GNENet *net, GNEUndoList *undoList, FXGLVisual *glVis, FXGLCanvas *share, FXToolBar *toolBar)
 FOX-declaration. More...
 
void hotkeyDel ()
 handle del keypress More...
 
void hotkeyEnter ()
 handle enter keypress More...
 
void hotkeyFocusFrame ()
 handle focus frame keypress More...
 
bool isInEditMode ()
 returns true, if the edit button was pressed More...
 
bool isTestingModeEnabled () const
 check if netedit is running in testing mode More...
 
double m2p (double meter) const
 meter-to-pixels conversion method More...
 
FXbool makeCurrent ()
 A reimplementation due to some internal reasons. More...
 
void markPopupPosition ()
 store the position where a popup-menu was requested More...
 
long onCmdAddRestrictedLaneBikelane (FXObject *, FXSelector typeOfTransformation, void *)
 Add restricted lane for bikes. More...
 
long onCmdAddRestrictedLaneBuslane (FXObject *, FXSelector typeOfTransformation, void *)
 Add restricted lane for buses. More...
 
long onCmdAddRestrictedLaneSidewalk (FXObject *, FXSelector typeOfTransformation, void *)
 Add restricted lane for pedestrians. More...
 
long onCmdAddReversedEdge (FXObject *, FXSelector, void *)
 add reversed edge 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 onCmdRemoveRestrictedLaneBikelane (FXObject *, FXSelector typeOfTransformation, void *)
 remove restricted lane for bikes More...
 
long onCmdRemoveRestrictedLaneBuslane (FXObject *, FXSelector typeOfTransformation, void *)
 remove restricted lane for bus More...
 
long onCmdRemoveRestrictedLaneSidewalk (FXObject *, FXSelector typeOfTransformation, void *)
 remove restricted lane for pedestrians More...
 
long onCmdResetEdgeEndpoint (FXObject *, FXSelector, void *)
 restore geometry endpoint to node position More...
 
long onCmdRestrictLaneBikelane (FXObject *, FXSelector typeOfTransformation, void *)
 restrict lane to bikes More...
 
long onCmdRestrictLaneBuslane (FXObject *, FXSelector typeOfTransformation, void *)
 restrict lane to buslanes More...
 
long onCmdRestrictLaneSidewalk (FXObject *, FXSelector typeOfTransformation, void *)
 restrict lane to pedestrians More...
 
long onCmdReverseEdge (FXObject *, FXSelector, void *)
 reverse edge More...
 
long onCmdRevertRestriction (FXObject *, FXSelector, void *)
 revert transformation More...
 
long onCmdSetEdgeEndpoint (FXObject *, FXSelector, void *)
 set non-default geometry endpoint More...
 
long onCmdShowGrid (FXObject *, FXSelector, void *)
 toogle show grid 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...
 
long onCmdToogleSelectEdges (FXObject *, FXSelector, void *)
 toogle selet edges More...
 
long onCmdToogleShowBubbles (FXObject *, FXSelector, void *)
 toogle show bubbles More...
 
long onCmdToogleShowConnection (FXObject *, FXSelector, void *)
 toogle show connections More...
 
virtual void onGamingClick (Position)
 on gaming click More...
 
virtual void openObjectDialog ()
 
double p2m (double pixel) const
 pixels-to-meters conversion method More...
 
virtual void recenterView ()
 recenters the view More...
 
void remove (GUIDialog_EditViewport *)
 remove viewport More...
 
void remove (GUIDialog_ViewSettings *)
 remove view settings More...
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
bool selectEdges ()
 whether inspection, selection and inversion should apply to edges or to lanes More...
 
bool setColorScheme (const std::string &name)
 set color schieme More...
 
void setDelay (double delay)
 Sets the delay of the parent application. More...
 
void setEditModeFromHotkey (FXushort selid)
 sets edit mode (from hotkey) More...
 
void setSelectionScaling (double selectionScale)
 set selection scaling More...
 
void setStatusBarText (const std::string &text)
 set staturBar text More...
 
virtual void setViewportFromTo (const Position &lookFrom, const Position &lookAt)
 applies the given viewport settings More...
 
void setWindowCursorPosition (FXint x, FXint y)
 Returns the information whether rotation is allowd. More...
 
bool showConnections ()
 show connections over junctions More...
 
bool showJunctionAsBubbles () const
 return true if junction must be showed as bubbles More...
 
bool showLockIcon () const
 check if lock icon should be visible More...
 
void showToolTips (bool val)
 show tool tips More...
 
virtual void showViewportEditor ()
 show viewport editor More...
 
void showViewschemeEditor ()
 show viewsscheme editor More...
 
Position snapToActiveGrid (const Position &pos) const
 Returns a position that is mapped to the closest grid point if the grid is active. More...
 
virtual void startTrack (int)
 star track More...
 
virtual void stopTrack ()
 stop track More...
 
void updateControls ()
 update control contents after undo/redo or recompute More...
 
void updateToolTip ()
 A method that updates the tooltip. More...
 
virtual ~GNEViewNet ()
 destructor More...
 
overloaded handlers
long onLeftBtnPress (FXObject *, FXSelector, void *)
 called when user press mouse's left button More...
 
long onLeftBtnRelease (FXObject *, FXSelector, void *)
 called when user releases mouse's left button More...
 
long onDoubleClicked (FXObject *, FXSelector, void *)
 called when user press mouse's left button two times More...
 
long onMouseMove (FXObject *, FXSelector, void *)
 called when user moves mouse More...
 
set mode call backs
long onCmdSetModeCreateEdge (FXObject *, FXSelector, void *)
 called when user press the button for create edge mode More...
 
long onCmdSetModeMove (FXObject *, FXSelector, void *)
 called when user press the button for move mode More...
 
long onCmdSetModeDelete (FXObject *, FXSelector, void *)
 called when user press the button for delete mode More...
 
long onCmdSetModeInspect (FXObject *, FXSelector, void *)
 called when user press the button for inspect mode More...
 
long onCmdSetModeSelect (FXObject *, FXSelector, void *)
 called when user press the button for select mode More...
 
long onCmdSetModeConnect (FXObject *, FXSelector, void *)
 called when user press the button for connect mode More...
 
long onCmdSetModeTLS (FXObject *, FXSelector, void *)
 called when user press the button for traffic lights mode More...
 
long onCmdSetModeAdditional (FXObject *, FXSelector, void *)
 called when user press the button for additional mode More...
 
long onCmdSetModeCrossing (FXObject *, FXSelector, void *)
 called when user press the button for crossing mode More...
 
virtual long onConfigure (FXObject *, FXSelector, void *)
 mouse functions More...
 
virtual long onPaint (FXObject *, FXSelector, void *)
 
virtual long onMiddleBtnPress (FXObject *, FXSelector, void *)
 
virtual long onMiddleBtnRelease (FXObject *, FXSelector, void *)
 
virtual long onRightBtnPress (FXObject *, FXSelector, void *)
 
virtual long onRightBtnRelease (FXObject *, FXSelector, void *)
 
virtual long onMouseWheel (FXObject *, FXSelector, void *)
 
virtual long onMouseLeft (FXObject *, FXSelector, void *)
 
virtual long onKeyPress (FXObject *o, FXSelector sel, void *data)
 keyboard functions More...
 
virtual long onKeyRelease (FXObject *o, FXSelector sel, void *data)
 
Dealing with snapshots
void 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 (const GUIGlObject *const which)
 Adds an object to call its additional visualisation method. More...
 
bool removeAdditionalGLVisualisation (const GUIGlObject *const which)
 Removes an object from the list of objects that show additional things. More...
 
bool isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const
 Check if an object is added in the additional GL visualitation. More...
 

Protected Member Functions

void applyGLTransform (bool fixRatio=true)
 applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections) More...
 
FXImage * checkGDALImage (Decal &d)
 check whether we can read image data or position with gdal More...
 
void displayLegend ()
 a line with ticks, and the length information. More...
 
void doInit ()
 called after some features are already initialized More...
 
int doPaintGL (int mode, const Boundary &bound)
 do paintGL More...
 
void drawDecals ()
 Draws the stored decals. More...
 
GUIGlID getObjectAtPosition (Position pos)
 returns the id of the object at position using GL_SELECT More...
 
std::vector< GUIGlIDgetObjectsAtPosition (Position pos, double radius)
 returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More...
 
std::vector< GUIGlIDgetObjectsInBoundary (const Boundary &bound)
 returns the ids of all objects in the given boundary More...
 
GUIGlID getObjectUnderCursor ()
 returns the id of the object under the cursor using GL_SELECT More...
 
 GNEViewNet ()
 FOX needs this. More...
 
void paintGL ()
 performs the painting of the simulation More...
 
void paintGLGrid ()
 paints a grid More...
 
void showToolTipFor (const GUIGlID id)
 invokes the tooltip for the given object More...
 
void updatePositionInformation () const
 update position information More...
 

Protected Attributes

std::map< const GUIGlObject *, int > myAdditionallyDrawn
 List of objects for which GUIGlObject::drawGLAdditional is called. More...
 
bool myAmInitialised
 Internal information whether doInit() was called. More...
 
GUIMainWindowmyApp
 The application. More...
 
GUIPerspectiveChangermyChanger
 The perspective changer. More...
 
SUMORTreemyGrid
 The visualization speed-up. More...
 
bool myInEditMode
 Information whether too-tip informations shall be generated. More...
 
int myMouseHotspotX
 Offset to the mouse-hotspot from the mouse position. More...
 
int myMouseHotspotY
 
GUIGlChildWindowmyParent
 The parent window. More...
 
MFXMutex myPolyDrawLock
 poly draw lock More...
 
GUIGLObjectPopupMenumyPopup
 The current popup-menu. More...
 
std::map< SUMOTime, std::string > mySnapshots
 Snapshots. More...
 
bool myUseToolTips
 use tool tips More...
 
GUIDialog_EditViewportmyViewportChooser
 viewport chooser More...
 
GUIDialog_ViewSettingsmyVisualizationChanger
 Visualization changer. More...
 
GUIVisualizationSettingsmyVisualizationSettings
 visualization settings More...
 
FXint myWindowCursorPositionX
 Position of the cursor relative to the window. More...
 
FXint myWindowCursorPositionY
 
Optionally shown decals

The list of decals to show

std::vector< DecalmyDecals
 
MFXMutex myDecalsLock
 The mutex to use before accessing the decals list in order to avoid thread conficts. More...
 

Private Member Functions

bool addRestrictedLane (SUMOVehicleClass vclass)
 add restricted lane More...
 
void buildEditModeControls ()
 adds controls for setting the edit mode More...
 
void deleteSelectedAdditionals ()
 delete all currently selected additionals More...
 
void deleteSelectedEdges ()
 delete all currently selected edges More...
 
void deleteSelectedJunctions ()
 delete all currently selected junctions More...
 
GNEEdgegetEdgeAtCursorPosition (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...
 
GNEJunctiongetJunctionAtCursorPosition (Position &pos)
 try to retrieve a junction at the given position More...
 
GNELanegetLaneAtCurserPosition (Position &pos)
 try to retrieve a lane at the given position More...
 
 GNEViewNet (const GNEViewNet &)
 Invalidated copy constructor. More...
 
bool mergeJunctions (GNEJunction *moved)
 try to merge moved junction with another junction in that spot return true if merging did take place More...
 
GNEViewNetoperator= (const GNEViewNet &)
 Invalidated assignment operator. More...
 
void processClick (FXEvent *e, void *data)
 Auxiliar function used by onLeftBtnPress(...) More...
 
void removeCurrentPoly ()
 remove the currently edited polygon More...
 
bool removeRestrictedLane (SUMOVehicleClass vclass)
 remove restricted lane More...
 
bool restrictLane (SUMOVehicleClass vclass)
 restrict lane More...
 
void setEditMode (EditMode mode)
 set edit mode More...
 
void updateModeSpecificControls ()
 updates mode specific controls More...
 

Private Attributes

GNEFramemyCurrentFrame
 the current frame More...
 
GNEPolymyCurrentPoly
 current polygon More...
 
EditMode myEditMode
 the current edit mode More...
 
FXMenuCheck * myMenuCheckChangeAllPhases
 menu check to set change all phases More...
 
FXMenuCheck * myMenuCheckExtendToEdgeNodes
 menu check to extend to edge nodes More...
 
FXMenuCheck * myMenuCheckSelectEdges
 menu check to select only edges More...
 
FXMenuCheck * myMenuCheckShowConnections
 menu check to show connections More...
 
FXMenuCheck * myMenuCheckShowGrid
 show grid button More...
 
GNENetmyNet
 we are not responsible for deletion More...
 
Position myPopupSpot
 Poput spot. More...
 
EditMode myPreviousEditMode
 the previous edit mode used for toggling More...
 
bool mySelectEdges
 flag to check if select edges is enabled More...
 
bool myShowConnections
 whether show connections has been activated once More...
 
FXToolBar * myToolbar
 a reference to the toolbar in myParent More...
 
GNEUndoListmyUndoList
 a reference to the undolist maintained in the application More...
 
GNEViewParentmyViewParent
 view parent More...
 
the state-variables of the create-edge state-machine
GNEJunctionmyCreateEdgeSource
 source junction for new edge 0 if no edge source is selected an existing (or newly created) junction otherwise More...
 
FXMenuCheck * myChainCreateEdge
 whether the endpoint for a created edge should be set as the new source More...
 
FXMenuCheck * myAutoCreateOppositeEdge
 
the state-variables of the move state-machine
FXMenuCheck * myMenuCheckWarnAboutMerge
 whether we should warn about merging junctions More...
 
FXMenuCheck * myMenuCheckShowBubbleOverJunction
 show connection as buuble in "Move" mode. More...
 
GNEJunctionmyJunctionToMove
 the Junction to be moved. More...
 
GNEEdgemyEdgeToMove
 the edge of which geometry is being moved More...
 
GNEPolymyPolyToMove
 the poly of which geometry is being moved More...
 
GNEPOImyPoiToMove
 the poi which is being moved More...
 
GNEAdditionalmyAdditionalToMove
 the stoppingPlace element which shape is being moved More...
 
Position myAdditionalMovingReference
 variable for calculating moving offset of additionals More...
 
Position myOldAdditionalPosition
 variable for saving additional position before moving More...
 
Position myMoveSrc
 position from which to move edge geometry More...
 
bool myMoveSelection
 whether a selection is being moved More...
 
state-variables of inspect-mode and select-mode
bool myAmInRectSelect
 whether we have started rectangle-selection More...
 
Position mySelCorner1
 firstcorner of the rectangle-selection More...
 
Position mySelCorner2
 second corner of the rectangle-selection More...
 
buttons for selecting the edit mode

chekable button for edit mode create edge

MFXCheckableButtonmyEditModeCreateEdge
 
MFXCheckableButtonmyEditModeMove
 chekable button for edit mode move More...
 
MFXCheckableButtonmyEditModeDelete
 chekable button for edit mode delete More...
 
MFXCheckableButtonmyEditModeInspect
 chekable button for edit mode inspect More...
 
MFXCheckableButtonmyEditModeSelect
 chekable button for edit mode select More...
 
MFXCheckableButtonmyEditModeConnection
 chekable button for edit mode connection More...
 
MFXCheckableButtonmyEditModeTrafficLight
 chekable button for edit mode traffic light More...
 
MFXCheckableButtonmyEditModeAdditional
 chekable button for edit mode additional More...
 
MFXCheckableButtonmyEditModeCrossing
 chekable button for edit mode crossing More...
 
StringBijection< EditModemyEditModeNames
 since we cannot switch on strings we map the mode names to an enum More...
 
StringBijection< EditModemyEditAdditionalModeNames
 stringBijection for edit additional mode names More...
 
variables for testing mode

flag to enable or disable testing mode

bool myTestingMode
 
int myTestingWidth
 Width of viewNet in testing mode. More...
 
int myTestingHeight
 Height of viewNet in testing mode. More...
 

Detailed Description

Microsocopic view at the simulation

Definition at line 91 of file GNEViewNet.h.

Constructor & Destructor Documentation

◆ GNEViewNet() [1/3]

◆ ~GNEViewNet()

GNEViewNet::~GNEViewNet ( )
virtual

destructor

Definition at line 287 of file GNEViewNet.cpp.

◆ GNEViewNet() [2/3]

GNEViewNet::GNEViewNet ( )
inlineprotected

FOX needs this.

Definition at line 310 of file GNEViewNet.h.

References doInit(), and doPaintGL().

◆ GNEViewNet() [3/3]

GNEViewNet::GNEViewNet ( const GNEViewNet )
private

Invalidated copy constructor.

Member Function Documentation

◆ abortOperation()

◆ addAdditionalGLVisualisation()

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

Adds an object to call its additional visualisation method.

Parameters
[in]whichThe object to add
Returns
Always true
See also
GUIGlObject::drawGLAdditional

Definition at line 1233 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ addDecals()

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

◆ addRestrictedLane()

◆ applyGLTransform()

void GUISUMOAbstractView::applyGLTransform ( bool  fixRatio = true)
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 1271 of file GUISUMOAbstractView.cpp.

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

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

◆ autoSelectNodes()

bool GNEViewNet::autoSelectNodes ( )

whether to autoselect nodes or to lanes

Definition at line 381 of file GNEViewNet.cpp.

References myMenuCheckExtendToEdgeNodes.

Referenced by GNESelectorFrame::handleIDs().

◆ buildEditModeControls()

◆ buildViewToolBars()

◆ centerTo() [1/2]

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

◆ centerTo() [2/2]

void GUISUMOAbstractView::centerTo ( const Boundary bound)
inherited

centers to the chosen artifact

Definition at line 581 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::setViewport().

◆ changeAllPhases()

bool GNEViewNet::changeAllPhases ( ) const

change all phases

Definition at line 393 of file GNEViewNet.cpp.

References myMenuCheckChangeAllPhases.

Referenced by GNETLSEditorFrame::handleChange().

◆ checkGDALImage()

◆ checkSnapshots()

void GUISUMOAbstractView::checkSnapshots ( )
virtualinherited

◆ copyViewportTo()

◆ deleteSelectedAdditionals()

void GNEViewNet::deleteSelectedAdditionals ( )
private

◆ deleteSelectedEdges()

void GNEViewNet::deleteSelectedEdges ( )
private

◆ deleteSelectedJunctions()

void GNEViewNet::deleteSelectedJunctions ( )
private

delete all currently selected junctions

Definition at line 2061 of file GNEViewNet.cpp.

References GNENet::deleteJunction(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveJunctions(), SUMO_TAG_JUNCTION, and toString().

Referenced by hotkeyDel().

◆ destroyPopup()

◆ displayLegend()

void GUISUMOAbstractView::displayLegend ( )
protectedinherited

a line with ticks, and the length information.

Definition at line 478 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::m2p(), pfDrawString(), pfSetPosition(), and pfSetScaleXY().

Referenced by GUISUMOAbstractView::makeSnapshot(), and GUISUMOAbstractView::paintGL().

◆ doInit()

void GNEViewNet::doInit ( )
protectedvirtual

called after some features are already initialized

Reimplemented from GUISUMOAbstractView.

Definition at line 291 of file GNEViewNet.cpp.

Referenced by GNEViewNet().

◆ doPaintGL()

◆ drawDecals()

◆ endSnapshot()

◆ getChanger()

◆ getColoringSchemesCombo()

FXComboBox & GUISUMOAbstractView::getColoringSchemesCombo ( )
inherited

◆ getCurrentEditMode()

EditMode GNEViewNet::getCurrentEditMode ( ) const

get the current edit mode

Definition at line 1080 of file GNEViewNet.cpp.

References myEditMode.

Referenced by GNELane::updateGeometry().

◆ getCurrentTimeStep()

SUMOTime GUISUMOAbstractView::getCurrentTimeStep ( ) const
virtualinherited

get the current simulation time

Reimplemented in GUIViewTraffic.

Definition at line 981 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::endSnapshot().

◆ getDelay()

double GUISUMOAbstractView::getDelay ( ) const
inherited

Returns the delay of the parent application.

Definition at line 1289 of file GUISUMOAbstractView.cpp.

References GUIMainWindow::getDelay(), and GUISUMOAbstractView::myApp.

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

◆ getEdgeAtCursorPosition()

◆ getEdgesAtCursorPosition()

std::set< GNEEdge * > GNEViewNet::getEdgesAtCursorPosition ( Position pos)
private

◆ getGridHeight()

double GUISUMOAbstractView::getGridHeight ( ) const
inherited

◆ getGridWidth()

double GUISUMOAbstractView::getGridWidth ( ) const
inherited

◆ getJunctionAtCursorPosition()

◆ getLaneAtCurserPosition()

◆ getNet()

GNENet * GNEViewNet::getNet ( ) const

get the net object

Definition at line 1068 of file GNEViewNet.cpp.

References myNet.

Referenced by GNEAdditionalFrame::addAdditional(), GNEAdditionalHandler::buildAdditional(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE2(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNETLSEditorFrame::buildIinternalLanes(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditional::changeEdge(), GNEAdditional::changeLane(), GNECalibratorRoute::checkEdgeRoute(), GNEVariableSpeedSign::commmitAdditionalGeometryMoved(), GNEDetector::commmitAdditionalGeometryMoved(), GNEStoppingPlace::commmitAdditionalGeometryMoved(), GNERerouter::commmitAdditionalGeometryMoved(), GNEDetectorE3::commmitAdditionalGeometryMoved(), GNEAdditional::commmitAdditionalGeometryMoved(), GNEDetectorE3::generateEntryID(), GNEDetectorE3::generateExitID(), GNECalibrator::generateFlowID(), GNEAdditionalFrame::generateID(), GNECalibrator::generateRouteID(), GNECalibrator::generateVehicleTypeID(), GNESelectorFrame::getMatches(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNEDetectorE3::getParentName(), GNEAdditional::getParentName(), GNEAdditional::getPopUpMenu(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::initTargets(), GNEDetectorE1::isValid(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE2::isValid(), GNEContainerStop::isValid(), GNEBusStop::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNERouteProbe::isValid(), GNERerouter::isValid(), GNEChargingStation::isValid(), GNEDetectorE3::isValid(), GNECalibrator::isValid(), GNESelectorFrame::onCmdClear(), GNETLSEditorFrame::onCmdDefSwitch(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNESelectorFrame::onCmdInvert(), GNEViewParent::onCmdLocate(), GNETLSEditorFrame::onCmdOK(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), onCmdToogleShowConnection(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseCalibratorFlow(), GNEAdditionalHandler::parseCalibratorRoute(), GNEAdditionalHandler::parseCalibratorVehicleType(), GNEDeleteFrame::removeAttributeCarrier(), GNEAdditional::setAdditionalID(), GNEVariableSpeedSign::setAttribute(), GNERerouter::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorRoute::setEdges(), GNECalibratorFlow::setFlowID(), GNECalibratorFlow::setRoute(), GNECalibratorRoute::setRouteID(), GNECalibratorFlow::setVehicleType(), GNECalibratorVehicleType::setVehicleTypeID(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEAdditionalFrame::SelectorParentAdditional::showListOfAdditionals(), GNEVariableSpeedSign::updateGeometry(), GNEDetectorE1::updateGeometry(), GNERerouter::updateGeometry(), GNEChargingStation::updateGeometry(), GNEVaporizer::updateGeometry(), GNEDetectorE2::updateGeometry(), GNEDetectorE3::updateGeometry(), GNERouteProbe::updateGeometry(), GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNECalibrator::updateGeometry(), GNEDetectorEntry::updateGeometryByParent(), GNEDetectorExit::updateGeometryByParent(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes().

◆ getObjectAtPosition()

◆ getObjectsAtPosition()

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

◆ getObjectsInBoundary()

◆ getObjectUnderCursor()

GUIGlID GUISUMOAbstractView::getObjectUnderCursor ( )
protectedinherited

◆ getPositionInformation()

◆ getTrackedID()

◆ getUndoList()

◆ getViewParent()

◆ getViewportEditor()

◆ getVisibleBoundary()

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const
inherited

◆ getVisualisationSettings() [1/2]

GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( ) const
inherited

◆ getVisualisationSettings() [2/2]

GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( )
inherited

get visualisation settings

Definition at line 213 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationSettings.

◆ hotkeyDel()

void GNEViewNet::hotkeyDel ( )

handle del keypress

Todo:
impelent deleteSelectedCrossings, deleteSelectdConnections

Definition at line 979 of file GNEViewNet.cpp.

References deleteSelectedAdditionals(), deleteSelectedEdges(), deleteSelectedJunctions(), GNE_MODE_CONNECT, GNE_MODE_TLS, myEditMode, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and setStatusBarText().

Referenced by GNEApplicationWindow::onCmdDel().

◆ hotkeyEnter()

◆ hotkeyFocusFrame()

void GNEViewNet::hotkeyFocusFrame ( )

handle focus frame keypress

Definition at line 1010 of file GNEViewNet.cpp.

References GNEFrame::focusUpperElement(), and myCurrentFrame.

Referenced by GNEApplicationWindow::onCmdFocusFrame().

◆ isAdditionalGLVisualisationEnabled()

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

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

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

Definition at line 1261 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUISUMOAbstractView::endSnapshot().

◆ isInEditMode()

bool GUISUMOAbstractView::isInEditMode ( )
inherited

returns true, if the edit button was pressed

Definition at line 157 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myInEditMode.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ isTestingModeEnabled()

bool GNEViewNet::isTestingModeEnabled ( ) const

check if netedit is running in testing mode

Definition at line 405 of file GNEViewNet.cpp.

References myTestingMode.

Referenced by GNEApplicationWindow::continueWithUnsavedAdditionalChanges(), GNEApplicationWindow::continueWithUnsavedChanges(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEChargingStation::isValid(), GNECalibratorFlowDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdAccept(), GNECalibratorVehicleTypeDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNESelectorFrame::onCmdLoad(), GNESelectorFrame::onCmdSave(), GNEApplicationWindow::onCmdSaveAdditionals(), GNEApplicationWindow::onCmdSaveAsPlainXML(), GNEApplicationWindow::onCmdSaveJoined(), GNEApplicationWindow::onCmdSaveNetwork(), GNEApplicationWindow::onCmdSavePois(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEDeleteFrame::removeAttributeCarrier(), GNEAdditionalFrame::AdditionalAttributes::showWarningMessage(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), and GNEChange_TLS::~GNEChange_TLS().

◆ m2p()

double GUISUMOAbstractView::m2p ( double  meter) const
inherited

◆ makeCurrent()

◆ makeSnapshot()

std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile)
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.

Parameters
[in]destFileThe name of the file to write the snapshot into
Returns
The error message, if an error occcured; "" otherwise

Definition at line 811 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 GUISUMOAbstractView::buildViewToolBars(), GUIViewTraffic::checkSnapshots(), GUISUMOAbstractView::checkSnapshots(), GUIApplicationWindow::handleEvent_Screenshot(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().

◆ markPopupPosition()

void GNEViewNet::markPopupPosition ( )

store the position where a popup-menu was requested

Definition at line 1056 of file GNEViewNet.cpp.

References GUISUMOAbstractView::getPositionInformation(), and myPopupSpot.

◆ mergeJunctions()

◆ onCmdAddRestrictedLaneBikelane()

long GNEViewNet::onCmdAddRestrictedLaneBikelane ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

Add restricted lane for bikes.

Definition at line 1391 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_BICYCLE.

◆ onCmdAddRestrictedLaneBuslane()

long GNEViewNet::onCmdAddRestrictedLaneBuslane ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

Add restricted lane for buses.

Definition at line 1397 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_BUS.

◆ onCmdAddRestrictedLaneSidewalk()

long GNEViewNet::onCmdAddRestrictedLaneSidewalk ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

Add restricted lane for pedestrians.

Definition at line 1385 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_PEDESTRIAN.

◆ onCmdAddReversedEdge()

long GNEViewNet::onCmdAddReversedEdge ( FXObject *  ,
FXSelector  ,
void *   
)

add reversed edge

Definition at line 1275 of file GNEViewNet.cpp.

References GNENet::addReversedEdge(), getEdgeAtCursorPosition(), myNet, myPopupSpot, and myUndoList.

◆ onCmdDeleteGeometry()

long GNEViewNet::onCmdDeleteGeometry ( FXObject *  ,
FXSelector  ,
void *   
)

delete the closes geometry point

Definition at line 1336 of file GNEViewNet.cpp.

References GNEPoly::deleteGeometryNear(), myCurrentPoly, and myPopupSpot.

◆ onCmdDuplicateLane()

long GNEViewNet::onCmdDuplicateLane ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdNodeReplace()

long GNEViewNet::onCmdNodeReplace ( FXObject *  ,
FXSelector  ,
void *   
)

replace node by geometry

Definition at line 1799 of file GNEViewNet.cpp.

References getJunctionAtCursorPosition(), myNet, myPopupSpot, myUndoList, and GNENet::replaceJunctionByGeometry().

◆ onCmdNodeShape()

◆ onCmdRemoveRestrictedLaneBikelane()

long GNEViewNet::onCmdRemoveRestrictedLaneBikelane ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

remove restricted lane for bikes

Definition at line 1409 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_BICYCLE.

◆ onCmdRemoveRestrictedLaneBuslane()

long GNEViewNet::onCmdRemoveRestrictedLaneBuslane ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

remove restricted lane for bus

Definition at line 1415 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_BUS.

◆ onCmdRemoveRestrictedLaneSidewalk()

long GNEViewNet::onCmdRemoveRestrictedLaneSidewalk ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

remove restricted lane for pedestrians

Definition at line 1403 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_PEDESTRIAN.

◆ onCmdResetEdgeEndpoint()

long GNEViewNet::onCmdResetEdgeEndpoint ( FXObject *  ,
FXSelector  ,
void *   
)

restore geometry endpoint to node position

Definition at line 1295 of file GNEViewNet.cpp.

References getEdgeAtCursorPosition(), myPopupSpot, myUndoList, and GNEEdge::resetEndpoint().

◆ onCmdRestrictLaneBikelane()

long GNEViewNet::onCmdRestrictLaneBikelane ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

restrict lane to bikes

Definition at line 1373 of file GNEViewNet.cpp.

References restrictLane(), and SVC_BICYCLE.

◆ onCmdRestrictLaneBuslane()

long GNEViewNet::onCmdRestrictLaneBuslane ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

restrict lane to buslanes

Definition at line 1379 of file GNEViewNet.cpp.

References restrictLane(), and SVC_BUS.

◆ onCmdRestrictLaneSidewalk()

long GNEViewNet::onCmdRestrictLaneSidewalk ( FXObject *  ,
FXSelector  typeOfTransformation,
void *   
)

restrict lane to pedestrians

Definition at line 1367 of file GNEViewNet.cpp.

References restrictLane(), and SVC_PEDESTRIAN.

◆ onCmdReverseEdge()

long GNEViewNet::onCmdReverseEdge ( FXObject *  ,
FXSelector  ,
void *   
)

reverse edge

Definition at line 1265 of file GNEViewNet.cpp.

References getEdgeAtCursorPosition(), myNet, myPopupSpot, myUndoList, and GNENet::reverseEdge().

◆ onCmdRevertRestriction()

◆ onCmdSetEdgeEndpoint()

long GNEViewNet::onCmdSetEdgeEndpoint ( FXObject *  ,
FXSelector  ,
void *   
)

set non-default geometry endpoint

Definition at line 1285 of file GNEViewNet.cpp.

References getEdgeAtCursorPosition(), myPopupSpot, myUndoList, and GNEEdge::setEndpoint().

◆ onCmdSetModeAdditional()

long GNEViewNet::onCmdSetModeAdditional ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for additional mode

Definition at line 1231 of file GNEViewNet.cpp.

References GNE_MODE_ADDITIONAL, and setEditMode().

◆ onCmdSetModeConnect()

long GNEViewNet::onCmdSetModeConnect ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for connect mode

Definition at line 1217 of file GNEViewNet.cpp.

References GNE_MODE_CONNECT, and setEditMode().

◆ onCmdSetModeCreateEdge()

long GNEViewNet::onCmdSetModeCreateEdge ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for create edge mode

Definition at line 1182 of file GNEViewNet.cpp.

References GNE_MODE_CREATE_EDGE, and setEditMode().

◆ onCmdSetModeCrossing()

long GNEViewNet::onCmdSetModeCrossing ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for crossing mode

Definition at line 1238 of file GNEViewNet.cpp.

References GNE_MODE_CROSSING, and setEditMode().

◆ onCmdSetModeDelete()

long GNEViewNet::onCmdSetModeDelete ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for delete mode

Definition at line 1196 of file GNEViewNet.cpp.

References GNE_MODE_DELETE, and setEditMode().

◆ onCmdSetModeInspect()

long GNEViewNet::onCmdSetModeInspect ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for inspect mode

Definition at line 1203 of file GNEViewNet.cpp.

References GNE_MODE_INSPECT, and setEditMode().

◆ onCmdSetModeMove()

long GNEViewNet::onCmdSetModeMove ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for move mode

Definition at line 1189 of file GNEViewNet.cpp.

References GNE_MODE_MOVE, and setEditMode().

◆ onCmdSetModeSelect()

long GNEViewNet::onCmdSetModeSelect ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for select mode

Definition at line 1210 of file GNEViewNet.cpp.

References GNE_MODE_SELECT, and setEditMode().

◆ onCmdSetModeTLS()

long GNEViewNet::onCmdSetModeTLS ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press the button for traffic lights mode

Definition at line 1224 of file GNEViewNet.cpp.

References GNE_MODE_TLS, and setEditMode().

◆ onCmdShowGrid()

long GNEViewNet::onCmdShowGrid ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdSimplifyShape()

long GNEViewNet::onCmdSimplifyShape ( FXObject *  ,
FXSelector  ,
void *   
)

simply shape of current polygon

Definition at line 1326 of file GNEViewNet.cpp.

References myCurrentPoly, and GNEPoly::simplifyShape().

◆ onCmdSplitEdge()

long GNEViewNet::onCmdSplitEdge ( FXObject *  ,
FXSelector  ,
void *   
)

split edge at cursor position

Definition at line 1245 of file GNEViewNet.cpp.

References getEdgeAtCursorPosition(), GNEEdge::getSplitPos(), myNet, myPopupSpot, myUndoList, and GNENet::splitEdge().

◆ onCmdSplitEdgeBidi()

long GNEViewNet::onCmdSplitEdgeBidi ( FXObject *  ,
FXSelector  ,
void *   
)

split edge at cursor position

Definition at line 1255 of file GNEViewNet.cpp.

References getEdgesAtCursorPosition(), myNet, myPopupSpot, myUndoList, and GNENet::splitEdgesBidi().

◆ onCmdStraightenEdges()

long GNEViewNet::onCmdStraightenEdges ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdToogleSelectEdges()

long GNEViewNet::onCmdToogleSelectEdges ( FXObject *  ,
FXSelector  ,
void *   
)

toogle selet edges

Definition at line 1824 of file GNEViewNet.cpp.

References myMenuCheckSelectEdges, and mySelectEdges.

◆ onCmdToogleShowBubbles()

long GNEViewNet::onCmdToogleShowBubbles ( FXObject *  ,
FXSelector  ,
void *   
)

toogle show bubbles

Definition at line 1835 of file GNEViewNet.cpp.

◆ onCmdToogleShowConnection()

long GNEViewNet::onCmdToogleShowConnection ( FXObject *  ,
FXSelector  ,
void *   
)

toogle show connections

Definition at line 1810 of file GNEViewNet.cpp.

References getNet(), GNENet::initGNEConnections(), myShowConnections, and GNENet::requireRecompute().

◆ onConfigure()

◆ onDoubleClicked()

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

◆ onGamingClick()

void GUISUMOAbstractView::onGamingClick ( Position  )
virtualinherited

on gaming click

Reimplemented in GUIViewTraffic.

Definition at line 1095 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::endSnapshot(), and GUISUMOAbstractView::onLeftBtnRelease().

◆ onKeyPress()

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

◆ onKeyRelease()

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

◆ onLeftBtnPress()

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

called when user press mouse's left button

Reimplemented from GUISUMOAbstractView.

Definition at line 496 of file GNEViewNet.cpp.

References GNEAdditionalFrame::addAdditional(), GNEAdditionalFrame::ADDADDITIONAL_INVALID_PARENT, GNEAdditionalFrame::ADDADDITIONAL_SUCCESS, GNECrossingFrame::addCrossing(), GNENet::createEdge(), GNENet::createJunction(), GNETLSEditorFrame::editJunction(), GNEFrame::focusUpperElement(), GNEViewParent::getAdditionalFrame(), GNEAdditional::getAttribute(), GNEViewParent::getConnectorFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEInspectorFrame::getEdgeTemplate(), GUIGlObject::getGlID(), Named::getID(), GNEViewParent::getInspectorFrame(), GNEAdditional::getLane(), GNEDeleteFrame::getMarkedAttributeCarrier(), GNEEdge::getNBEdge(), GUIGlObjectStorage::getObjectBlocking(), GUISUMOAbstractView::getObjectUnderCursor(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), GNEAdditional::getPositionInView(), GUISelectedStorage::getSelected(), GNELane::getShape(), GNEAttributeCarrier::getTag(), GNEViewParent::getTLSEditorFrame(), GUIGlObject::getType(), GUIGlObjectStorage::gIDStorage, GLO_ADDITIONAL, GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_POI, GLO_POLYGON, GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_SELECT, GNE_MODE_TLS, gSelected, GNEConnectorFrame::handleLaneClick(), GNEAttributeCarrier::hasAttribute(), GNEUndoList::hasCommandGroup(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectMultisection(), GNEAdditional::isAdditionalBlocked(), GUISelectedStorage::isSelected(), GUISUMOAbstractView::makeCurrent(), GNEJunction::markAsCreateEdgeSource(), GNEDeleteFrame::markAttributeCarrier(), myAdditionalMovingReference, myAdditionalToMove, myAmInRectSelect, myAutoCreateOppositeEdge, myChainCreateEdge, myCreateEdgeSource, myEdgeToMove, myEditMode, myJunctionToMove, myMoveSelection, myMoveSrc, myNet, myOldAdditionalPosition, myPoiToMove, myPolyToMove, mySelCorner1, mySelCorner2, mySelectEdges, myUndoList, myViewParent, PositionVector::nearest_offset_to_point2D(), GNEUndoList::p_begin(), GNEUndoList::p_end(), processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::retrieveAttributeCarriers(), Position::set(), setStatusBarText(), GNEDeleteFrame::showAttributeCarrierChilds(), GUISUMOAbstractView::snapToActiveGrid(), SUMO_ATTR_ENDPOS, SUMO_ATTR_LENGTH, SUMO_ATTR_POSITION, SUMO_ATTR_STARTPOS, SUMO_TAG_EDGE, GUISelectedStorage::toggleSelection(), toString(), GUIGlObjectStorage::unblockObject(), and GNEJunction::unMarkAsCreateEdgeSource().

◆ onLeftBtnRelease()

◆ onMiddleBtnPress()

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

Definition at line 690 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMiddleBtnRelease()

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

Definition at line 696 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMouseLeft()

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

Definition at line 752 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMouseMove()

◆ onMouseWheel()

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

◆ onPaint()

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

◆ onRightBtnPress()

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

◆ onRightBtnRelease()

◆ openObjectDialog()

◆ operator=()

GNEViewNet& GNEViewNet::operator= ( const GNEViewNet )
private

Invalidated assignment operator.

◆ p2m()

◆ paintGL()

◆ paintGLGrid()

◆ processClick()

void GNEViewNet::processClick ( FXEvent *  e,
void *  data 
)
private

Auxiliar function used by onLeftBtnPress(...)

Definition at line 1662 of file GNEViewNet.cpp.

References GUISUMOAbstractView::destroyPopup(), GUISUMOAbstractView::myChanger, and GUIPerspectiveChanger::onLeftBtnPress().

Referenced by onLeftBtnPress().

◆ recenterView()

◆ remove() [1/2]

void GUISUMOAbstractView::remove ( GUIDialog_EditViewport )
inherited

remove viewport

Definition at line 1055 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myViewportChooser.

Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().

◆ remove() [2/2]

void GUISUMOAbstractView::remove ( GUIDialog_ViewSettings )
inherited

remove view settings

Definition at line 1061 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationChanger.

◆ removeAdditionalGLVisualisation()

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

Removes an object from the list of objects that show additional things.

Parameters
[in]whichThe object to remoe
Returns
True if the object was known, false otherwise
See also
GUIGlObject::drawGLAdditional

Definition at line 1245 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ removeCurrentPoly()

void GNEViewNet::removeCurrentPoly ( )
private

remove the currently edited polygon

Definition at line 1789 of file GNEViewNet.cpp.

References GNENet::getVisualisationSpeedUp(), myCurrentPoly, myNet, and SUMORTree::removeAdditionalGLObject().

Referenced by abortOperation(), hotkeyEnter(), and onCmdNodeShape().

◆ removeRestrictedLane()

◆ restrictLane()

◆ saveFrame()

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

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

Reimplemented in GUIViewTraffic.

Definition at line 962 of file GUISUMOAbstractView.cpp.

References UNUSED_PARAMETER.

Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUISUMOAbstractView::makeSnapshot().

◆ screenPos2NetPos()

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

◆ selectEdges()

bool GNEViewNet::selectEdges ( )

whether inspection, selection and inversion should apply to edges or to lanes

Definition at line 363 of file GNEViewNet.cpp.

References mySelectEdges.

Referenced by GNESelectorFrame::onCmdInvert().

◆ setColorScheme()

◆ setDelay()

void GUISUMOAbstractView::setDelay ( double  delay)
inherited

Sets the delay of the parent application.

Definition at line 1295 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myApp, and GUIMainWindow::setDelay().

Referenced by GUIDialog_ViewSettings::loadSettings().

◆ setEditMode()

◆ setEditModeFromHotkey()

◆ setSelectionScaling()

void GNEViewNet::setSelectionScaling ( double  selectionScale)

◆ setSnapshots()

void GUISUMOAbstractView::setSnapshots ( std::map< SUMOTime, std::string >  snaps)
inherited

Sets the snapshot time to file map.

Parameters
[in]snapsThe snapshots to take at certain times

Definition at line 805 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::mySnapshots.

Referenced by GUISUMOAbstractView::buildViewToolBars(), and GUISettingsHandler::setSnapshots().

◆ setStatusBarText()

◆ setViewportFromTo()

◆ setWindowCursorPosition()

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

Returns the information whether rotation is allowd.

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

Definition at line 595 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myMouseHotspotX, GUISUMOAbstractView::myMouseHotspotY, GUISUMOAbstractView::myWindowCursorPositionX, and GUISUMOAbstractView::myWindowCursorPositionY.

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

◆ showConnections()

bool GNEViewNet::showConnections ( )

show connections over junctions

Definition at line 369 of file GNEViewNet.cpp.

References GNE_MODE_CONNECT, myEditMode, and myMenuCheckShowConnections.

Referenced by GNEConnection::drawGL().

◆ showJunctionAsBubbles()

bool GNEViewNet::showJunctionAsBubbles ( ) const

return true if junction must be showed as bubbles

Definition at line 399 of file GNEViewNet.cpp.

References GNE_MODE_MOVE, myEditMode, and myMenuCheckShowBubbleOverJunction.

Referenced by GNEJunction::drawGL().

◆ showLockIcon()

bool GNEViewNet::showLockIcon ( ) const

check if lock icon should be visible

Definition at line 1086 of file GNEViewNet.cpp.

References GNE_MODE_ADDITIONAL, GNE_MODE_INSPECT, GNE_MODE_MOVE, and myEditMode.

Referenced by GNEAdditional::drawLockIcon().

◆ showToolTipFor()

◆ showToolTips()

void GUISUMOAbstractView::showToolTips ( bool  val)
inherited

◆ showViewportEditor()

◆ showViewschemeEditor()

◆ snapToActiveGrid()

Position GUISUMOAbstractView::snapToActiveGrid ( const Position pos) const
inherited

◆ startTrack()

void GUISUMOAbstractView::startTrack ( int  )
virtualinherited

◆ stopTrack()

void GUISUMOAbstractView::stopTrack ( )
virtualinherited

◆ updateControls()

void GNEViewNet::updateControls ( )

update control contents after undo/redo or recompute

Definition at line 2165 of file GNEViewNet.cpp.

References GNEViewParent::getInspectorFrame(), GNE_MODE_INSPECT, myEditMode, and myViewParent.

Referenced by GNEApplicationWindow::updateControls().

◆ updateModeSpecificControls()

◆ updatePositionInformation()

◆ updateToolTip()

void GUISUMOAbstractView::updateToolTip ( )
inherited

Field Documentation

◆ myAdditionallyDrawn

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

◆ myAdditionalMovingReference

Position GNEViewNet::myAdditionalMovingReference
private

variable for calculating moving offset of additionals

Definition at line 390 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myAdditionalToMove

GNEAdditional* GNEViewNet::myAdditionalToMove
private

the stoppingPlace element which shape is being moved

Definition at line 387 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myAmInitialised

bool GUISUMOAbstractView::myAmInitialised
protectedinherited

Internal information whether doInit() was called.

Definition at line 407 of file GUISUMOAbstractView.h.

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

◆ myAmInRectSelect

bool GNEViewNet::myAmInRectSelect
private

whether we have started rectangle-selection

Definition at line 405 of file GNEViewNet.h.

Referenced by abortOperation(), doPaintGL(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myApp

◆ myAutoCreateOppositeEdge

FXMenuCheck* GNEViewNet::myAutoCreateOppositeEdge
private

Definition at line 362 of file GNEViewNet.h.

Referenced by buildEditModeControls(), onLeftBtnPress(), and updateModeSpecificControls().

◆ myChainCreateEdge

FXMenuCheck* GNEViewNet::myChainCreateEdge
private

whether the endpoint for a created edge should be set as the new source

Definition at line 361 of file GNEViewNet.h.

Referenced by buildEditModeControls(), onLeftBtnPress(), and updateModeSpecificControls().

◆ myChanger

◆ myCreateEdgeSource

GNEJunction* GNEViewNet::myCreateEdgeSource
private

source junction for new edge 0 if no edge source is selected an existing (or newly created) junction otherwise

Definition at line 358 of file GNEViewNet.h.

Referenced by abortOperation(), and onLeftBtnPress().

◆ myCurrentFrame

GNEFrame* GNEViewNet::myCurrentFrame
private

the current frame

Definition at line 332 of file GNEViewNet.h.

Referenced by hotkeyFocusFrame(), setEditMode(), and updateModeSpecificControls().

◆ myCurrentPoly

GNEPoly* GNEViewNet::myCurrentPoly
private

current polygon

Definition at line 463 of file GNEViewNet.h.

Referenced by hotkeyEnter(), onCmdDeleteGeometry(), onCmdNodeShape(), onCmdSimplifyShape(), and removeCurrentPoly().

◆ myDecals

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

◆ myDecalsLock

MFXMutex GUISUMOAbstractView::myDecalsLock
protectedinherited

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

Definition at line 424 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::drawDecals(), and GUISUMOAbstractView::showViewschemeEditor().

◆ myEdgeToMove

GNEEdge* GNEViewNet::myEdgeToMove
private

the edge of which geometry is being moved

Definition at line 378 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myEditAdditionalModeNames

StringBijection<EditMode> GNEViewNet::myEditAdditionalModeNames
private

stringBijection for edit additional mode names

Definition at line 453 of file GNEViewNet.h.

◆ myEditMode

◆ myEditModeAdditional

MFXCheckableButton* GNEViewNet::myEditModeAdditional
private

chekable button for edit mode additional

Definition at line 441 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeConnection

MFXCheckableButton* GNEViewNet::myEditModeConnection
private

chekable button for edit mode connection

Definition at line 435 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeCreateEdge

MFXCheckableButton* GNEViewNet::myEditModeCreateEdge
private

Definition at line 420 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeCrossing

MFXCheckableButton* GNEViewNet::myEditModeCrossing
private

chekable button for edit mode crossing

Definition at line 444 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeDelete

MFXCheckableButton* GNEViewNet::myEditModeDelete
private

chekable button for edit mode delete

Definition at line 426 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeInspect

MFXCheckableButton* GNEViewNet::myEditModeInspect
private

chekable button for edit mode inspect

Definition at line 429 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeMove

MFXCheckableButton* GNEViewNet::myEditModeMove
private

chekable button for edit mode move

Definition at line 423 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeNames

StringBijection<EditMode> GNEViewNet::myEditModeNames
private

since we cannot switch on strings we map the mode names to an enum

stringBijection for edit mode names

Definition at line 450 of file GNEViewNet.h.

Referenced by buildEditModeControls().

◆ myEditModeSelect

MFXCheckableButton* GNEViewNet::myEditModeSelect
private

chekable button for edit mode select

Definition at line 432 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeTrafficLight

MFXCheckableButton* GNEViewNet::myEditModeTrafficLight
private

chekable button for edit mode traffic light

Definition at line 438 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myGrid

◆ myInEditMode

bool GUISUMOAbstractView::myInEditMode
protectedinherited

Information whether too-tip informations shall be generated.

Definition at line 392 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::isInEditMode().

◆ myJunctionToMove

GNEJunction* GNEViewNet::myJunctionToMove
private

the Junction to be moved.

Definition at line 375 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myMenuCheckChangeAllPhases

FXMenuCheck* GNEViewNet::myMenuCheckChangeAllPhases
private

menu check to set change all phases

Definition at line 344 of file GNEViewNet.h.

Referenced by buildEditModeControls(), changeAllPhases(), and updateModeSpecificControls().

◆ myMenuCheckExtendToEdgeNodes

FXMenuCheck* GNEViewNet::myMenuCheckExtendToEdgeNodes
private

menu check to extend to edge nodes

Definition at line 341 of file GNEViewNet.h.

Referenced by autoSelectNodes(), buildEditModeControls(), and updateModeSpecificControls().

◆ myMenuCheckSelectEdges

FXMenuCheck* GNEViewNet::myMenuCheckSelectEdges
private

menu check to select only edges

Definition at line 335 of file GNEViewNet.h.

Referenced by buildEditModeControls(), onCmdToogleSelectEdges(), and updateModeSpecificControls().

◆ myMenuCheckShowBubbleOverJunction

FXMenuCheck* GNEViewNet::myMenuCheckShowBubbleOverJunction
private

show connection as buuble in "Move" mode.

Definition at line 372 of file GNEViewNet.h.

Referenced by buildEditModeControls(), showJunctionAsBubbles(), and updateModeSpecificControls().

◆ myMenuCheckShowConnections

FXMenuCheck* GNEViewNet::myMenuCheckShowConnections
private

menu check to show connections

Definition at line 338 of file GNEViewNet.h.

Referenced by buildEditModeControls(), showConnections(), and updateModeSpecificControls().

◆ myMenuCheckShowGrid

FXMenuCheck* GNEViewNet::myMenuCheckShowGrid
private

show grid button

Definition at line 347 of file GNEViewNet.h.

Referenced by buildEditModeControls(), doPaintGL(), onCmdShowGrid(), and updateModeSpecificControls().

◆ myMenuCheckWarnAboutMerge

FXMenuCheck* GNEViewNet::myMenuCheckWarnAboutMerge
private

whether we should warn about merging junctions

Definition at line 369 of file GNEViewNet.h.

Referenced by buildEditModeControls(), mergeJunctions(), and updateModeSpecificControls().

◆ myMouseHotspotX

int GUISUMOAbstractView::myMouseHotspotX
protectedinherited

Offset to the mouse-hotspot from the mouse position.

Definition at line 395 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMouseHotspotY

int GUISUMOAbstractView::myMouseHotspotY
protectedinherited

Definition at line 395 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMoveSelection

bool GNEViewNet::myMoveSelection
private

whether a selection is being moved

Definition at line 399 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myMoveSrc

Position GNEViewNet::myMoveSrc
private

position from which to move edge geometry

Definition at line 396 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), and onMouseMove().

◆ myNet

◆ myOldAdditionalPosition

Position GNEViewNet::myOldAdditionalPosition
private

variable for saving additional position before moving

Definition at line 393 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myParent

GUIGlChildWindow* GUISUMOAbstractView::myParent
protectedinherited

The parent window.

Definition at line 383 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getColoringSchemesCombo().

◆ myPoiToMove

GNEPOI* GNEViewNet::myPoiToMove
private

the poi which is being moved

Definition at line 384 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myPolyDrawLock

MFXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotectedinherited

poly draw lock

Definition at line 431 of file GUISUMOAbstractView.h.

◆ myPolyToMove

GNEPoly* GNEViewNet::myPolyToMove
private

the poly of which geometry is being moved

Definition at line 381 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ myPopup

GUIGLObjectPopupMenu* GUISUMOAbstractView::myPopup
protectedinherited

◆ myPopupSpot

◆ myPreviousEditMode

EditMode GNEViewNet::myPreviousEditMode
private

the previous edit mode used for toggling

Definition at line 329 of file GNEViewNet.h.

Referenced by setEditMode().

◆ mySelCorner1

Position GNEViewNet::mySelCorner1
private

firstcorner of the rectangle-selection

Definition at line 408 of file GNEViewNet.h.

Referenced by doPaintGL(), onLeftBtnPress(), and onLeftBtnRelease().

◆ mySelCorner2

Position GNEViewNet::mySelCorner2
private

second corner of the rectangle-selection

Definition at line 411 of file GNEViewNet.h.

Referenced by doPaintGL(), onLeftBtnPress(), onLeftBtnRelease(), and onMouseMove().

◆ mySelectEdges

bool GNEViewNet::mySelectEdges
private

flag to check if select edges is enabled

Definition at line 353 of file GNEViewNet.h.

Referenced by deleteSelectedEdges(), onCmdToogleSelectEdges(), onLeftBtnPress(), onLeftBtnRelease(), and selectEdges().

◆ myShowConnections

bool GNEViewNet::myShowConnections
private

whether show connections has been activated once

Definition at line 350 of file GNEViewNet.h.

Referenced by onCmdToogleShowConnection().

◆ mySnapshots

std::map<SUMOTime, std::string> GUISUMOAbstractView::mySnapshots
protectedinherited

Snapshots.

Definition at line 428 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::checkSnapshots(), and GUISUMOAbstractView::setSnapshots().

◆ myTestingHeight

int GNEViewNet::myTestingHeight
private

Height of viewNet in testing mode.

Definition at line 474 of file GNEViewNet.h.

Referenced by doPaintGL().

◆ myTestingMode

bool GNEViewNet::myTestingMode
private

◆ myTestingWidth

int GNEViewNet::myTestingWidth
private

Width of viewNet in testing mode.

Definition at line 471 of file GNEViewNet.h.

Referenced by doPaintGL().

◆ myToolbar

FXToolBar* GNEViewNet::myToolbar
private

a reference to the toolbar in myParent

Definition at line 415 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myUndoList

◆ myUseToolTips

bool GUISUMOAbstractView::myUseToolTips
protectedinherited

◆ myViewParent

GNEViewParent* GNEViewNet::myViewParent
private

◆ myViewportChooser

◆ myVisualizationChanger

GUIDialog_ViewSettings* GUISUMOAbstractView::myVisualizationChanger
protectedinherited

◆ myVisualizationSettings

◆ myWindowCursorPositionX

FXint GUISUMOAbstractView::myWindowCursorPositionX
protectedinherited

Position of the cursor relative to the window.

Definition at line 413 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::setWindowCursorPosition().

◆ myWindowCursorPositionY

FXint GUISUMOAbstractView::myWindowCursorPositionY
protectedinherited

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