SUMO - Simulation of Urban MObility
GNEViewNet Class Reference

#include <GNEViewNet.h>

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

Data Structures

struct  MovedItems
 struct used to group all pointers to moved elements More...
 
struct  MoveSingleElementValues
 struct used to group all variables related with movement of single elements More...
 
struct  MovingEdges
 
class  ObjectsUnderCursor
 class used to group all variables related with objects under cursor after a click over view More...
 
struct  SelectingArea
 struct used to group all variables related with selecting using a square or polygon More...
 
struct  testingMode
 struct used to group all variables related with testing More...
 

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...
 
void beginMoveSelection (GNEAttributeCarrier *originAC, const Position &originPosition)
 begin move selection More...
 
void buildColorRainbow (GUIColorScheme &scheme, int active, GUIGlObjectType objectType)
 recalibrate color scheme according to the current value range More...
 
void buildSelectionACPopupEntry (GUIGLObjectPopupMenu *ret, GNEAttributeCarrier *AC)
 Builds an entry which allows to (de)select the object. 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...
 
void finishMoveSelection ()
 finish moving selection More...
 
const GNEAttributeCarrier * getACUnderCursor () const
 get AttributeCarrier under cursor More...
 
GUIPerspectiveChanger & getChanger () 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...
 
FXMenuCheck * getMenuCheckShowGrid () const
 get grid button More...
 
GNENet * getNet () const
 get the net object More...
 
const Position & getPopupPosition () const
 get position of current popup More...
 
Position getPositionInformation () const
 Returns the cursor's x/y position within the network. More...
 
virtual GUIGlID getTrackedID () const
 get tracked id More...
 
GNEUndoList * getUndoList () const
 get the undoList object More...
 
GNEViewParent * getViewParent () const
 get the net object More...
 
GUIDialog_EditViewport * getViewportEditor ()
 get the viewport and create it on first access More...
 
Boundary getVisibleBoundary () const
 get visible boundary More...
 
GUIVisualizationSettings * getVisualisationSettings () const
 get visualitation settings More...
 
GUIVisualizationSettings * getVisualisationSettings ()
 get visualisation settings More...
 
 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...
 
double m2p (double meter) const
 meter-to-pixels conversion method More...
 
FXbool makeCurrent ()
 A reimplementation due to some internal reasons. More...
 
void moveSelection (const Position &offset)
 move selection More...
 
long onCmdAddRestrictedLaneBikelane (FXObject *, FXSelector, void *)
 Add restricted lane for bikes. More...
 
long onCmdAddRestrictedLaneBuslane (FXObject *, FXSelector, void *)
 Add restricted lane for buses. More...
 
long onCmdAddRestrictedLaneGreenVerge (FXObject *, FXSelector, void *)
 Add restricted lane for all vehicles. More...
 
long onCmdAddRestrictedLaneSidewalk (FXObject *, FXSelector, void *)
 Add restricted lane for pedestrians. More...
 
long onCmdAddReversedEdge (FXObject *, FXSelector, void *)
 add reversed edge More...
 
long onCmdAddSelected (FXObject *, FXSelector, void *)
 select AC under cursor More...
 
long onCmdClearConnections (FXObject *, FXSelector, void *)
 clear junction connections More...
 
long onCmdClosePolygon (FXObject *, FXSelector, void *)
 close opened polygon More...
 
long onCmdDeleteGeometryPoint (FXObject *, FXSelector, void *)
 delete the closes geometry point More...
 
long onCmdDuplicateLane (FXObject *, FXSelector, void *)
 duplicate selected lane More...
 
long onCmdEditConnectionShape (FXObject *, FXSelector, void *)
 edit connection shape More...
 
long onCmdEditCrossingShape (FXObject *, FXSelector, void *)
 edit crossing shape More...
 
long onCmdEditEdgeEndpoint (FXObject *, FXSelector, void *)
 change geometry endpoint More...
 
long onCmdEditJunctionShape (FXObject *, FXSelector, void *)
 edit junction shape More...
 
long onCmdOpenAdditionalDialog (FXObject *, FXSelector, void *)
 open additional dialog More...
 
long onCmdOpenPolygon (FXObject *, FXSelector, void *)
 open closed polygon More...
 
long onCmdRemoveRestrictedLaneBikelane (FXObject *, FXSelector, void *)
 remove restricted lane for bikes More...
 
long onCmdRemoveRestrictedLaneBuslane (FXObject *, FXSelector, void *)
 remove restricted lane for bus More...
 
long onCmdRemoveRestrictedLaneGreenVerge (FXObject *, FXSelector, void *)
 remove restricted lane for all vehicles More...
 
long onCmdRemoveRestrictedLaneSidewalk (FXObject *, FXSelector, void *)
 remove restricted lane for pedestrians More...
 
long onCmdRemoveSelected (FXObject *, FXSelector, void *)
 unselect AC under cursor More...
 
long onCmdReplaceJunction (FXObject *, FXSelector, void *)
 replace node by geometry More...
 
long onCmdResetConnections (FXObject *, FXSelector, void *)
 reset junction connections More...
 
long onCmdResetEdgeEndpoint (FXObject *, FXSelector, void *)
 change geometry endpoint More...
 
long onCmdResetJunctionShape (FXObject *, FXSelector, void *)
 reset junction shape More...
 
long onCmdResetLaneCustomShape (FXObject *, FXSelector, void *)
 reset custom shapes of selected lanes More...
 
long onCmdRestrictLaneBikelane (FXObject *, FXSelector, void *)
 restrict lane to bikes More...
 
long onCmdRestrictLaneBuslane (FXObject *, FXSelector, void *)
 restrict lane to buslanes More...
 
long onCmdRestrictLaneGreenVerge (FXObject *, FXSelector, void *)
 restrict lane to all vehicles More...
 
long onCmdRestrictLaneSidewalk (FXObject *, FXSelector, void *)
 restrict lane to pedestrians More...
 
long onCmdReverseEdge (FXObject *, FXSelector, void *)
 reverse edge More...
 
long onCmdSetFirstGeometryPoint (FXObject *, FXSelector, void *)
 set as first geometry point the closes geometry point More...
 
long onCmdShowGrid (FXObject *, FXSelector, void *)
 toogle show grid More...
 
long onCmdSimplifyShape (FXObject *, FXSelector, void *)
 simply shape of current polygon More...
 
long onCmdSmoothEdges (FXObject *, FXSelector, void *)
 smooth geometry More...
 
long onCmdSmoothEdgesElevation (FXObject *, FXSelector, void *)
 smooth elevation with regard to adjoining edges More...
 
long onCmdSplitEdge (FXObject *, FXSelector, void *)
 split edge at cursor position More...
 
long onCmdSplitEdgeBidi (FXObject *, FXSelector, void *)
 split edge at cursor position More...
 
long onCmdSplitJunction (FXObject *, FXSelector, void *)
 split junction into multiple junctions More...
 
long onCmdStraightenEdges (FXObject *, FXSelector, void *)
 makes selected edges straight More...
 
long onCmdStraightenEdgesElevation (FXObject *, FXSelector, void *)
 interpolate z values linear between junctions 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...
 
long onCmdTransformPOI (FXObject *, FXSelector, void *)
 Transform POI to POILane, and viceversa. 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...
 
virtual const std::vector< SUMOTime > retrieveBreakpoints () const
 retrieve breakpoints if provided by the application More...
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
bool selectEdges ()
 whether inspection, selection and inversion should apply to edges or to lanes More...
 
void setACUnderCursor (const GNEAttributeCarrier *AC)
 set attributeCarrier under cursor More...
 
void setApplicationSnapshots (std::set< SUMOTime > *snapshots, FXMutex *lock)
 add snapshot synchronization More...
 
bool setColorScheme (const std::string &name)
 set color scheme 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 setViewportFromToRot (const Position &lookFrom, const Position &lookAt, double rotation)
 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...
 
void startEditCustomShape (GNENetElement *element, const PositionVector &shape, bool fill)
 start edit custom shape More...
 
virtual void startTrack (int)
 star track More...
 
void stopEditCustomShape ()
 edit edit shape 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

called when user press mouse's left button

long onLeftBtnPress (FXObject *, FXSelector, void *)
 
long onLeftBtnRelease (FXObject *, FXSelector, void *)
 called when user releases mouse's left button More...
 
long onRightBtnPress (FXObject *, FXSelector, void *)
 called when user press mouse's right button More...
 
long onRightBtnRelease (FXObject *, FXSelector, void *)
 called when user releases mouse's right button More...
 
long onMouseMove (FXObject *, FXSelector, void *)
 called when user moves mouse More...
 
long onKeyPress (FXObject *o, FXSelector sel, void *data)
 called when user press a key More...
 
long onKeyRelease (FXObject *o, FXSelector sel, void *data)
 called when user release a key More...
 
set mode call backs

called when user press the button for create edge mode

long onCmdSetModeCreateEdge (FXObject *, FXSelector, void *)
 
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...
 
long onCmdSetModePolygon (FXObject *, FXSelector, void *)
 called when user press the button for polygon mode More...
 
long onCmdSetModeProhibition (FXObject *, FXSelector, void *)
 called when user press the button for polygon 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 onDoubleClicked (FXObject *, FXSelector, void *)
 
virtual long onMouseWheel (FXObject *, FXSelector, void *)
 
virtual long onMouseLeft (FXObject *, FXSelector, void *)
 
Dealing with snapshots
void addSnapshot (SUMOTime time, const std::string &file, const int width=-1, const int height=-1)
 Sets the snapshot time to file map. More...
 
std::string makeSnapshot (const std::string &destFile, const int width=-1, const int height=-1)
 Takes a snapshots and writes it into the given file. More...
 
virtual void saveFrame (const std::string &destFile, FXColor *buf)
 Adds a frame to a video snapshot which will be initialized if neccessary. More...
 
virtual void endSnapshot ()
 Ends a video snapshot. More...
 
virtual void checkSnapshots ()
 Checks whether it is time for a snapshot. More...
 
virtual SUMOTime getCurrentTimeStep () const
 get the current simulation time More...
 
Additional visualisations
bool addAdditionalGLVisualisation (const GUIGlObject *const which)
 Adds an object to call its additional visualisation method. More...
 
bool removeAdditionalGLVisualisation (const GUIGlObject *const which)
 Removes an object from the list of objects that show additional things. More...
 
bool isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const
 Check if an object is added in the additional GL visualitation. More...
 

Protected Member Functions

Boundary applyGLTransform (bool fixRatio=true)
 applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections) More...
 
FXImage * checkGDALImage (Decal &d)
 check whether we can read image data or position with gdal More...
 
void 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< GUIGlID > getObjectsAtPosition (Position pos, double radius)
 returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More...
 
std::vector< GUIGlID > getObjectsInBoundary (Boundary bound)
 returns the ids of all objects in the given boundary More...
 
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...
 
GUIMainWindow * myApp
 The application. More...
 
std::set< SUMOTime > * myApplicationSnapshots
 
FXMutex * myApplicationSnapshotsLock
 
GUIPerspectiveChanger * myChanger
 The perspective changer. More...
 
SUMORTree * myGrid
 The visualization speed-up. More...
 
bool myInEditMode
 Information whether too-tip informations shall be generated. More...
 
int myMouseHotspotX
 Offset to the mouse-hotspot from the mouse position. More...
 
int myMouseHotspotY
 
GUIGlChildWindow * myParent
 The parent window. More...
 
MFXMutex myPolyDrawLock
 poly draw lock More...
 
GUIGLObjectPopupMenu * myPopup
 The current popup-menu. More...
 
Position myPopupPosition
 The current popup-menu position. More...
 
std::map< SUMOTime, std::vector< std::tuple< std::string, int, int > > > mySnapshots
 Snapshots. More...
 
MFXMutex mySnapshotsLock
 The mutex to use before accessing the decals list in order to avoid thread conflicts. More...
 
bool myUseToolTips
 use tool tips More...
 
GUIDialog_EditViewport * myViewportChooser
 viewport chooser More...
 
GUIDialog_ViewSettings * myVisualizationChanger
 Visualization changer. More...
 
GUIVisualizationSettings * myVisualizationSettings
 visualization settings More...
 
FXint myWindowCursorPositionX
 Position of the cursor relative to the window. More...
 
FXint myWindowCursorPositionY
 
Optionally shown decals

The list of decals to show

std::vector< Decal > myDecals
 
MFXMutex myDecalsLock
 The mutex to use before accessing the decals list in order to avoid thread conflicts. 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 deleteSelectedConnections ()
 delete all currently selected connections More...
 
void deleteSelectedCrossings ()
 delete all currently selected crossings More...
 
void deleteSelectedEdges ()
 delete all currently selected edges More...
 
void deleteSelectedJunctions ()
 delete all currently selected junctions More...
 
void deleteSelectedLanes ()
 delete all currently selected lanes More...
 
void deleteSelectedShapes ()
 delete all currently selected shapes More...
 
GNEAdditional * getAdditionalAtPopupPosition ()
 try to retrieve a additional at popup position More...
 
GNEConnection * getConnectionAtPopupPosition ()
 try to retrieve a connection at popup position More...
 
GNECrossing * getCrossingAtPopupPosition ()
 try to retrieve a crossing at popup position More...
 
GNEEdge * getEdgeAtPopupPosition ()
 try to retrieve an edge at popup position More...
 
std::set< GNEEdge * > getEdgesAtPopupPosition ()
 try to retrieve multiple edges at popup position More...
 
GNEJunction * getJunctionAtPopupPosition ()
 try to retrieve a junction at popup position More...
 
GNELane * getLaneAtPopupPosition ()
 try to retrieve a lane at popup position More...
 
GNEPOI * getPOIAtPopupPosition ()
 try to retrieve a POILane at popup position More...
 
GNEPoly * getPolygonAtPopupPosition ()
 try to retrieve a polygon at popup position More...
 
 GNEViewNet (const GNEViewNet &)=delete
 Invalidated copy constructor. More...
 
bool mergeJunctions (GNEJunction *moved, const Position &oldPos)
 try to merge moved junction with another junction in that spot return true if merging did take place More...
 
GNEViewNet & operator= (const GNEViewNet &)=delete
 Invalidated assignment operator. More...
 
void processClick (FXEvent *e, void *data)
 Auxiliar function used by onLeftBtnPress(...) 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

const GNEAttributeCarrier * myACUnderCursor
 current AttributeCarrier under Mouse position More...
 
GNEFrame * myCurrentFrame
 the current frame 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 * myMenuCheckHideConnections
 menu check to hide connections in connect mode More...
 
FXMenuCheck * myMenuCheckSelectEdges
 menu check to select only edges More...
 
FXMenuCheck * myMenuCheckShowConnections
 menu check to show connections More...
 
FXMenuCheck * myMenuCheckShowGrid
 show grid button More...
 
MovedItems myMovedItems
 variable use to save pointers to moved elements More...
 
MoveSingleElementValues myMoveSingleElementValues
 variable used to save variables related with movement of single elements More...
 
bool myMovingSelection
 whether a selection is being moved More...
 
GNENet * myNet
 Pointer to current net. (We are not responsible for deletion) More...
 
ObjectsUnderCursor myObjectsUnderCursor
 variable use to save all pointers to objects under cursor after a click More...
 
std::map< GNEJunction *, Position > myOriginPositionOfMovedJunctions
 Selected Junctions that are being moved. More...
 
std::map< GNEEdge *, PositionVector > myOriginShapesMovedEntireShapes
 Selected Edges that are being moved < Edge, PositionVector > More...
 
std::map< GNEEdge *, MovingEdges > myOriginShapesMovedPartialShapes
 
bool mySelectEdges
 flag to check if select edges is enabled More...
 
SelectingArea mySelectingArea
 variable used to save variables related with selecting areas More...
 
bool myShiftKeyPressed
 flag to check if shift key is pressed (can be changed after Key Press/Released and mouse Move) More...
 
bool myShowConnections
 whether show connections has been activated once More...
 
testingMode myTestingMode
 variable used to save variables related with testing mode More...
 
FXToolBar * myToolbar
 a reference to the toolbar in myParent More...
 
GNEUndoList * myUndoList
 a reference to the undolist maintained in the application More...
 
GNEViewParent * myViewParent
 view parent More...
 
the state-variables of the create-edge state-machine
GNEJunction * myCreateEdgeSource
 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...
 
FXMenuCheck * myMenuCheckMoveElevation
 apply movement to elevation More...
 
buttons for selecting the edit mode

chekable button for edit mode create edge

MFXCheckableButton * myEditModeCreateEdge
 
MFXCheckableButton * myEditModeMove
 chekable button for edit mode move More...
 
MFXCheckableButton * myEditModeDelete
 chekable button for edit mode delete More...
 
MFXCheckableButton * myEditModeInspect
 chekable button for edit mode inspect More...
 
MFXCheckableButton * myEditModeSelect
 chekable button for edit mode select More...
 
MFXCheckableButton * myEditModeConnection
 chekable button for edit mode connection More...
 
MFXCheckableButton * myEditModeTrafficLight
 chekable button for edit mode traffic light More...
 
MFXCheckableButton * myEditModeAdditional
 chekable button for edit mode additional More...
 
MFXCheckableButton * myEditModeCrossing
 chekable button for edit mode crossing More...
 
MFXCheckableButton * myEditModePolygon
 chekable button for edit mode polygon More...
 
MFXCheckableButton * myEditModeProhibition
 checkable button for edit mode polygon More...
 
StringBijection< EditMode > myEditModeNames
 since we cannot switch on strings we map the mode names to an enum More...
 
StringBijection< EditMode > myEditAdditionalModeNames
 stringBijection for edit additional mode names More...
 
variables for edit shapes

polygon used for edit shapes

GNEPoly * myEditShapePoly
 
EditMode myPreviousEditMode
 the previous edit mode before edit junction's shapes More...
 

Detailed Description

Microsocopic view at the simulation

Definition at line 97 of file GNEViewNet.h.

Constructor & Destructor Documentation

◆ GNEViewNet() [1/3]

GNEViewNet::GNEViewNet ( FXComposite *  tmpParent,
FXComposite *  actualParent,
GUIMainWindow &  app,
GNEViewParent *  viewParent,
GNENet *  net,
GNEUndoList *  undoList,
FXGLVisual *  glVis,
FXGLCanvas *  share,
FXToolBar *  toolBar 
)

◆ ~GNEViewNet()

GNEViewNet::~GNEViewNet ( )
virtual

destructor

Definition at line 210 of file GNEViewNet.cpp.

◆ GNEViewNet() [2/3]

GNEViewNet::GNEViewNet ( )
inlineprotected

FOX needs this.

Definition at line 413 of file GNEViewNet.h.

References doInit(), and doPaintGL().

◆ GNEViewNet() [3/3]

GNEViewNet::GNEViewNet ( const GNEViewNet &  )
privatedelete

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 1314 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ addDecals()

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

◆ addRestrictedLane()

◆ addSnapshot()

void GUISUMOAbstractView::addSnapshot ( SUMOTime  time,
const std::string &  file,
const int  width = -1,
const int  height = -1 
)
inherited

◆ applyGLTransform()

Boundary GUISUMOAbstractView::applyGLTransform ( bool  fixRatio = true)
protectedinherited

◆ autoSelectNodes()

bool GNEViewNet::autoSelectNodes ( )

whether to autoselect nodes or to lanes

Definition at line 357 of file GNEViewNet.cpp.

References myMenuCheckExtendToEdgeNodes.

Referenced by GNESelectorFrame::handleIDs(), and GNEViewNet::SelectingArea::processSelection().

◆ beginMoveSelection()

◆ buildColorRainbow()

void GNEViewNet::buildColorRainbow ( GUIColorScheme &  scheme,
int  active,
GUIGlObjectType  objectType 
)
virtual

◆ buildEditModeControls()

void GNEViewNet::buildEditModeControls ( )
private

adds controls for setting the edit mode

Definition at line 2478 of file GNEViewNet.cpp.

References GUIIconSubSys::getIcon(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TLS, GUIDesignButtonToolbarCheckable, ICON_MODEADDITIONAL, ICON_MODECONNECTION, ICON_MODECREATEEDGE, ICON_MODECROSSING, ICON_MODEDELETE, ICON_MODEINSPECT, ICON_MODEMOVE, ICON_MODEPOLYGON, ICON_MODEPROHIBITION, ICON_MODESELECT, ICON_MODETLS, StringBijection< T >::insert(), MID_GNE_SETMODE_ADDITIONAL, MID_GNE_SETMODE_CONNECT, MID_GNE_SETMODE_CREATE_EDGE, MID_GNE_SETMODE_CROSSING, MID_GNE_SETMODE_DELETE, MID_GNE_SETMODE_INSPECT, MID_GNE_SETMODE_MOVE, MID_GNE_SETMODE_POLYGON, MID_GNE_SETMODE_PROHIBITION, MID_GNE_SETMODE_SELECT, MID_GNE_SETMODE_TLS, MID_GNE_VIEWNET_MOVE_ELEVATION, MID_GNE_VIEWNET_SELECT_EDGES, MID_GNE_VIEWNET_SHOW_BUBBLES, MID_GNE_VIEWNET_SHOW_CONNECTIONS, MID_GNE_VIEWNET_SHOW_GRID, myAutoCreateOppositeEdge, myChainCreateEdge, myEditModeAdditional, myEditModeConnection, myEditModeCreateEdge, myEditModeCrossing, myEditModeDelete, myEditModeInspect, myEditModeMove, myEditModeNames, myEditModePolygon, myEditModeProhibition, myEditModeSelect, myEditModeTrafficLight, myMenuCheckChangeAllPhases, myMenuCheckExtendToEdgeNodes, myMenuCheckHideConnections, myMenuCheckMoveElevation, myMenuCheckSelectEdges, myMenuCheckShowBubbleOverJunction, myMenuCheckShowConnections, myMenuCheckShowGrid, myMenuCheckWarnAboutMerge, myToolbar, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::showLane2Lane, SUMO_TAG_CONNECTION, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_TRAFFIC_LIGHT, and toString().

◆ buildSelectionACPopupEntry()

void GNEViewNet::buildSelectionACPopupEntry ( GUIGLObjectPopupMenu *  ret,
GNEAttributeCarrier *  AC 
)

Builds an entry which allows to (de)select the object.

Parameters
retThe popup menu to add the entry to
ACAttributeCarrier that will be select/unselected

Definition at line 263 of file GNEViewNet.cpp.

References GUIIconSubSys::getIcon(), ICON_FLAG_MINUS, ICON_FLAG_PLUS, GNEAttributeCarrier::isAttributeCarrierSelected(), MID_ADDSELECT, and MID_REMOVESELECT.

Referenced by GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GNEAdditional::getPopUpMenu().

◆ 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 583 of file GUISUMOAbstractView.cpp.

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

◆ changeAllPhases()

bool GNEViewNet::changeAllPhases ( ) const

change all phases

Definition at line 369 of file GNEViewNet.cpp.

References myMenuCheckChangeAllPhases.

Referenced by GNETLSEditorFrame::handleChange().

◆ checkGDALImage()

◆ checkSnapshots()

◆ copyViewportTo()

◆ deleteSelectedAdditionals()

void GNEViewNet::deleteSelectedAdditionals ( )
private

◆ deleteSelectedConnections()

void GNEViewNet::deleteSelectedConnections ( )
private

delete all currently selected connections

Definition at line 2775 of file GNEViewNet.cpp.

References GNENet::deleteConnection(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), SUMO_TAG_CONNECTION, and toString().

Referenced by hotkeyDel().

◆ deleteSelectedCrossings()

void GNEViewNet::deleteSelectedCrossings ( )
private

◆ deleteSelectedEdges()

void GNEViewNet::deleteSelectedEdges ( )
private

delete all currently selected edges

Definition at line 2716 of file GNEViewNet.cpp.

References GNENet::deleteEdge(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveEdges(), SUMO_TAG_EDGE, and toString().

Referenced by hotkeyDel().

◆ deleteSelectedJunctions()

void GNEViewNet::deleteSelectedJunctions ( )
private

delete all currently selected junctions

Definition at line 2687 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().

◆ deleteSelectedLanes()

void GNEViewNet::deleteSelectedLanes ( )
private

delete all currently selected lanes

Definition at line 2701 of file GNEViewNet.cpp.

References GNENet::deleteLane(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveLanes(), SUMO_TAG_LANE, and toString().

Referenced by hotkeyDel().

◆ deleteSelectedShapes()

void GNEViewNet::deleteSelectedShapes ( )
private

delete all currently selected shapes

Definition at line 2799 of file GNEViewNet.cpp.

References GNENet::deleteShape(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNENet::retrieveShapes().

Referenced by hotkeyDel().

◆ destroyPopup()

◆ displayLegend()

void GUISUMOAbstractView::displayLegend ( )
protectedinherited

◆ doInit()

void GNEViewNet::doInit ( )
protectedvirtual

called after some features are already initialized

Reimplemented from GUISUMOAbstractView.

Definition at line 214 of file GNEViewNet.cpp.

Referenced by GNEViewNet().

◆ doPaintGL()

int GNEViewNet::doPaintGL ( int  mode,
const Boundary &  bound 
)
protectedvirtual

do paintGL

Reimplemented from GUISUMOAbstractView.

Definition at line 527 of file GNEViewNet.cpp.

References RGBColor::BLACK, RGBColor::BLUE, GUISUMOAbstractView::drawDecals(), GUIVisualizationSettings::drawForSelecting, GLHelper::drawLine(), GLHelper::drawTextBox(), GUIVisualizationSettings::editMode, GNEPolygonFrame::DrawingMode::getDeleteLastCreatedPoint(), GNEPolygonFrame::getDrawingMode(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEPolygonFrame::DrawingMode::getTemporalShape(), GLO_ADDITIONAL, GLO_MAX, RGBColor::GREEN, GNEPolygonFrame::DrawingMode::isDrawing(), GUISUMOAbstractView::m2p(), RGBColor::MAGENTA, GUISUMOAbstractView::myAdditionallyDrawn, GUISUMOAbstractView::myApp, myEditMode, GUISUMOAbstractView::myGrid, myMenuCheckShowConnections, myMenuCheckShowGrid, mySelectingArea, myTestingMode, GUISUMOAbstractView::myUseToolTips, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, GUISUMOAbstractView::p2m(), GUISUMOAbstractView::paintGLGrid(), RGBColor::RED, GUIVisualizationSettings::scale, GUISUMOAbstractView::screenPos2NetPos(), SUMORTree::Search(), GNEViewNet::SelectingArea::selectingUsingRectangle, GNENet::selectionColor, GNEViewNet::SelectingArea::selectionCorner1, GNEViewNet::SelectingArea::selectionCorner2, GLHelper::setColor(), GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showLane2Lane, GUISUMOAbstractView::snapToActiveGrid(), SUMO_const_laneWidth, GNEViewNet::testingMode::testingEnabled, GNEViewNet::testingMode::testingHeight, GNEViewNet::testingMode::testingWidth, toString(), RGBColor::WHITE, Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().

Referenced by GNEViewNet().

◆ drawDecals()

◆ endSnapshot()

◆ finishMoveSelection()

void GNEViewNet::finishMoveSelection ( )

◆ getACUnderCursor()

◆ getAdditionalAtPopupPosition()

◆ getChanger()

◆ getColoringSchemesCombo()

FXComboBox & GUISUMOAbstractView::getColoringSchemesCombo ( )
inherited

◆ getConnectionAtPopupPosition()

◆ getCrossingAtPopupPosition()

◆ getCurrentEditMode()

EditMode GNEViewNet::getCurrentEditMode ( ) const

◆ getCurrentTimeStep()

SUMOTime GUISUMOAbstractView::getCurrentTimeStep ( ) const
virtualinherited

get the current simulation time

Reimplemented in GUIViewTraffic.

Definition at line 1050 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 1386 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

◆ getEdgeAtPopupPosition()

◆ getEdgesAtPopupPosition()

◆ getGridHeight()

double GUISUMOAbstractView::getGridHeight ( ) const
inherited

◆ getGridWidth()

double GUISUMOAbstractView::getGridWidth ( ) const
inherited

◆ getJunctionAtPopupPosition()

◆ getLaneAtPopupPosition()

◆ getMenuCheckShowGrid()

FXMenuCheck * GNEViewNet::getMenuCheckShowGrid ( ) const

get grid button

Definition at line 1268 of file GNEViewNet.cpp.

References myMenuCheckShowGrid.

Referenced by GNEApplicationWindow::onCmdToogleGrid().

◆ getNet()

GNENet * GNEViewNet::getNet ( ) const

get the net object

Definition at line 1250 of file GNEViewNet.cpp.

References myNet.

Referenced by GNEAdditionalFrame::addAdditional(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildAdditional(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE2(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNETLSEditorFrame::buildIinternalLanes(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEPolygonFrame::buildPoly(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVehicleType(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNESelectorFrame::clearCurrentSelection(), GNEChargingStation::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE2::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEAccess::drawGL(), GNEParkingSpace::drawGL(), GNECalibrator::drawGL(), GNEAdditional::endGeometryMoving(), GNEAdditional::generateAdditionalChildID(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEDetectorE3::getParentName(), GNECalibratorRoute::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNECalibratorVehicleType::getParentName(), GNEAdditional::getPopUpMenu(), GNERouteProbReroute::GNERouteProbReroute(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectElement(), GNEChargingStation::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE1::isValid(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEDetectorE2::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEDestProbReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNECalibratorRoute::isValid(), GNEVariableSpeedSign::isValid(), GNERerouter::isValid(), GNEAccess::isValid(), GNECalibratorFlow::isValid(), GNEParkingSpace::isValid(), GNECalibrator::isValid(), GNEAdditional::isValidAdditionalID(), GNETLSEditorFrame::TLSFile::myStartElement(), GNECalibratorDialog::onCmdAddFlow(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNETLSEditorFrame::onCmdDefSwitch(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEViewParent::onCmdLocate(), GNETLSEditorFrame::onCmdOK(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), onCmdToogleShowConnection(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildCalibratorRoute(), GNEAdditionalHandler::parseAndBuildCalibratorVehicleType(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNETLSEditorFrame::parseTLSPrograms(), GNEPolygonFrame::processClick(), GNEAdditionalFrame::SelectorParentAdditional::refreshListOfAdditionalParents(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAdditionalHandler::HierarchyInsertedElements::retrieveAdditionalParent(), GNEVariableSpeedSign::setAttribute(), GNEDestProbReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNECalibratorRoute::setAttribute(), GNERerouter::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEDeleteFrame::show(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNEAdditionalFrame::SelectorParentEdges::showList(), GNEAdditionalFrame::SelectorParentLanes::showList(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNECalibratorDialog::updateFlowAndLabelButton(), GNEChargingStation::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), GNEDetectorExit::updateGeometry(), GNEDetectorEntry::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEVaporizer::updateGeometry(), GNEParkingArea::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE2::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNERerouter::updateGeometry(), GNEAccess::updateGeometry(), GNEParkingSpace::updateGeometry(), GNECalibrator::updateGeometry(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), GNECalibratorDialog::updateRouteTable(), GNEAdditionalFrame::SelectorParentEdges::updateUseSelectedEdges(), GNEAdditionalFrame::SelectorParentLanes::updateUseSelectedLanes(), and GNECalibratorDialog::updateVehicleTypeTable().

◆ getObjectAtPosition()

◆ getObjectsAtPosition()

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

◆ getObjectsInBoundary()

◆ getObjectUnderCursor()

◆ getPOIAtPopupPosition()

◆ getPolygonAtPopupPosition()

◆ getPopupPosition()

◆ getPositionInformation()

◆ getTrackedID()

◆ getUndoList()

GNEUndoList * GNEViewNet::getUndoList ( ) const

get the undoList object

Definition at line 1256 of file GNEViewNet.cpp.

References myUndoList.

Referenced by GNEAdditionalDialog::acceptChanges(), GNENet::addPOI(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNENet::addPolygon(), GNEPolygonFrame::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE2(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditionalDialog::cancelChanges(), GNEPoly::changeFirstGeometryPoint(), GNETLSEditorFrame::TLSFile::checkTLSValids(), GNESelectorFrame::clearCurrentSelection(), GNEPoly::closePolygon(), GNENet::computeAndUpdate(), GNEEdge::deleteGeometryPoint(), GNEPoly::deleteGeometryPoint(), GNETLSEditorFrame::editJunction(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNEAdditionalDialog::initChanges(), GNEDialog_FixAdditionalPositions::onCmdAccept(), GNEDialog_AllowDisallow::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNEFrame::GenericParametersEditor::onCmdEditGenericParameter(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNEFrame::GenericParametersEditor::onCmdSetGenericParameter(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNECalibratorVehicleTypeDialog::onCmdSetVariable(), GNECalibratorRouteDialog::onCmdSetVariable(), GNECalibratorFlowDialog::onCmdSetVariable(), GNEPoly::openPolygon(), GNETLSEditorFrame::parseTLSPrograms(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAdditionalDialog::resetChanges(), and GNEPoly::simplifyShape().

◆ getViewParent()

◆ getViewportEditor()

◆ getVisibleBoundary()

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const
inherited

◆ getVisualisationSettings() [1/2]

◆ getVisualisationSettings() [2/2]

GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( )
inherited

get visualisation settings

Definition at line 223 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationSettings.

◆ hotkeyDel()

◆ hotkeyEnter()

◆ hotkeyFocusFrame()

void GNEViewNet::hotkeyFocusFrame ( )

handle focus frame keypress

Definition at line 1190 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 1342 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUISUMOAbstractView::buildColorRainbow().

◆ isInEditMode()

bool GUISUMOAbstractView::isInEditMode ( )
inherited

returns true, if the edit button was pressed

Definition at line 162 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myInEditMode.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ m2p()

double GUISUMOAbstractView::m2p ( double  meter) const
inherited

◆ makeCurrent()

◆ makeSnapshot()

std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile,
const int  width = -1,
const int  height = -1 
)
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 854 of file GUISUMOAbstractView.cpp.

References RGBColor::alpha(), 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().

◆ mergeJunctions()

◆ moveSelection()

void GNEViewNet::moveSelection ( const Position &  offset)

◆ onCmdAddRestrictedLaneBikelane()

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

Add restricted lane for bikes.

Definition at line 1909 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_BICYCLE.

◆ onCmdAddRestrictedLaneBuslane()

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

Add restricted lane for buses.

Definition at line 1915 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_BUS.

◆ onCmdAddRestrictedLaneGreenVerge()

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

Add restricted lane for all vehicles.

Definition at line 1921 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_IGNORING.

◆ onCmdAddRestrictedLaneSidewalk()

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

Add restricted lane for pedestrians.

Definition at line 1903 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_PEDESTRIAN.

◆ onCmdAddReversedEdge()

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

add reversed edge

Definition at line 1568 of file GNEViewNet.cpp.

References GNENet::addReversedEdge(), getEdgeAtPopupPosition(), myNet, and myUndoList.

◆ onCmdAddSelected()

◆ onCmdClearConnections()

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

◆ onCmdClosePolygon()

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

close opened polygon

Definition at line 1712 of file GNEViewNet.cpp.

References GNEPoly::closePolygon(), getPolygonAtPopupPosition(), and myEditShapePoly.

◆ onCmdDeleteGeometryPoint()

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

delete the closes geometry point

Definition at line 1697 of file GNEViewNet.cpp.

References GNEPoly::deleteGeometryPoint(), getPolygonAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), and myEditShapePoly.

◆ onCmdDuplicateLane()

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

◆ onCmdEditConnectionShape()

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

◆ onCmdEditCrossingShape()

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

◆ onCmdEditEdgeEndpoint()

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

change geometry endpoint

Definition at line 1578 of file GNEViewNet.cpp.

References GNEEdge::editEndpoint(), getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), and myUndoList.

◆ onCmdEditJunctionShape()

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

◆ onCmdOpenAdditionalDialog()

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

◆ onCmdOpenPolygon()

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

open closed polygon

Definition at line 1727 of file GNEViewNet.cpp.

References getPolygonAtPopupPosition(), myEditShapePoly, and GNEPoly::openPolygon().

◆ onCmdRemoveRestrictedLaneBikelane()

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

remove restricted lane for bikes

Definition at line 1933 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_BICYCLE.

◆ onCmdRemoveRestrictedLaneBuslane()

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

remove restricted lane for bus

Definition at line 1939 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_BUS.

◆ onCmdRemoveRestrictedLaneGreenVerge()

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

remove restricted lane for all vehicles

Definition at line 1945 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_IGNORING.

◆ onCmdRemoveRestrictedLaneSidewalk()

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

remove restricted lane for pedestrians

Definition at line 1927 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_PEDESTRIAN.

◆ onCmdRemoveSelected()

◆ onCmdReplaceJunction()

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

◆ onCmdResetConnections()

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

◆ onCmdResetEdgeEndpoint()

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

change geometry endpoint

Definition at line 1588 of file GNEViewNet.cpp.

References getEdgeAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), myUndoList, and GNEEdge::resetEndpoint().

◆ onCmdResetJunctionShape()

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

◆ onCmdResetLaneCustomShape()

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

◆ onCmdRestrictLaneBikelane()

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

restrict lane to bikes

Definition at line 1885 of file GNEViewNet.cpp.

References restrictLane(), and SVC_BICYCLE.

◆ onCmdRestrictLaneBuslane()

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

restrict lane to buslanes

Definition at line 1891 of file GNEViewNet.cpp.

References restrictLane(), and SVC_BUS.

◆ onCmdRestrictLaneGreenVerge()

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

restrict lane to all vehicles

Definition at line 1897 of file GNEViewNet.cpp.

References restrictLane(), and SVC_IGNORING.

◆ onCmdRestrictLaneSidewalk()

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

restrict lane to pedestrians

Definition at line 1879 of file GNEViewNet.cpp.

References restrictLane(), and SVC_PEDESTRIAN.

◆ onCmdReverseEdge()

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

reverse edge

Definition at line 1558 of file GNEViewNet.cpp.

References getEdgeAtPopupPosition(), myNet, myUndoList, and GNENet::reverseEdge().

◆ onCmdSetFirstGeometryPoint()

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

set as first geometry point the closes geometry point

Definition at line 1742 of file GNEViewNet.cpp.

References GNEPoly::changeFirstGeometryPoint(), getPolygonAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), GNEPoly::getVertexIndex(), and myEditShapePoly.

◆ onCmdSetModeAdditional()

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

called when user press the button for additional mode

Definition at line 1512 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 1498 of file GNEViewNet.cpp.

References GNE_MODE_CONNECT, and setEditMode().

◆ onCmdSetModeCreateEdge()

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

Definition at line 1463 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 1519 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 1477 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 1484 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 1470 of file GNEViewNet.cpp.

References GNE_MODE_MOVE, and setEditMode().

◆ onCmdSetModePolygon()

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

called when user press the button for polygon mode

Definition at line 1526 of file GNEViewNet.cpp.

References GNE_MODE_POLYGON, and setEditMode().

◆ onCmdSetModeProhibition()

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

called when user press the button for polygon mode

Definition at line 1532 of file GNEViewNet.cpp.

References GNE_MODE_PROHIBITION, and setEditMode().

◆ onCmdSetModeSelect()

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

called when user press the button for select mode

Definition at line 1491 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 1505 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 1682 of file GNEViewNet.cpp.

References getPolygonAtPopupPosition(), myEditShapePoly, and GNEPoly::simplifyShape().

◆ onCmdSmoothEdges()

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

◆ onCmdSmoothEdgesElevation()

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

◆ onCmdSplitEdge()

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

◆ onCmdSplitEdgeBidi()

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

split edge at cursor position

Definition at line 1548 of file GNEViewNet.cpp.

References getEdgesAtPopupPosition(), GUISUMOAbstractView::getPopupPosition(), myNet, myUndoList, and GNENet::splitEdgesBidi().

◆ onCmdSplitJunction()

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

split junction into multiple junctions

Definition at line 2275 of file GNEViewNet.cpp.

References GUISUMOAbstractView::destroyPopup(), getJunctionAtPopupPosition(), myNet, myUndoList, and GNENet::splitJunction().

◆ onCmdStraightenEdges()

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

◆ onCmdStraightenEdgesElevation()

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

◆ onCmdToogleSelectEdges()

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

toogle selet edges

Definition at line 2382 of file GNEViewNet.cpp.

References myMenuCheckSelectEdges, and mySelectEdges.

◆ onCmdToogleShowBubbles()

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

toogle show bubbles

Definition at line 2393 of file GNEViewNet.cpp.

◆ onCmdToogleShowConnection()

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

◆ onCmdTransformPOI()

◆ onConfigure()

◆ onDoubleClicked()

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

Reimplemented in GUIViewTraffic.

Definition at line 733 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onGamingClick()

void GUISUMOAbstractView::onGamingClick ( Position  )
virtualinherited

on gaming click

Reimplemented in GUIViewTraffic.

Definition at line 1176 of file GUISUMOAbstractView.cpp.

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

◆ onKeyPress()

long GNEViewNet::onKeyPress ( FXObject *  o,
FXSelector  sel,
void *  data 
)
virtual

◆ onKeyRelease()

◆ onLeftBtnPress()

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

Reimplemented from GUISUMOAbstractView.

Definition at line 644 of file GNEViewNet.cpp.

References GNEAdditionalFrame::addAdditional(), GNEAdditionalFrame::ADDADDITIONAL_INVALID_PARENT, GNEAdditionalFrame::ADDADDITIONAL_SUCCESS, GNECrossingFrame::addCrossing(), GNEViewNet::ObjectsUnderCursor::additional, GNEViewNet::MovedItems::additionalToMove, GNEPolygonFrame::ADDSHAPE_UPDATEDTEMPORALSHAPE, GNEViewNet::ObjectsUnderCursor::attributeCarrier, beginMoveSelection(), GNEEdge::clickedOverShapeEnd(), GNEEdge::clickedOverShapeStart(), GNEViewNet::ObjectsUnderCursor::connection, GNEViewNet::ObjectsUnderCursor::controlKeyPressed(), GNENet::createEdge(), GNENet::createJunction(), GNEViewNet::ObjectsUnderCursor::crossing, GNEPoly::deleteGeometryPoint(), GNEDeleteFrame::DeleteOptions::deleteOnlyGeometryPoints(), GNEViewNet::ObjectsUnderCursor::edge, GNEViewNet::MovedItems::edgeToMove, GNEEdge::editEndpoint(), GNETLSEditorFrame::editJunction(), GNEFrame::focusUpperElement(), GNEViewParent::getAdditionalFrame(), GNEViewParent::getConnectorFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEDeleteFrame::getDeleteOptions(), GNEInspectorFrame::TemplateEditor::getEdgeTemplate(), NBEdge::getGeometry(), Named::getID(), NBEdge::getInnerGeometry(), GNEViewParent::getInspectorFrame(), GNESelectorFrame::getLockGLObjectTypes(), GNEEdge::getNBEdge(), GUISUMOAbstractView::getObjectUnderCursor(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEJunction::getPositionInView(), GNEPOI::getPositionInView(), GNEAdditional::getPositionInView(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), SUMOPolygon::getShape(), GNEAttributeCarrier::getTag(), GNEInspectorFrame::getTemplateEditor(), GNEViewParent::getTLSEditorFrame(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNEViewNet::ObjectsUnderCursor::glType, GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TLS, GNEProhibitionFrame::handleConnectionClick(), GNEConnectorFrame::handleLaneClick(), GNEUndoList::hasCommandGroup(), GNEInspectorFrame::inspectElement(), GNENetElement::isAttributeCarrierSelected(), GNEAdditional::isAttributeCarrierSelected(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEShape::isMovementBlocked(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEShape::isShapeBlocked(), GNEViewNet::ObjectsUnderCursor::junction, GNEViewNet::MovedItems::junctionToMove, GNEViewNet::ObjectsUnderCursor::lane, GUISUMOAbstractView::makeCurrent(), GNEJunction::markAsCreateEdgeSource(), GNEViewNet::MoveSingleElementValues::movingEndPos, GNEViewNet::MoveSingleElementValues::movingIndexShape, GNEViewNet::MoveSingleElementValues::movingOriginalPosition, GNEViewNet::MoveSingleElementValues::movingOriginalShape, GNEViewNet::MoveSingleElementValues::movingReference, GNEViewNet::MoveSingleElementValues::movingStartPos, myAutoCreateOppositeEdge, myChainCreateEdge, myCreateEdgeSource, myEditMode, myEditShapePoly, myMovedItems, myMoveSingleElementValues, myMovingSelection, myNet, myObjectsUnderCursor, mySelectEdges, mySelectingArea, myShiftKeyPressed, myUndoList, myViewParent, GNEViewNet::ObjectsUnderCursor::netElement, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEViewNet::ObjectsUnderCursor::poi, GNEViewNet::MovedItems::poiToMove, GNEViewNet::ObjectsUnderCursor::poly, GNEViewNet::MovedItems::polyToMove, GNEPolygonFrame::processClick(), processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAttributeCarrier::selectAttributeCarrier(), GNEViewNet::SelectingArea::selectingUsingRectangle, GNEViewNet::SelectingArea::selectionCorner1, GNEViewNet::SelectingArea::selectionCorner2, setStatusBarText(), GNEViewNet::ObjectsUnderCursor::shiftKeyPressed(), GUISUMOAbstractView::snapToActiveGrid(), GNEEdge::startGeometryMoving(), GNEAdditional::startGeometryMoving(), GNEJunction::startGeometryMoving(), SUMO_TAG_EDGE, SUMO_TAG_LANE, GNEViewNet::ObjectsUnderCursor::swapLane2Edge(), toString(), GNEJunction::unMarkAsCreateEdgeSource(), GNEAttributeCarrier::unselectAttributeCarrier(), GNESelectorFrame::LockGLObjectTypes::updateLockGLObjectTypes(), and GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor().

◆ onLeftBtnRelease()

◆ onMiddleBtnPress()

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

Definition at line 700 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMiddleBtnRelease()

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

Definition at line 706 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMouseLeft()

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

Definition at line 776 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

◆ onMouseMove()

long GNEViewNet::onMouseMove ( FXObject *  obj,
FXSelector  sel,
void *  eventData 
)
virtual

called when user moves mouse

Reimplemented from GUISUMOAbstractView.

Definition at line 1017 of file GNEViewNet.cpp.

References GNEViewNet::MovedItems::additionalToMove, GNEViewNet::MovedItems::edgeToMove, GNEPolygonFrame::getDrawingMode(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNE_MODE_POLYGON, GUIVisualizationSettings::gridXSize, GNEAdditional::isAdditionalBlocked(), GNEPolygonFrame::DrawingMode::isDrawing(), GNEShape::isShapeBlocked(), GNEViewNet::MovedItems::junctionToMove, GNEPoly::moveEntireShape(), GNEPOI::moveGeometry(), GNEAdditional::moveGeometry(), GNEJunction::moveGeometry(), moveSelection(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), GNEViewNet::MoveSingleElementValues::movingEndPos, GNEViewNet::MoveSingleElementValues::movingIndexShape, GNEViewNet::MoveSingleElementValues::movingOriginalPosition, GNEViewNet::MoveSingleElementValues::movingOriginalShape, GNEViewNet::MoveSingleElementValues::movingReference, GNEViewNet::MoveSingleElementValues::movingStartPos, myEditMode, myMenuCheckMoveElevation, myMovedItems, myMoveSingleElementValues, myMovingSelection, mySelectingArea, myShiftKeyPressed, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::onMouseMove(), GNEViewNet::MovedItems::poiToMove, GNEViewNet::MovedItems::polyToMove, GNEViewNet::SelectingArea::reportDimensions(), GNEViewNet::SelectingArea::selectingUsingRectangle, GNEViewNet::SelectingArea::selectionCorner2, GNEPolygonFrame::DrawingMode::setDeleteLastCreatedPoint(), setStatusBarText(), GUIVisualizationSettings::showGrid, GUISUMOAbstractView::snapToActiveGrid(), Position::x(), and Position::y().

◆ onMouseWheel()

◆ onPaint()

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

◆ onRightBtnPress()

long GNEViewNet::onRightBtnPress ( FXObject *  obj,
FXSelector  sel,
void *  eventData 
)
virtual

◆ onRightBtnRelease()

long GNEViewNet::onRightBtnRelease ( FXObject *  obj,
FXSelector  sel,
void *  eventData 
)
virtual

◆ openObjectDialog()

◆ operator=()

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

Invalidated assignment operator.

◆ p2m()

◆ paintGL()

◆ paintGLGrid()

◆ processClick()

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

Auxiliar function used by onLeftBtnPress(...)

Definition at line 2196 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 1136 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 1142 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 1326 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ removeRestrictedLane()

◆ restrictLane()

◆ retrieveBreakpoints()

◆ 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 1005 of file GUISUMOAbstractView.cpp.

References UNUSED_PARAMETER.

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

◆ screenPos2NetPos()

◆ selectEdges()

bool GNEViewNet::selectEdges ( )

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

Definition at line 337 of file GNEViewNet.cpp.

References mySelectEdges.

Referenced by GNESelectorFrame::SelectionOperation::onCmdInvert().

◆ setACUnderCursor()

void GNEViewNet::setACUnderCursor ( const GNEAttributeCarrier *  AC)

◆ setApplicationSnapshots()

void GUISUMOAbstractView::setApplicationSnapshots ( std::set< SUMOTime > *  snapshots,
FXMutex *  lock 
)
inlineinherited

◆ setColorScheme()

◆ setDelay()

void GUISUMOAbstractView::setDelay ( double  delay)
inherited

Sets the delay of the parent application.

Definition at line 1392 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::loadSettings().

◆ setEditMode()

◆ setEditModeFromHotkey()

◆ setSelectionScaling()

void GNEViewNet::setSelectionScaling ( double  selectionScale)

◆ setStatusBarText()

◆ setViewportFromToRot()

◆ 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 597 of file GUISUMOAbstractView.cpp.

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

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

◆ showConnections()

◆ showJunctionAsBubbles()

bool GNEViewNet::showJunctionAsBubbles ( ) const

return true if junction must be showed as bubbles

Definition at line 375 of file GNEViewNet.cpp.

References GNE_MODE_MOVE, myEditMode, and myMenuCheckShowBubbleOverJunction.

Referenced by GNEJunction::drawGL(), and GNEJunction::mouseOverObject().

◆ showLockIcon()

bool GNEViewNet::showLockIcon ( ) const

check if lock icon should be visible

Definition at line 1286 of file GNEViewNet.cpp.

References GNE_MODE_ADDITIONAL, GNE_MODE_INSPECT, GNE_MODE_MOVE, and myEditMode.

Referenced by GNEShape::drawLockIcon(), and GNEAdditional::drawLockIcon().

◆ showToolTipFor()

◆ showToolTips()

void GUISUMOAbstractView::showToolTips ( bool  val)
inherited

◆ showViewportEditor()

◆ showViewschemeEditor()

◆ snapToActiveGrid()

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

◆ startEditCustomShape()

◆ startTrack()

void GUISUMOAbstractView::startTrack ( int  )
virtualinherited

◆ stopEditCustomShape()

void GNEViewNet::stopEditCustomShape ( )

◆ stopTrack()

◆ updateControls()

void GNEViewNet::updateControls ( )

update control contents after undo/redo or recompute

Definition at line 2876 of file GNEViewNet.cpp.

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

Referenced by GNEApplicationWindow::updateControls().

◆ updateModeSpecificControls()

void GNEViewNet::updateModeSpecificControls ( )
private

updates mode specific controls

Definition at line 2555 of file GNEViewNet.cpp.

References GNEFrame::focusUpperElement(), GNEViewParent::getAdditionalFrame(), GNEViewParent::getConnectorFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEViewParent::getInspectorFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getTLSEditorFrame(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_PROHIBITION, GNE_MODE_SELECT, GNE_MODE_TLS, GNEViewParent::hideAllFrames(), myAutoCreateOppositeEdge, myChainCreateEdge, myCurrentFrame, myEditMode, myEditModeAdditional, myEditModeConnection, myEditModeCreateEdge, myEditModeCrossing, myEditModeDelete, myEditModeInspect, myEditModeMove, myEditModePolygon, myEditModeProhibition, myEditModeSelect, myEditModeTrafficLight, myMenuCheckChangeAllPhases, myMenuCheckExtendToEdgeNodes, myMenuCheckHideConnections, myMenuCheckMoveElevation, myMenuCheckSelectEdges, myMenuCheckShowBubbleOverJunction, myMenuCheckShowConnections, myMenuCheckShowGrid, myMenuCheckWarnAboutMerge, myToolbar, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::onPaint(), MFXCheckableButton::setChecked(), GNEProhibitionFrame::show(), GNEDeleteFrame::show(), GNEFrame::show(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEPolygonFrame::show(), GNEAdditionalFrame::show(), and GUIVisualizationSettings::showGrid.

Referenced by setEditMode().

◆ updatePositionInformation()

◆ updateToolTip()

void GUISUMOAbstractView::updateToolTip ( )
inherited

Field Documentation

◆ myACUnderCursor

const GNEAttributeCarrier* GNEViewNet::myACUnderCursor
private

current AttributeCarrier under Mouse position

Definition at line 738 of file GNEViewNet.h.

Referenced by getACUnderCursor(), and setACUnderCursor().

◆ myAdditionallyDrawn

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

◆ myAmInitialised

bool GUISUMOAbstractView::myAmInitialised
protectedinherited

Internal information whether doInit() was called.

Definition at line 419 of file GUISUMOAbstractView.h.

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

◆ myApp

◆ myApplicationSnapshots

std::set<SUMOTime>* GUISUMOAbstractView::myApplicationSnapshots
protectedinherited

◆ myApplicationSnapshotsLock

FXMutex* GUISUMOAbstractView::myApplicationSnapshotsLock
protectedinherited

◆ myAutoCreateOppositeEdge

FXMenuCheck* GNEViewNet::myAutoCreateOppositeEdge
private

Definition at line 636 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 635 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 632 of file GNEViewNet.h.

Referenced by abortOperation(), and onLeftBtnPress().

◆ myCurrentFrame

GNEFrame* GNEViewNet::myCurrentFrame
private

the current frame

Definition at line 600 of file GNEViewNet.h.

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

◆ 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 conflicts.

Definition at line 436 of file GUISUMOAbstractView.h.

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

◆ myEditAdditionalModeNames

StringBijection<EditMode> GNEViewNet::myEditAdditionalModeNames
private

stringBijection for edit additional mode names

Definition at line 731 of file GNEViewNet.h.

◆ myEditMode

◆ myEditModeAdditional

MFXCheckableButton* GNEViewNet::myEditModeAdditional
private

chekable button for edit mode additional

Definition at line 712 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeConnection

MFXCheckableButton* GNEViewNet::myEditModeConnection
private

chekable button for edit mode connection

Definition at line 706 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeCreateEdge

MFXCheckableButton* GNEViewNet::myEditModeCreateEdge
private

Definition at line 691 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeCrossing

MFXCheckableButton* GNEViewNet::myEditModeCrossing
private

chekable button for edit mode crossing

Definition at line 715 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeDelete

MFXCheckableButton* GNEViewNet::myEditModeDelete
private

chekable button for edit mode delete

Definition at line 697 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeInspect

MFXCheckableButton* GNEViewNet::myEditModeInspect
private

chekable button for edit mode inspect

Definition at line 700 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeMove

MFXCheckableButton* GNEViewNet::myEditModeMove
private

chekable button for edit mode move

Definition at line 694 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 728 of file GNEViewNet.h.

Referenced by buildEditModeControls().

◆ myEditModePolygon

MFXCheckableButton* GNEViewNet::myEditModePolygon
private

chekable button for edit mode polygon

Definition at line 718 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeProhibition

MFXCheckableButton* GNEViewNet::myEditModeProhibition
private

checkable button for edit mode polygon

Definition at line 721 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeSelect

MFXCheckableButton* GNEViewNet::myEditModeSelect
private

chekable button for edit mode select

Definition at line 703 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditModeTrafficLight

MFXCheckableButton* GNEViewNet::myEditModeTrafficLight
private

chekable button for edit mode traffic light

Definition at line 709 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myEditShapePoly

◆ myGrid

◆ myInEditMode

bool GUISUMOAbstractView::myInEditMode
protectedinherited

Information whether too-tip informations shall be generated.

Definition at line 401 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::isInEditMode().

◆ myMenuCheckChangeAllPhases

FXMenuCheck* GNEViewNet::myMenuCheckChangeAllPhases
private

menu check to set change all phases

Definition at line 615 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 612 of file GNEViewNet.h.

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

◆ myMenuCheckHideConnections

FXMenuCheck* GNEViewNet::myMenuCheckHideConnections
private

menu check to hide connections in connect mode

Definition at line 609 of file GNEViewNet.h.

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

◆ myMenuCheckMoveElevation

FXMenuCheck* GNEViewNet::myMenuCheckMoveElevation
private

apply movement to elevation

Definition at line 648 of file GNEViewNet.h.

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

◆ myMenuCheckSelectEdges

FXMenuCheck* GNEViewNet::myMenuCheckSelectEdges
private

menu check to select only edges

Definition at line 603 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 645 of file GNEViewNet.h.

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

◆ myMenuCheckShowConnections

FXMenuCheck* GNEViewNet::myMenuCheckShowConnections
private

menu check to show connections

Definition at line 606 of file GNEViewNet.h.

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

◆ myMenuCheckShowGrid

FXMenuCheck* GNEViewNet::myMenuCheckShowGrid
private

show grid button

Definition at line 618 of file GNEViewNet.h.

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

◆ myMenuCheckWarnAboutMerge

FXMenuCheck* GNEViewNet::myMenuCheckWarnAboutMerge
private

whether we should warn about merging junctions

Definition at line 642 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 404 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMouseHotspotY

int GUISUMOAbstractView::myMouseHotspotY
protectedinherited

Definition at line 404 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMovedItems

MovedItems GNEViewNet::myMovedItems
private

variable use to save pointers to moved elements

Definition at line 655 of file GNEViewNet.h.

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

◆ myMoveSingleElementValues

MoveSingleElementValues GNEViewNet::myMoveSingleElementValues
private

variable used to save variables related with movement of single elements

Definition at line 658 of file GNEViewNet.h.

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

◆ myMovingSelection

bool GNEViewNet::myMovingSelection
private

whether a selection is being moved

Definition at line 667 of file GNEViewNet.h.

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

◆ myNet

◆ myObjectsUnderCursor

ObjectsUnderCursor GNEViewNet::myObjectsUnderCursor
private

variable use to save all pointers to objects under cursor after a click

Definition at line 652 of file GNEViewNet.h.

Referenced by onLeftBtnPress().

◆ myOriginPositionOfMovedJunctions

std::map<GNEJunction*, Position> GNEViewNet::myOriginPositionOfMovedJunctions
private

Selected Junctions that are being moved.

NOTE: IN the future will be changed to std::map<GNENetElement*, Position>

Definition at line 671 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().

◆ myOriginShapesMovedEntireShapes

std::map<GNEEdge*, PositionVector> GNEViewNet::myOriginShapesMovedEntireShapes
private

Selected Edges that are being moved < Edge, PositionVector >

Definition at line 674 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().

◆ myOriginShapesMovedPartialShapes

std::map<GNEEdge*, MovingEdges> GNEViewNet::myOriginShapesMovedPartialShapes
private

Definition at line 682 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().

◆ myParent

GUIGlChildWindow* GUISUMOAbstractView::myParent
protectedinherited

The parent window.

Definition at line 392 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getColoringSchemesCombo().

◆ myPolyDrawLock

MFXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotectedinherited

poly draw lock

Definition at line 448 of file GUISUMOAbstractView.h.

◆ myPopup

◆ myPopupPosition

Position GUISUMOAbstractView::myPopupPosition
protectedinherited

◆ myPreviousEditMode

EditMode GNEViewNet::myPreviousEditMode
private

the previous edit mode before edit junction's shapes

Definition at line 746 of file GNEViewNet.h.

Referenced by startEditCustomShape(), and stopEditCustomShape().

◆ mySelectEdges

bool GNEViewNet::mySelectEdges
private

flag to check if select edges is enabled

Definition at line 624 of file GNEViewNet.h.

Referenced by onCmdToogleSelectEdges(), onLeftBtnPress(), GNEViewNet::SelectingArea::processSelection(), and selectEdges().

◆ mySelectingArea

SelectingArea GNEViewNet::mySelectingArea
private

variable used to save variables related with selecting areas

Definition at line 661 of file GNEViewNet.h.

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

◆ myShiftKeyPressed

bool GNEViewNet::myShiftKeyPressed
private

flag to check if shift key is pressed (can be changed after Key Press/Released and mouse Move)

Definition at line 627 of file GNEViewNet.h.

Referenced by onKeyPress(), onKeyRelease(), onLeftBtnPress(), and onMouseMove().

◆ myShowConnections

bool GNEViewNet::myShowConnections
private

whether show connections has been activated once

Definition at line 621 of file GNEViewNet.h.

Referenced by onCmdToogleShowConnection().

◆ mySnapshots

std::map<SUMOTime, std::vector<std::tuple<std::string, int, int> > > GUISUMOAbstractView::mySnapshots
protectedinherited

Snapshots.

Definition at line 440 of file GUISUMOAbstractView.h.

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

◆ mySnapshotsLock

MFXMutex GUISUMOAbstractView::mySnapshotsLock
protectedinherited

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

Definition at line 444 of file GUISUMOAbstractView.h.

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

◆ myTestingMode

testingMode GNEViewNet::myTestingMode
private

variable used to save variables related with testing mode

Definition at line 664 of file GNEViewNet.h.

Referenced by doPaintGL().

◆ myToolbar

FXToolBar* GNEViewNet::myToolbar
private

a reference to the toolbar in myParent

Definition at line 686 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

◆ myUndoList

◆ myUseToolTips

bool GUISUMOAbstractView::myUseToolTips
protectedinherited

◆ myViewParent

◆ myViewportChooser

◆ myVisualizationChanger

GUIDialog_ViewSettings* GUISUMOAbstractView::myVisualizationChanger
protectedinherited

◆ myVisualizationSettings

◆ myWindowCursorPositionX

FXint GUISUMOAbstractView::myWindowCursorPositionX
protectedinherited

Position of the cursor relative to the window.

Definition at line 425 of file GUISUMOAbstractView.h.

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

◆ myWindowCursorPositionY

FXint GUISUMOAbstractView::myWindowCursorPositionY
protectedinherited

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