Eclipse SUMO - Simulation of Urban MObility
GNEViewNet Class Reference

#include <GNEViewNet.h>

Inheritance diagram for GNEViewNet:
Collaboration diagram for GNEViewNet:

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 buildColorRainbow (const GUIVisualizationSettings &s, GUIColorScheme &scheme, int active, GUIGlObjectType objectType, bool hide=false, double hideThreshold=0.)
 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...
 
void buildViewToolBars (GUIGlChildWindow &)
 builds the view toolbars More...
 
void centerTo (const Boundary &bound)
 centers to the chosen artifact More...
 
virtual void centerTo (const Position &pos, bool applyZoom, double zoomDist=20)
 centers to the chosen position More...
 
virtual void centerTo (GUIGlID id, bool applyZoom, double zoomDist=20)
 centers to the chosen artifact More...
 
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...
 
std::set< std::pair< std::string, GNEAttributeCarrier * > > getAttributeCarriersInBoundary (const Boundary &boundary, bool forceSelectEdges=false)
 get AttributeCarriers in Boundary More...
 
GUIPerspectiveChangergetChanger () const
 get changer More...
 
FXComboBox * getColoringSchemesCombo ()
 get coloring schemes combo More...
 
const GNEViewNetHelper::CommonViewOptionsgetCommonViewOptions () const
 get Common view options More...
 
double getDelay () const
 Returns the delay of the parent application. More...
 
const GNEViewNetHelper::DemandViewOptionsgetDemandViewOptions () const
 get demand view options More...
 
const GNEAttributeCarriergetDottedAC () const
 get AttributeCarrier under cursor More...
 
virtual std::vector< std::string > getEdgeDataAttrs () const
 return list of loaded edgeData attributes More...
 
std::vector< std::string > getEdgeLaneParamKeys (bool edgeKeys) const
 return list of available edge parameters More...
 
const GNEViewNetHelper::EditModesgetEditModes () const
 get edit modes More...
 
const GNEViewNetHelper::EditShapesgetEditShapes () const
 get Edit Shape modul More...
 
double getFPS () const
 retrieve FPS More...
 
double getGridHeight () const
 get grid height More...
 
double getGridWidth () const
 get grid width More...
 
const GNEViewNetHelper::KeyPressedgetKeyPressed () const
 get Key Pressed modul More...
 
GNENetgetNet () const
 get the net object More...
 
const GNEViewNetHelper::NetworkViewOptionsgetNetworkViewOptions () const
 get network view options More...
 
const PositiongetPopupPosition () const
 get position of current popup More...
 
Position getPositionInformation () const
 Returns the cursor's x/y position within the network. More...
 
const GNEViewNetHelper::TestingModegetTestingMode () const
 get testing mode More...
 
virtual GUIGlID getTrackedID () const
 get tracked id More...
 
GNEUndoListgetUndoList () const
 get the undoList object More...
 
virtual std::vector< std::string > getVehicleParamKeys (bool) const
 return list of available vehicle parameters More...
 
GNEViewParentgetViewParent () const
 get the net object More...
 
GUIDialog_EditViewportgetViewportEditor ()
 get the viewport and create it on first access More...
 
Boundary getVisibleBoundary () const
 get visible boundary More...
 
GUIVisualizationSettingsgetVisualisationSettings ()
 get visualisation settings More...
 
GUIVisualizationSettingsgetVisualisationSettings () const
 get visualitation settings More...
 
Position getWindowCursorPosition () const
 Returns the information whether rotation is allowd. More...
 
 GNEViewNet (FXComposite *tmpParent, FXComposite *actualParent, GUIMainWindow &app, GNEViewParent *viewParent, GNENet *net, GNEUndoList *undoList, FXGLVisual *glVis, FXGLCanvas *share)
 
void hotkeyBackSpace ()
 handle backspace keypress 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...
 
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 onCmdLaneOperation (FXObject *, FXSelector sel, void *)
 add/remove/restrict lane More...
 
long onCmdOpenAdditionalDialog (FXObject *, FXSelector, void *)
 open additional dialog More...
 
long onCmdOpenPolygon (FXObject *, FXSelector, void *)
 open closed polygon 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 onCmdResetLength (FXObject *, FXSelector, void *)
 reset custom edge lengths 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 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 onCmdSplitJunctionReconnect (FXObject *, FXSelector, void *)
 split junction into multiple junctions and reconnect them More...
 
long onCmdStraightenEdges (FXObject *, FXSelector, void *)
 makes selected edges straight More...
 
long onCmdStraightenEdgesElevation (FXObject *, FXSelector, void *)
 interpolate z values linear between junctions More...
 
long onCmdTransformPOI (FXObject *, FXSelector, void *)
 Transform POI to POILane, and viceversa. More...
 
virtual long onConfigure (FXObject *, FXSelector, void *)
 mouse functions More...
 
virtual long onDoubleClicked (FXObject *, FXSelector, void *)
 
virtual void onGamingClick (Position)
 on gaming click More...
 
virtual void onGamingRightClick (Position)
 
virtual long onMiddleBtnPress (FXObject *, FXSelector, void *)
 
virtual long onMiddleBtnRelease (FXObject *, FXSelector, void *)
 
virtual long onMouseLeft (FXObject *, FXSelector, void *)
 
virtual long onMouseWheel (FXObject *, FXSelector, void *)
 
virtual long onPaint (FXObject *, FXSelector, void *)
 
void openObjectDialog ()
 open object dialog More...
 
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< SUMOTimeretrieveBreakpoints () const
 retrieve breakpoints if provided by the application More...
 
void saveVisualizationSettings () const
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
void setBreakpoints (const std::vector< SUMOTime > &breakpoints)
 Sets the breakpoints of the parent application. More...
 
bool setColorScheme (const std::string &name)
 set color scheme More...
 
void setDelay (double delay)
 Sets the delay of the parent application. More...
 
void setDottedAC (const GNEAttributeCarrier *AC)
 set attributeCarrier under cursor 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 gl-id of the object under the given coordinates. 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, bool snapXY=true) const
 Returns a position that is mapped to the closest grid point if the grid is active. More...
 
virtual void startTrack (int)
 star track More...
 
virtual void stopTrack ()
 stop track More...
 
void update () const
 Mark the entire GNEViewNet to be repainted later. More...
 
void updateControls ()
 update control contents after undo/redo or recompute More...
 
void updateToolTip ()
 A method that updates the tooltip. More...
 
 ~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 modes call backs

called when user press a supermode button

long onCmdSetSupermode (FXObject *, FXSelector sel, void *)
 
long onCmdSetMode (FXObject *, FXSelector sel, void *)
 called when user press a mode button (Network or demand) More...
 
View options network call backs

toogle show demand elements

long onCmdToogleShowDemandElements (FXObject *, FXSelector, void *)
 
long onCmdToogleSelectEdges (FXObject *, FXSelector, void *)
 toogle select edges More...
 
long onCmdToogleShowConnections (FXObject *, FXSelector, void *)
 toogle show connections More...
 
long onCmdToogleHideConnections (FXObject *, FXSelector, void *)
 toogle hide connections More...
 
long onCmdToogleExtendSelection (FXObject *, FXSelector, void *)
 toogle extend selection More...
 
long onCmdToogleChangeAllPhases (FXObject *, FXSelector, void *)
 toogle change all phases More...
 
long onCmdToogleShowGrid (FXObject *, FXSelector, void *)
 toogle show grid More...
 
long onCmdToogleWarnAboutMerge (FXObject *, FXSelector, void *)
 toogle warn for merge More...
 
long onCmdToogleShowJunctionBubbles (FXObject *, FXSelector, void *)
 toogle show junction bubbles More...
 
long onCmdToogleMoveElevation (FXObject *, FXSelector, void *)
 toogle move elevation More...
 
long onCmdToogleChainEdges (FXObject *, FXSelector, void *)
 toogle chain edges More...
 
long onCmdToogleAutoOppositeEdge (FXObject *, FXSelector, void *)
 toogle autoOpposite edge More...
 
long onCmdToogleHideNonInspecteDemandElements (FXObject *, FXSelector, void *)
 toogle hide non inspected demand elements More...
 
long onCmdToogleHideShapes (FXObject *, FXSelector, void *)
 toogle hide shapes in super mode demand More...
 
long onCmdToogleShowAllPersonPlans (FXObject *, FXSelector, void *)
 toogle show all person plans in super mode demand More...
 
long onCmdToogleLockPerson (FXObject *, FXSelector, void *)
 toogle lock person in super mode demand More...
 

Protected Member Functions

Boundary applyGLTransform (bool fixRatio=true)
 applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections) More...
 
FXImage * checkGDALImage (Decal &d)
 check whether we can read image data or position with gdal More...
 
void displayColorLegend ()
 Draws a legend for the current edge coloring scheme. More...
 
void displayLegend ()
 Draws a line with ticks, and the length information. More...
 
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...
 
void drawFPS ()
 Draws frames-per-second indicator. More...
 
std::vector< GUIGlObject * > getGUIGlObjectsAtPosition (Position pos, double radius)
 returns the GUIGlObjects at position within the given (rectangular) radius using GL_SELECT More...
 
std::vector< GUIGlObject * > getGUIGlObjectsUnderCursor ()
 returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects) More...
 
std::vector< GUIGlObject * > getGUIGlObjectsUnderGrippedCursor ()
 returns the GUIGlObject under the gripped cursor using GL_SELECT (including overlapped objects) More...
 
GUIGlID getObjectAtPosition (Position pos)
 returns the id of the object at position using GL_SELECT More...
 
std::vector< GUIGlIDgetObjectsAtPosition (Position pos, double radius)
 returns the ids of the object at position within the given (rectangular) radius using GL_SELECT More...
 
std::vector< GUIGlIDgetObjectsInBoundary (Boundary bound, bool singlePosition)
 returns the ids of all objects in the given boundary More...
 
std::vector< GUIGlIDgetObjectsUnderCursor ()
 returns the id of the objects under the cursor using GL_SELECT (including overlapped objects) More...
 
GUIGlID getObjectUnderCursor ()
 returns the id of the front object under the cursor using GL_SELECT More...
 
 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< GUIGlObject *, int > myAdditionallyDrawn
 List of objects for which GUIGlObject::drawGLAdditional is called. More...
 
bool myAmInitialised
 Internal information whether doInit() was called. More...
 
GUIMainWindowmyApp
 The application. More...
 
GUIPerspectiveChangermyChanger
 The perspective changer. More...
 
long myFrameDrawTime
 counter for measuring rendering time More...
 
SUMORTreemyGrid
 The visualization speed-up. More...
 
bool myInEditMode
 Information whether too-tip informations shall be generated. More...
 
int myMouseHotspotX
 Offset to the mouse-hotspot from the mouse position. More...
 
int myMouseHotspotY
 
GUIGlChildWindowmyParent
 The parent window. More...
 
FXMutex myPolyDrawLock
 poly draw lock More...
 
GUIGLObjectPopupMenumyPopup
 The current popup-menu. More...
 
Position myPopupPosition
 The current popup-menu position. More...
 
FXCondition mySnapshotCondition
 the semaphore when waiting for snapshots to finish More...
 
std::map< SUMOTime, std::vector< std::tuple< std::string, int, int > > > mySnapshots
 Snapshots. More...
 
FXMutex mySnapshotsMutex
 The mutex to use before accessing the decals list in order to avoid thread conflicts. More...
 
bool myUseToolTips
 use tool tips More...
 
GUIDialog_EditViewportmyViewportChooser
 viewport chooser More...
 
GUIDialog_ViewSettingsmyVisualizationChanger
 Visualization changer. More...
 
GUIVisualizationSettingsmyVisualizationSettings
 visualization settings More...
 
FXint myWindowCursorPositionX
 Position of the cursor relative to the window. More...
 
FXint myWindowCursorPositionY
 

Private Member Functions

void processLeftButtonPressNetwork (void *eventData)
 mouse process functions More...
 
void processLeftButtonReleaseNetwork ()
 process left button release function in Supermode Network More...
 
void processMoveMouseNetwork ()
 process move mouse function in Supermode Network More...
 
void processLeftButtonPressDemand (void *eventData)
 process left button press function in Supermode Demand More...
 
void processLeftButtonReleaseDemand ()
 process left button release function in Supermode Demand More...
 
void processMoveMouseDemand ()
 process move mouse function in Supermode Demand More...
 
 GNEViewNet (const GNEViewNet &)=delete
 Invalidated copy constructor. More...
 
GNEViewNetoperator= (const GNEViewNet &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

structs related with modes and testing mode
GNEViewNetHelper::EditModes myEditModes
 variable used to save variables related with edit moves modes More...
 
GNEViewNetHelper::TestingMode myTestingMode
 variable used to save variables related with testing mode More...
 
structs related with input (keyboard and mouse)
GNEViewNetHelper::KeyPressed myKeyPressed
 variable used to save key status after certain events More...
 
GNEViewNetHelper::ObjectsUnderCursor myObjectsUnderCursor
 variable use to save all pointers to objects under cursor after a click More...
 
GNEViewNetHelper::ObjectsUnderCursor myObjectsUnderGrippedCursor
 variable use to save all pointers to objects under cursor after a click with grid enabled More...
 
structs related with checkable buttons
GNEViewNetHelper::CommonCheckableButtons myCommonCheckableButtons
 variable used to save checkable buttons for common supermodes More...
 
GNEViewNetHelper::NetworkCheckableButtons myNetworkCheckableButtons
 variable used to save checkable buttons for Supermode Network More...
 
GNEViewNetHelper::DemandCheckableButtons myDemandCheckableButtons
 variable used to save checkable buttons for Supermode Demand More...
 
structs related with view options
GNEViewNetHelper::CommonViewOptions myCommonViewOptions
 variable used to save variables related with common view options More...
 
GNEViewNetHelper::NetworkViewOptions myNetworkViewOptions
 variable used to save variables related with view options in Network Supermode More...
 
GNEViewNetHelper::DemandViewOptions myDemandViewOptions
 variable used to save variables related with view options in Demand Supermode More...
 
structs related with move elements

variable used to save variables related with movement of single elements

GNEViewNetHelper::MoveSingleElementValues myMoveSingleElementValues
 
GNEViewNetHelper::MoveMultipleElementValues myMoveMultipleElementValues
 variable used to save variables related with movement of multiple elements More...
 

Static Private Attributes

static const double SENSITIVITY = 0.1
 

Friends

struct GNEViewNetHelper
 FOX-declaration. More...
 

structs related with Demand options

GNEViewNetHelper::VehicleOptions myVehicleOptions
 variable used to save variables related with vehicle options More...
 
GNEViewNetHelper::VehicleTypeOptions myVehicleTypeOptions
 variable used to save variables related with vehicle type options More...
 
GNEViewNetHelper::SelectingArea mySelectingArea
 variable used to save variables related with selecting areas More...
 
GNEViewNetHelper::EditShapes myEditShapes
 struct for grouping all variables related with edit shapes More...
 
GNEViewParentmyViewParent
 view parent More...
 
GNENetmyNet
 Pointer to current net. (We are not responsible for deletion) More...
 
GNEFramemyCurrentFrame
 the current frame More...
 
GNEUndoListmyUndoList
 a reference to the undolist maintained in the application More...
 
const GNEAttributeCarriermyDottedAC
 current AttributeCarrier that is drawn using with a dotted contour note: it's constant because is edited from constant functions (example: drawGL(...) const) More...
 
void buildEditModeControls ()
 create edit mode buttons and elements More...
 
void updateNetworkModeSpecificControls ()
 updates Network mode specific controls More...
 
void updateDemandModeSpecificControls ()
 updates Demand mode specific controls More...
 
void deleteSelectedJunctions ()
 delete all currently selected junctions More...
 
void deleteSelectedLanes ()
 delete all currently selected lanes More...
 
void deleteSelectedEdges ()
 delete all currently selected edges More...
 
void deleteSelectedAdditionals ()
 delete all currently selected additionals More...
 
void deleteSelectedDemandElements ()
 delete all currently selected demand elements More...
 
void deleteSelectedCrossings ()
 delete all currently selected crossings More...
 
void deleteSelectedConnections ()
 delete all currently selected connections More...
 
void deleteSelectedShapes ()
 delete all currently selected shapes 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...
 
GNEEdgegetEdgeAtPopupPosition ()
 try to retrieve an edge at popup position More...
 
GNELanegetLaneAtPopupPosition ()
 try to retrieve a lane at popup position More...
 
GNEJunctiongetJunctionAtPopupPosition ()
 try to retrieve a junction at popup position More...
 
GNEConnectiongetConnectionAtPopupPosition ()
 try to retrieve a connection at popup position More...
 
GNECrossinggetCrossingAtPopupPosition ()
 try to retrieve a crossing at popup position More...
 
GNEAdditionalgetAdditionalAtPopupPosition ()
 try to retrieve a additional at popup position More...
 
GNEPolygetPolygonAtPopupPosition ()
 try to retrieve a polygon at popup position More...
 
GNEPOIgetPOIAtPopupPosition ()
 try to retrieve a POILane at popup position More...
 
bool restrictLane (SUMOVehicleClass vclass)
 restrict lane More...
 
bool addRestrictedLane (SUMOVehicleClass vclass)
 add restricted lane More...
 
bool removeRestrictedLane (SUMOVehicleClass vclass)
 remove restricted lane More...
 
void processClick (void *eventData)
 Auxiliar function used by onLeftBtnPress(...) More...
 
void updateCursor ()
 update cursor after every click/key press/release More...
 
void drawLaneCandidates () const
 draw functions More...
 
void drawTemporalDrawShape () const
 draw temporal polygon shape in Polygon Mode More...
 

Dealing with snapshots

void addSnapshot (SUMOTime time, const std::string &file, const int w=-1, const int h=-1)
 Sets the snapshot time to file map. More...
 
std::string makeSnapshot (const std::string &destFile, const int w=-1, const int h=-1)
 Takes a snapshots and writes it into the given file. More...
 
virtual void saveFrame (const std::string &destFile, FXColor *buf)
 Adds a frame to a video snapshot which will be initialized if neccessary. More...
 
virtual void endSnapshot ()
 Ends a video snapshot. More...
 
virtual void checkSnapshots ()
 Checks whether it is time for a snapshot. More...
 
void waitForSnapshots (const SUMOTime snapshotTime)
 
virtual SUMOTime getCurrentTimeStep () const
 get the current simulation time More...
 

Detailed Description

Microsocopic view at the simulation

Definition at line 42 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 
)

Definition at line 171 of file GNEViewNet.cpp.

References GUITextureSubSys::resetTextures().

◆ ~GNEViewNet()

GNEViewNet::~GNEViewNet ( )

destructor

Definition at line 213 of file GNEViewNet.cpp.

◆ GNEViewNet() [2/3]

GNEViewNet::GNEViewNet ( )
protected

FOX needs this.

Definition at line 552 of file GNEViewNet.cpp.

◆ GNEViewNet() [3/3]

GNEViewNet::GNEViewNet ( const GNEViewNet )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortOperation()

void GNEViewNet::abortOperation ( bool  clearSelection = true)

abort current edition operation

Definition at line 836 of file GNEViewNet.cpp.

References GNEAdditionalFrame::SelectorParentLanes::abortConsecutiveLaneSelector(), GNEFrameModuls::DrawingShape::abortDrawing(), GNECreateEdgeFrame::abortEdgeCreation(), GNEFrameModuls::EdgePathCreator::abortEdgePathCreation(), GNEPersonPlanFrame::PersonPlanCreator::abortPersonPlanCreation(), GNESelectorFrame::clearCurrentSelection(), GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GNEViewParent::getAdditionalFrame(), GNEConnectorFrame::getConnectionModifications(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCreateEdgeFrame(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getRouteFrame(), GNEViewParent::getSelectorFrame(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNEViewParent::getVehicleFrame(), GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_VEHICLE, GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GNERouteFrame::hotkeyEsc(), GNEFrameModuls::DrawingShape::isDrawing(), myEditModes, myEditShapes, mySelectingArea, myUndoList, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEUndoList::p_abort(), GNEViewNetHelper::SelectingArea::selectingUsingRectangle, GNETAZFrame::TAZCurrent::setTAZ(), and GNEViewNetHelper::EditShapes::stopEditCustomShape().

Referenced by GNEApplicationWindow::onCmdAbort().

◆ addAdditionalGLVisualisation()

bool GUISUMOAbstractView::addAdditionalGLVisualisation ( 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 1583 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIPerson::addActiveAddVisualisation(), 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  w = -1,
const int  h = -1 
)
inherited

Sets the snapshot time to file map.

Parameters
[in]snapsThe snapshots to take at certain times
[in]wThe snapshot image width
[in]wThe snapshot image height

Definition at line 1097 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::mySnapshots, and GUISUMOAbstractView::mySnapshotsMutex.

Referenced by GUIViewTraffic::checkSnapshots(), TraCIServerAPI_GUI::processSet(), and GUISettingsHandler::setSnapshots().

◆ applyGLTransform()

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

◆ autoSelectNodes()

bool GNEViewNet::autoSelectNodes ( )

whether to autoselect nodes or to lanes

Definition at line 529 of file GNEViewNet.cpp.

References GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, and myNetworkViewOptions.

Referenced by GNESelectorFrame::handleIDs().

◆ buildColorRainbow()

void GNEViewNet::buildColorRainbow ( const GUIVisualizationSettings s,
GUIColorScheme scheme,
int  active,
GUIGlObjectType  objectType,
bool  hide = false,
double  hideThreshold = 0. 
)
virtual

◆ buildEditModeControls()

◆ buildSelectionACPopupEntry()

◆ buildViewToolBars()

◆ centerTo() [1/3]

void GUISUMOAbstractView::centerTo ( const Boundary bound)
inherited

centers to the chosen artifact

Definition at line 814 of file GUISUMOAbstractView.cpp.

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

◆ centerTo() [2/3]

void GUISUMOAbstractView::centerTo ( const Position pos,
bool  applyZoom,
double  zoomDist = 20 
)
virtualinherited

centers to the chosen position

Parameters
[in]posPosition to center view
[in]applyZoomWhether to zoom in
[in]zoomDistThe distance in m to use for the zoom, values < 0 means: use the centeringBoundary
Note
caller is responsible for calling update

Definition at line 806 of file GUISUMOAbstractView.cpp.

References GUIPerspectiveChanger::centerTo(), GUISUMOAbstractView::myChanger, and GUISUMOAbstractView::updatePositionInformation().

◆ centerTo() [3/3]

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

◆ changeAllPhases()

bool GNEViewNet::changeAllPhases ( ) const

◆ checkGDALImage()

◆ checkSnapshots()

◆ copyViewportTo()

◆ deleteSelectedAdditionals()

void GNEViewNet::deleteSelectedAdditionals ( )
private

delete all currently selected additionals

Definition at line 2838 of file GNEViewNet.cpp.

References GNENet::deleteAdditional(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveAdditional(), and GNENet::retrieveAdditionals().

Referenced by hotkeyDel().

◆ deleteSelectedConnections()

void GNEViewNet::deleteSelectedConnections ( )
private

delete all currently selected connections

Definition at line 2898 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

◆ deleteSelectedDemandElements()

void GNEViewNet::deleteSelectedDemandElements ( )
private

delete all currently selected demand elements

Definition at line 2855 of file GNEViewNet.cpp.

References GNENet::deleteDemandElement(), myNet, myUndoList, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNENet::retrieveDemandElement(), and GNENet::retrieveDemandElements().

Referenced by hotkeyDel().

◆ deleteSelectedEdges()

void GNEViewNet::deleteSelectedEdges ( )
private

delete all currently selected edges

Definition at line 2823 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 2794 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 2808 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 2922 of file GNEViewNet.cpp.

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

Referenced by hotkeyDel().

◆ destroyPopup()

◆ displayColorLegend()

◆ displayLegend()

void GUISUMOAbstractView::displayLegend ( )
protectedinherited

Draws a line with ticks, and the length information.

Definition at line 582 of file GUISUMOAbstractView.cpp.

References RGBColor::BLACK, GLHelper::drawText(), FONS_ALIGN_LEFT, and GUISUMOAbstractView::m2p().

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

◆ doInit()

void GNEViewNet::doInit ( )
protectedvirtual

called after some features are already initialized

Reimplemented from GUISUMOAbstractView.

Definition at line 217 of file GNEViewNet.cpp.

◆ doPaintGL()

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

do paintGL

Reimplemented from GUISUMOAbstractView.

Definition at line 603 of file GNEViewNet.cpp.

References GUIVisualizationSettings::colorSettings, GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GUIVisualizationSettings::disableLaneIcons, GUISUMOAbstractView::drawDecals(), GUIVisualizationSettings::drawForPositionSelection, GUIVisualizationSettings::drawForRectangleSelection, drawLaneCandidates(), GNEViewNetHelper::SelectingArea::drawRectangleSelection(), drawTemporalDrawShape(), GNEPersonPlanFrame::PersonPlanCreator::drawTemporalRoute(), GNEFrameModuls::EdgePathCreator::drawTemporalRoute(), GNERouteFrame::drawTemporalRoute(), GNEViewNetHelper::TestingMode::drawTestingElements(), GUIVisualizationSettings::forceDrawForPositionSelection, GUIVisualizationSettings::forceDrawForRectangleSelection, OptionsCont::getBool(), getDottedAC(), GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewNetHelper::DemandViewOptions::getLockedPerson(), OptionsCont::getOptions(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getRouteFrame(), GNEAttributeCarrier::getTagProperty(), GNEViewParent::getVehicleFrame(), GNE_DMODE_INSPECT, GNE_SUPERMODE_DEMAND, GNEAttributeCarrier::TagProperties::isPerson(), GNEAttributeCarrier::TagProperties::isPersonPlan(), GNEAttributeCarrier::TagProperties::isPersonStop(), GUIVisualizationSettings::lefthand, GUISUMOAbstractView::m2p(), GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GUISUMOAbstractView::myApp, myCommonViewOptions, myDemandViewOptions, myEditModes, GUISUMOAbstractView::myGrid, myNetworkViewOptions, mySelectingArea, myTestingMode, GUISUMOAbstractView::myUseToolTips, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationColorSettings::selectionColor, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showLane2Lane, SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

◆ drawDecals()

◆ drawFPS()

void GUISUMOAbstractView::drawFPS ( )
protectedinherited

Draws frames-per-second indicator.

Definition at line 751 of file GUISUMOAbstractView.cpp.

References GLHelper::drawText(), FONS_ALIGN_LEFT, GUISUMOAbstractView::getFPS(), RGBColor::RED, and toString().

Referenced by GUISUMOAbstractView::paintGL().

◆ drawLaneCandidates()

◆ drawTemporalDrawShape()

◆ endSnapshot()

virtual void GUISUMOAbstractView::endSnapshot ( )
inlinevirtualinherited

Ends a video snapshot.

Reimplemented in GUIViewTraffic.

Definition at line 193 of file GUISUMOAbstractView.h.

Referenced by GUISUMOViewParent::onCmdMakeSnapshot().

◆ getAdditionalAtPopupPosition()

◆ getAttributeCarriersInBoundary()

◆ getChanger()

◆ getColoringSchemesCombo()

FXComboBox * GUISUMOAbstractView::getColoringSchemesCombo ( )
inherited

◆ getCommonViewOptions()

const GNEViewNetHelper::CommonViewOptions & GNEViewNet::getCommonViewOptions ( ) const

get Common view options

Definition at line 446 of file GNEViewNet.cpp.

References myCommonViewOptions.

Referenced by GNEApplicationWindow::onCmdToogleEditOptions(), and GNEApplicationWindow::onCmdToogleGrid().

◆ getConnectionAtPopupPosition()

◆ getCrossingAtPopupPosition()

◆ getCurrentTimeStep()

SUMOTime GUISUMOAbstractView::getCurrentTimeStep ( ) const
virtualinherited

get the current simulation time

Reimplemented in GUIViewTraffic.

Definition at line 1315 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::checkSnapshots().

◆ getDelay()

double GUISUMOAbstractView::getDelay ( ) const
inherited

Returns the delay of the parent application.

Definition at line 1655 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

◆ getDemandViewOptions()

◆ getDottedAC()

◆ getEdgeAtPopupPosition()

◆ getEdgeDataAttrs()

virtual std::vector<std::string> GUISUMOAbstractView::getEdgeDataAttrs ( ) const
inlinevirtualinherited

return list of loaded edgeData attributes

Reimplemented in GUIViewTraffic.

Definition at line 230 of file GUISUMOAbstractView.h.

Referenced by GUIDialog_ViewSettings::rebuildColorMatrices().

◆ getEdgeLaneParamKeys()

std::vector< std::string > GNEViewNet::getEdgeLaneParamKeys ( bool  edgeKeys) const
virtual

return list of available edge parameters

Reimplemented from GUISUMOAbstractView.

Definition at line 570 of file GNEViewNet.cpp.

References NBEdgeCont::getAllEdges(), GNENet::getEdgeCont(), and myNet.

◆ getEditModes()

◆ getEditShapes()

const GNEViewNetHelper::EditShapes & GNEViewNet::getEditShapes ( ) const

get Edit Shape modul

Definition at line 470 of file GNEViewNet.cpp.

References myEditShapes.

Referenced by GNEPoly::commitShapeChange().

◆ getFPS()

double GUISUMOAbstractView::getFPS ( ) const
inherited

retrieve FPS

Definition at line 746 of file GUISUMOAbstractView.cpp.

References MAX2(), and GUISUMOAbstractView::myFrameDrawTime.

Referenced by GUISUMOAbstractView::drawFPS(), and GUINet::getParameterWindow().

◆ getGridHeight()

double GUISUMOAbstractView::getGridHeight ( ) const
inherited

◆ getGridWidth()

double GUISUMOAbstractView::getGridWidth ( ) const
inherited

◆ getGUIGlObjectsAtPosition()

std::vector< GUIGlObject * > GUISUMOAbstractView::getGUIGlObjectsAtPosition ( Position  pos,
double  radius 
)
protectedinherited

◆ getGUIGlObjectsUnderCursor()

std::vector< GUIGlObject * > GUISUMOAbstractView::getGUIGlObjectsUnderCursor ( )
protectedinherited

returns the GUIGlObject under the cursor using GL_SELECT (including overlapped objects)

Definition at line 351 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.

Referenced by onLeftBtnPress(), and processLeftButtonReleaseNetwork().

◆ getGUIGlObjectsUnderGrippedCursor()

std::vector< GUIGlObject * > GUISUMOAbstractView::getGUIGlObjectsUnderGrippedCursor ( )
protectedinherited

◆ getJunctionAtPopupPosition()

◆ getKeyPressed()

◆ getLaneAtPopupPosition()

◆ getNet()

GNENet * GNEViewNet::getNet ( ) const

get the net object

Definition at line 1014 of file GNEViewNet.cpp.

References myNet.

Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNERouteHandler::addPersonTrip(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNERouteHandler::addRide(), GNERouteHandler::addStop(), GNEVehicleFrame::addVehicle(), GNERouteHandler::addWalk(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNETLSEditorFrame::buildIinternalLanes(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNEAdditionalHandler::buildRerouter(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNEAdditional::changeAdditionalID(), GNEHierarchicalChildElements::changeChildEdges(), GNEHierarchicalChildElements::changeChildLanes(), GNEDemandElement::changeDemandElementID(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNERouteHandler::closePerson(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNETAZ::commitGeometryMoving(), GNEDetectorE3::commitGeometryMoving(), GNEParkingSpace::commitGeometryMoving(), GNEVariableSpeedSign::commitGeometryMoving(), GNEAccess::commitGeometryMoving(), GNERerouter::commitGeometryMoving(), GNEDetectorE1::commitGeometryMoving(), GNEDetectorEntryExit::commitGeometryMoving(), GNEDetectorE1Instant::commitGeometryMoving(), GNEStoppingPlace::commitGeometryMoving(), GNEStop::commitGeometryMoving(), GNEDetectorE2::commitGeometryMoving(), GNERide::commitGeometryMoving(), GNEPersonTrip::commitGeometryMoving(), GNEWalk::commitGeometryMoving(), GNETAZ::commitShapeChange(), GNETAZ::deleteGeometryPoint(), GNEStop::disableAttribute(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEStop::enableAttribute(), GNEPerson::enableAttribute(), GNEVehicle::enableAttribute(), GNEAdditional::endGeometryMoving(), GNEAdditional::generateChildID(), GNEDemandElement::generateChildID(), GNEAdditionalFrame::generateID(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEAdditionalHandler::getLanePos(), GNESelectorFrame::getMatches(), GNEDetectorE3::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNEVehicleType::getParentName(), GNETAZ::getParentName(), GNERide::getParentName(), GNEPersonTrip::getParentName(), GNEWalk::getParentName(), GNERoute::getParentName(), GNEPerson::getParentName(), GNEAdditional::getPopUpMenu(), GNEVehicle::getPopUpMenu(), GNEStopFrame::getStopParameter(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNERouteHandler::isPersonIdDuplicated(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEChargingStation::isValid(), GNEParkingArea::isValid(), GNEDetectorE1::isValid(), GNEDetectorEntryExit::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEClosingReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEDestProbReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEDetectorE1Instant::isValid(), GNECalibratorFlow::isValid(), GNEVariableSpeedSign::isValid(), GNERerouter::isValid(), GNEAccess::isValid(), GNEDetectorE2::isValid(), GNECalibrator::isValid(), GNEVehicleType::isValid(), GNEStop::isValid(), GNERide::isValid(), GNEPersonTrip::isValid(), GNEWalk::isValid(), GNERoute::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEAdditional::isValidAdditionalID(), GNEDemandElement::isValidDemandElementID(), GNEAdditional::isValidDetectorID(), GNERouteHandler::isVehicleIdDuplicated(), GNEFixDemandElements::onCmdAccept(), GNEFixAdditionalElements::onCmdAccept(), GNECalibratorDialog::onCmdAddFlow(), GNECalibratorDialog::onCmdAddVehicleType(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNETLSEditorFrame::onCmdDefSwitch(), GNEViewParent::onCmdLocate(), GNETLSEditorFrame::onCmdOK(), GNEApplicationWindow::onCmdOpenSUMOGUI(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), onCmdToogleShowConnections(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEHierarchicalParentElements::replaceParentAdditional(), GNEHierarchicalParentElements::replaceParentDemandElement(), GNEHierarchicalParentElements::replaceParentEdges(), GNEHierarchicalParentElements::replaceParentLanes(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), GNEBusStop::setAttribute(), GNEContainerStop::setAttribute(), GNEChargingStation::setAttribute(), GNEParkingArea::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNEClosingReroute::setAttribute(), GNERouteProbReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEDetectorE3::setAttribute(), GNEParkingSpace::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNECalibratorFlow::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNERerouterInterval::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEAccess::setAttribute(), GNERerouter::setAttribute(), GNEDetectorE2::setAttribute(), GNECalibrator::setAttribute(), GNETAZ::setAttribute(), GNEVehicleType::setAttribute(), GNEStop::setAttribute(), GNERide::setAttribute(), GNEPersonTrip::setAttribute(), GNEWalk::setAttribute(), GNERoute::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), GNEVehicle::setColor(), GNERouteHandler::RouteParameter::setEdges(), GNETAZFrame::TAZCurrent::setTAZ(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPersonPlanFrame::show(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNECalibratorDialog::updateFlowAndLabelButton(), GNEParkingArea::updateGeometry(), GNECalibratorDialog::updateRouteTable(), and GNECalibratorDialog::updateVehicleTypeTable().

◆ getNetworkViewOptions()

◆ getObjectAtPosition()

◆ getObjectsAtPosition()

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

◆ getObjectsInBoundary()

◆ getObjectsUnderCursor()

std::vector< GUIGlID > GUISUMOAbstractView::getObjectsUnderCursor ( )
protectedinherited

returns the id of the objects under the cursor using GL_SELECT (including overlapped objects)

Definition at line 335 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::getObjectsAtPosition(), GUISUMOAbstractView::getPositionInformation(), and GUISUMOAbstractView::SENSITIVITY.

◆ getObjectUnderCursor()

GUIGlID GUISUMOAbstractView::getObjectUnderCursor ( )
protectedinherited

◆ getPOIAtPopupPosition()

◆ getPolygonAtPopupPosition()

◆ getPopupPosition()

◆ getPositionInformation()

Position GUISUMOAbstractView::getPositionInformation ( ) const
inherited

Returns the cursor's x/y position within the network.

Definition at line 190 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myWindowCursorPositionX, GUISUMOAbstractView::myWindowCursorPositionY, and GUISUMOAbstractView::screenPos2NetPos().

Referenced by GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEGeometry::drawGeometry(), GNEEdge::drawGeometryPoints(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNEPoly::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEGeometry::drawLaneGeometry(), GNEEdge::drawPartialPersonPlan(), GNEGeometry::drawSegmentGeometry(), drawTemporalDrawShape(), GUISUMOAbstractView::getGUIGlObjectsUnderCursor(), GUISUMOAbstractView::getGUIGlObjectsUnderGrippedCursor(), GUISUMOAbstractView::getObjectsUnderCursor(), GUISUMOAbstractView::getObjectUnderCursor(), GUIEdge::getParameterWindow(), GUIEdge::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GUIDanielPerspectiveChanger::onKeyPress(), GUISUMOAbstractView::onLeftBtnRelease(), GUIDanielPerspectiveChanger::onMouseWheel(), GUIDanielPerspectiveChanger::onRightBtnPress(), GUISUMOAbstractView::onRightBtnRelease(), openObjectDialog(), GUISUMOAbstractView::openObjectDialog(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), GNEDeleteFrame::removeAttributeCarrier(), GUISUMOAbstractView::showToolTipFor(), and GUISUMOAbstractView::updatePositionInformation().

◆ getTestingMode()

const GNEViewNetHelper::TestingMode & GNEViewNet::getTestingMode ( ) const

get testing mode

Definition at line 440 of file GNEViewNet.cpp.

References myTestingMode.

Referenced by GNEPOI::drawGL().

◆ getTrackedID()

◆ getUndoList()

GNEUndoList * GNEViewNet::getUndoList ( ) const

get the undoList object

Definition at line 1020 of file GNEViewNet.cpp.

References myUndoList.

Referenced by GNEAdditionalDialog::acceptChanges(), GNEDemandElementDialog::acceptChanges(), GNETAZFrame::addOrRemoveTAZMember(), GNEPolygonFrame::addPOI(), GNENet::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNENet::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonFlow(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditionalDialog::cancelChanges(), GNEDemandElementDialog::cancelChanges(), GNEPoly::changeFirstGeometryPoint(), GNESelectorFrame::clearCurrentSelection(), GNERouteHandler::closePerson(), GNEPoly::closePolygon(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVehicle(), GNERouteHandler::closeVType(), GNENet::computeAndUpdate(), GNETAZ::deleteGeometryPoint(), GNEEdge::deleteGeometryPoint(), GNEPoly::deleteGeometryPoint(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorEntryExit::fixAdditionalProblem(), GNEStoppingPlace::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNESelectorFrame::handleIDs(), GNEAdditionalDialog::initChanges(), GNEDemandElementDialog::initChanges(), GNEAdditionalHandler::myEndElement(), GNEFixDemandElements::onCmdAccept(), GNEFixAdditionalElements::onCmdAccept(), GNEAllowDisallow::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNETLSEditorFrame::onCmdCancel(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNETLSEditorFrame::onCmdOK(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEApplicationWindow::onCmdRedo(), GNERouteDialog::onCmdSetVariable(), GNECalibratorFlowDialog::onCmdSetVariable(), GNEApplicationWindow::onCmdUndo(), GNEPoly::openPolygon(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEDemandElementDialog::resetChanges(), GNEAdditionalDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable(), GNEPoly::simplifyShape(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().

◆ getVehicleParamKeys()

virtual std::vector<std::string> GUISUMOAbstractView::getVehicleParamKeys ( bool  ) const
inlinevirtualinherited

return list of available vehicle parameters

Reimplemented in GUIViewTraffic.

Definition at line 240 of file GUISUMOAbstractView.h.

Referenced by GUIDialog_ViewSettings::updateVehicleParams().

◆ getViewParent()

GNEViewParent * GNEViewNet::getViewParent ( ) const

get the net object

Definition at line 1008 of file GNEViewNet.cpp.

References myViewParent.

Referenced by GNENet::computeAndUpdate(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNETAZ::drawGL(), GNELane::getPopUpMenu(), GNEFrame::hide(), GNEApplicationWindow::onCmdAbort(), GNEApplicationWindow::onCmdClearTemplate(), GNEApplicationWindow::onCmdCopyTemplate(), GNEInspectorFrame::onCmdGoBack(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEApplicationWindow::onCmdRedo(), GNEApplicationWindow::onCmdSetTemplate(), GNEApplicationWindow::onCmdUndo(), GNELane::onDefault(), GNECreateEdgeFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEChange_DemandElement::redo(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), GNENet::requireSaveAdditionals(), GNENet::requireSaveDemandElements(), GNENet::requireSaveTLSPrograms(), GNENet::saveDemandElements(), GNENetElement::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEFrame::show(), GNEChange_DemandElement::undo(), GNENetElement::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), and GNEVehicle::unselectAttributeCarrier().

◆ getViewportEditor()

◆ getVisibleBoundary()

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const
inherited

get visible boundary

Definition at line 268 of file GUISUMOAbstractView.cpp.

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

Referenced by TraCIServerAPI_GUI::processGet().

◆ getVisualisationSettings() [1/2]

GUIVisualizationSettings* GUISUMOAbstractView::getVisualisationSettings ( )
inherited

get visualisation settings

◆ getVisualisationSettings() [2/2]

◆ getWindowCursorPosition()

Position GUISUMOAbstractView::getWindowCursorPosition ( ) const
inherited

Returns the information whether rotation is allowd.

Note
disabled

return windows cursor position

Definition at line 828 of file GUISUMOAbstractView.cpp.

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

◆ hotkeyBackSpace()

◆ hotkeyDel()

◆ hotkeyEnter()

void GNEViewNet::hotkeyEnter ( )

handle enter keypress

Definition at line 926 of file GNEViewNet.cpp.

References GNECrossingFrame::createCrossingHotkey(), GNEViewNetHelper::EditModes::currentSupermode, GNEViewNetHelper::EditModes::demandEditMode, GNEViewNetHelper::EditShapes::editedShapePoly, GNEFrameModuls::EdgePathCreator::finishEdgePathCreation(), GNEPersonPlanFrame::PersonPlanCreator::finishPersonPlanCreation(), GNEViewParent::getAdditionalFrame(), GNEConnectorFrame::getConnectionModifications(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCrossingFrame(), GNEPolygonFrame::getDrawingShapeModul(), GNETAZFrame::getDrawingShapeModul(), GNEPersonFrame::getEdgePathCreator(), GNEVehicleFrame::getEdgePathCreator(), GNEViewParent::getPersonFrame(), GNEPersonPlanFrame::getPersonPlanCreator(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getRouteFrame(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNETAZFrame::getTAZSaveChangesModul(), GNEViewParent::getTLSEditorFrame(), GNEViewParent::getVehicleFrame(), GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_VEHICLE, GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CROSSING, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GNERouteFrame::hotkeyEnter(), GNETAZFrame::TAZSaveChanges::isChangesPending(), GNEFrameModuls::DrawingShape::isDrawing(), GNEAdditionalFrame::SelectorParentLanes::isSelectingLanes(), myEditModes, myEditShapes, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNETLSEditorFrame::onCmdOK(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNEViewNetHelper::EditShapes::saveEditedShape(), GNEFrameModuls::DrawingShape::startDrawing(), GNEAdditionalFrame::SelectorParentLanes::stopConsecutiveLaneSelector(), and GNEFrameModuls::DrawingShape::stopDrawing().

Referenced by GNEApplicationWindow::onCmdEnter().

◆ hotkeyFocusFrame()

void GNEViewNet::hotkeyFocusFrame ( )

handle focus frame keypress

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

References GUISUMOAbstractView::myAdditionallyDrawn.

◆ isInEditMode()

bool GUISUMOAbstractView::isInEditMode ( )
inherited

returns true, if the edit button was pressed

Definition at line 169 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myInEditMode.

◆ m2p()

double GUISUMOAbstractView::m2p ( double  meter) const
inherited

◆ makeCurrent()

◆ makeSnapshot()

std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile,
const int  w = -1,
const int  h = -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
[in]wThe snapshot image width
[in]wThe snapshot image height
Returns
The error message, if an error occcured; "" otherwise

Definition at line 1107 of file GUISUMOAbstractView.cpp.

References RGBColor::alpha(), GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::displayColorLegend(), 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(), GLHelper::setGL2PS(), GUIVisualizationSettings::showColorLegend, GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showSizeLegend, FXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

Referenced by GUISUMOAbstractView::checkSnapshots(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().

◆ mergeJunctions()

◆ onCmdAddReversedEdge()

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

◆ onCmdAddSelected()

◆ onCmdClearConnections()

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

◆ onCmdClosePolygon()

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

◆ onCmdDeleteGeometryPoint()

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

◆ 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 1359 of file GNEViewNet.cpp.

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

◆ onCmdEditJunctionShape()

◆ onCmdLaneOperation()

◆ onCmdOpenAdditionalDialog()

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

◆ onCmdOpenPolygon()

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

◆ 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 1370 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 *   
)

◆ onCmdResetLength()

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

◆ onCmdReverseEdge()

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

◆ onCmdSetFirstGeometryPoint()

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

◆ onCmdSetMode()

◆ onCmdSetSupermode()

◆ onCmdSimplifyShape()

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

◆ 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 *   
)

◆ onCmdSplitJunction()

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

split junction into multiple junctions

Definition at line 2074 of file GNEViewNet.cpp.

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

◆ onCmdSplitJunctionReconnect()

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

split junction into multiple junctions and reconnect them

Definition at line 2088 of file GNEViewNet.cpp.

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

◆ onCmdStraightenEdges()

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

◆ onCmdStraightenEdgesElevation()

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

◆ onCmdToogleAutoOppositeEdge()

long GNEViewNet::onCmdToogleAutoOppositeEdge ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleChainEdges()

long GNEViewNet::onCmdToogleChainEdges ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleChangeAllPhases()

long GNEViewNet::onCmdToogleChangeAllPhases ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleExtendSelection()

long GNEViewNet::onCmdToogleExtendSelection ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleHideConnections()

long GNEViewNet::onCmdToogleHideConnections ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleHideNonInspecteDemandElements()

long GNEViewNet::onCmdToogleHideNonInspecteDemandElements ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleHideShapes()

long GNEViewNet::onCmdToogleHideShapes ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleLockPerson()

◆ onCmdToogleMoveElevation()

long GNEViewNet::onCmdToogleMoveElevation ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleSelectEdges()

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

◆ onCmdToogleShowAllPersonPlans()

long GNEViewNet::onCmdToogleShowAllPersonPlans ( FXObject *  ,
FXSelector  sel,
void *   
)

toogle show all person plans in super mode demand

Definition at line 2360 of file GNEViewNet.cpp.

References GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, MID_GNE_DEMANDVIEWOPTIONS_SHOWALLPERSONPLANS, myDemandViewOptions, and update().

◆ onCmdToogleShowConnections()

◆ onCmdToogleShowDemandElements()

long GNEViewNet::onCmdToogleShowDemandElements ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleShowGrid()

◆ onCmdToogleShowJunctionBubbles()

long GNEViewNet::onCmdToogleShowJunctionBubbles ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdToogleWarnAboutMerge()

long GNEViewNet::onCmdToogleWarnAboutMerge ( FXObject *  ,
FXSelector  sel,
void *   
)

◆ onCmdTransformPOI()

◆ onConfigure()

◆ onDoubleClicked()

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

Reimplemented in GUIViewTraffic.

Definition at line 991 of file GUISUMOAbstractView.cpp.

◆ onGamingClick()

void GUISUMOAbstractView::onGamingClick ( Position  )
virtualinherited

on gaming click

Reimplemented in GUIViewTraffic.

Definition at line 1441 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::onLeftBtnRelease().

◆ onGamingRightClick()

void GUISUMOAbstractView::onGamingRightClick ( Position  )
virtualinherited

Reimplemented in GUIViewTraffic.

Definition at line 1445 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::onRightBtnRelease().

◆ onKeyPress()

◆ onKeyRelease()

◆ onLeftBtnPress()

◆ onLeftBtnRelease()

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

◆ onMiddleBtnPress()

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

Definition at line 955 of file GUISUMOAbstractView.cpp.

◆ onMiddleBtnRelease()

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

Definition at line 961 of file GUISUMOAbstractView.cpp.

◆ onMouseLeft()

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

Definition at line 1034 of file GUISUMOAbstractView.cpp.

◆ onMouseMove()

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

◆ 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()

double GUISUMOAbstractView::p2m ( double  pixel) const
inherited

◆ paintGL()

◆ paintGLGrid()

◆ processClick()

void GNEViewNet::processClick ( void *  eventData)
private

◆ processLeftButtonPressDemand()

void GNEViewNet::processLeftButtonPressDemand ( void *  eventData)
private

process left button press function in Supermode Demand

Definition at line 3401 of file GNEViewNet.cpp.

References GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode(), GNEViewNetHelper::SelectingArea::beginRectangleSelection(), GNEViewNetHelper::KeyPressed::controlKeyPressed(), GNEViewNetHelper::EditModes::demandEditMode, GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront(), GNEViewParent::getDeleteFrame(), GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront(), GNEViewParent::getInspectorFrame(), GNEViewNetHelper::ObjectsUnderCursor::getLaneFront(), GNESelectorFrame::getLockGLObjectTypes(), GNELane::getParentEdge(), GNEViewParent::getPersonFrame(), GNEViewParent::getPersonPlanFrame(), GUISUMOAbstractView::getPositionInformation(), GNEViewParent::getRouteFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getStopFrame(), GNEAttributeCarrier::getTagProperty(), GNEViewParent::getVehicleFrame(), GNE_DMODE_DELETE, GNE_DMODE_INSPECT, GNE_DMODE_MOVE, GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_STOP, GNE_DMODE_VEHICLE, GNERouteFrame::handleEdgeClick(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), myEditModes, myKeyPressed, myMoveMultipleElementValues, myMoveSingleElementValues, myObjectsUnderCursor, mySelectingArea, myViewParent, processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAttributeCarrier::selectAttributeCarrier(), GNEViewNetHelper::KeyPressed::shiftKeyPressed(), GNEAttributeCarrier::unselectAttributeCarrier(), and update().

Referenced by onLeftBtnPress().

◆ processLeftButtonPressNetwork()

void GNEViewNet::processLeftButtonPressNetwork ( void *  eventData)
private

mouse process functions

process left button press function in Supermode Network

Definition at line 3127 of file GNEViewNet.cpp.

References GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEAdditionalFrame::SelectorParentLanes::addSelectedLane(), GNEPolygonFrame::ADDSHAPE_UPDATEDTEMPORALSHAPE, GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::SelectingArea::beginRectangleSelection(), GNEViewNetHelper::KeyPressed::controlKeyPressed(), GNEDeleteFrame::DeleteOptions::deleteOnlyGeometryPoints(), GNETLSEditorFrame::editTLS(), GNEViewParent::getAdditionalFrame(), GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront(), GNEViewNetHelper::ObjectsUnderCursor::getConnectionFront(), GNEViewParent::getConnectorFrame(), GNEAdditionalFrame::getConsecutiveLaneSelector(), GNEViewParent::getCreateEdgeFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEDeleteFrame::getDeleteOptions(), GNEViewNetHelper::ObjectsUnderCursor::getEdgeFront(), GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront(), GNEViewParent::getInspectorFrame(), GNEViewNetHelper::ObjectsUnderCursor::getJunctionFront(), GNEViewNetHelper::ObjectsUnderCursor::getLaneFront(), GNESelectorFrame::getLockGLObjectTypes(), GNEViewNetHelper::ObjectsUnderCursor::getPOIFront(), GNEViewNetHelper::ObjectsUnderCursor::getPolyFront(), GNEViewParent::getPolygonFrame(), GUISUMOAbstractView::getPositionInformation(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETAZFrame::TAZCurrent::getTAZ(), GNETAZFrame::getTAZCurrentModul(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNEEdge::getVertexIndex(), GNEPoly::getVertexIndex(), GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_CROSSING, GNE_NMODE_DELETE, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNEConnectorFrame::handleLaneClick(), GNEProhibitionFrame::handleProhibitionClick(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNESelectorFrame::LockGLObjectTypes::IsObjectTypeLocked(), GNEAdditionalFrame::SelectorParentLanes::isSelectingLanes(), GNEAdditionalFrame::SelectorParentLanes::isShown(), GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, myEditModes, myKeyPressed, myMoveMultipleElementValues, myMoveSingleElementValues, myNetworkViewOptions, myObjectsUnderCursor, myObjectsUnderGrippedCursor, mySelectingArea, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNETAZFrame::processClick(), processClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEAttributeCarrier::selectAttributeCarrier(), GNEViewNetHelper::NetworkViewOptions::selectEdges(), GNEViewNetHelper::KeyPressed::shiftKeyPressed(), GUISUMOAbstractView::snapToActiveGrid(), GNEAdditionalFrame::SelectorParentLanes::startConsecutiveLaneSelector(), SUMO_TAG_LANE, GNEViewNetHelper::ObjectsUnderCursor::swapLane2Edge(), GNEAttributeCarrier::unselectAttributeCarrier(), and update().

Referenced by onLeftBtnPress().

◆ processLeftButtonReleaseDemand()

◆ processLeftButtonReleaseNetwork()

◆ processMoveMouseDemand()

void GNEViewNet::processMoveMouseDemand ( )
private

◆ processMoveMouseNetwork()

◆ recenterView()

◆ remove() [1/2]

void GUISUMOAbstractView::remove ( GUIDialog_EditViewport )
inherited

remove viewport

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

References GUISUMOAbstractView::myVisualizationChanger.

◆ removeAdditionalGLVisualisation()

bool GUISUMOAbstractView::removeAdditionalGLVisualisation ( 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 1595 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

◆ removeRestrictedLane()

◆ restrictLane()

◆ retrieveBreakpoints()

virtual const std::vector<SUMOTime> GUISUMOAbstractView::retrieveBreakpoints ( ) const
inlinevirtualinherited

retrieve breakpoints if provided by the application

Reimplemented in GUIViewTraffic.

Definition at line 372 of file GUISUMOAbstractView.h.

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

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

References UNUSED_PARAMETER.

Referenced by GUISUMOAbstractView::makeSnapshot().

◆ saveVisualizationSettings()

◆ screenPos2NetPos()

◆ setBreakpoints()

void GUISUMOAbstractView::setBreakpoints ( const std::vector< SUMOTime > &  breakpoints)
inherited

Sets the breakpoints of the parent application.

Definition at line 1667 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::loadSettings().

◆ setColorScheme()

◆ setDelay()

void GUISUMOAbstractView::setDelay ( double  delay)
inherited

Sets the delay of the parent application.

Definition at line 1661 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::loadSettings().

◆ setDottedAC()

void GNEViewNet::setDottedAC ( const GNEAttributeCarrier AC)

set attributeCarrier under cursor

Definition at line 1032 of file GNEViewNet.cpp.

References myDottedAC.

Referenced by GNEInspectorFrame::clearInspectedAC(), GNEInspectorFrame::hide(), and GNEInspectorFrame::inspectSingleElement().

◆ setSelectionScaling()

void GNEViewNet::setSelectionScaling ( double  selectionScale)

set selection scaling

Definition at line 535 of file GNEViewNet.cpp.

References GUISUMOAbstractView::myVisualizationSettings, and GUIVisualizationSettings::selectionScale.

◆ setStatusBarText()

◆ setViewportFromToRot()

◆ setWindowCursorPosition()

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

◆ showJunctionAsBubbles()

bool GNEViewNet::showJunctionAsBubbles ( ) const

◆ showLockIcon()

bool GNEViewNet::showLockIcon ( ) const

check if lock icon should be visible

Definition at line 1038 of file GNEViewNet.cpp.

References GNE_NMODE_ADDITIONAL, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, myEditModes, and GNEViewNetHelper::EditModes::networkEditMode.

Referenced by GNEShape::draw().

◆ showToolTipFor()

◆ showToolTips()

void GUISUMOAbstractView::showToolTips ( bool  val)
inherited

show tool tips

Definition at line 1383 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myUseToolTips.

Referenced by GUIGlChildWindow::onCmdShowToolTips().

◆ showViewportEditor()

◆ showViewschemeEditor()

◆ snapToActiveGrid()

Position GUISUMOAbstractView::snapToActiveGrid ( const Position pos,
bool  snapXY = true 
) const
inherited

◆ startTrack()

void GUISUMOAbstractView::startTrack ( int  )
virtualinherited

◆ stopTrack()

void GUISUMOAbstractView::stopTrack ( )
virtualinherited

stop track

Reimplemented in GUIViewTraffic.

Definition at line 1430 of file GUISUMOAbstractView.cpp.

Referenced by GUIDialog_GLObjChooser::onCmdCenter(), and TraCIServerAPI_GUI::processSet().

◆ update()

void GNEViewNet::update ( ) const

Mark the entire GNEViewNet to be repainted later.

Definition at line 299 of file GNEViewNet.cpp.

Referenced by GNECrossingFrame::addCrossing(), GNENet::addPolygonForEditShapes(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNESelectorFrame::clearCurrentSelection(), GNENet::deleteAdditional(), GNENet::deleteDemandElement(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNERouteFrame::handleEdgeClick(), GNESelectorFrame::handleIDs(), GNERouteFrame::hotkeyBackSpace(), hotkeyDel(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), GNENet::insertShape(), GNENet::joinRoutes(), GNEApplicationWindow::onCmdAbort(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), onCmdClearConnections(), onCmdClosePolygon(), onCmdDeleteGeometryPoint(), GNETLSEditorFrame::onCmdOK(), onCmdOpenPolygon(), GNETLSEditorFrame::onCmdPhaseSwitch(), onCmdReplaceJunction(), onCmdResetConnections(), onCmdSetFirstGeometryPoint(), onCmdSimplifyShape(), onCmdSplitJunction(), onCmdSplitJunctionReconnect(), onCmdToogleAutoOppositeEdge(), onCmdToogleChainEdges(), onCmdToogleChangeAllPhases(), onCmdToogleExtendSelection(), onCmdToogleHideConnections(), onCmdToogleHideNonInspecteDemandElements(), onCmdToogleHideShapes(), onCmdToogleLockPerson(), onCmdToogleMoveElevation(), onCmdToogleShowAllPersonPlans(), onCmdToogleShowConnections(), onCmdToogleShowDemandElements(), onCmdToogleShowGrid(), onCmdToogleShowJunctionBubbles(), onCmdToogleWarnAboutMerge(), onCmdTransformPOI(), onKeyPress(), onKeyRelease(), onLeftBtnPress(), onLeftBtnRelease(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), GNEChange_Crossing::redo(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removePolygonForEditShapes(), GNENet::removeShape(), GNENet::saveAdditionals(), GNENet::saveDemandElements(), GNEInspectorFrame::selectedOverlappedElement(), setColorScheme(), GNEChange_Crossing::undo(), GNENet::update(), updateControls(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().

◆ updateControls()

void GNEViewNet::updateControls ( )

update control contents after undo/redo or recompute

Definition at line 3001 of file GNEViewNet.cpp.

References GNEViewParent::getInspectorFrame(), GNE_NMODE_INSPECT, myEditModes, myViewParent, GNEViewNetHelper::EditModes::networkEditMode, and update().

Referenced by GNEApplicationWindow::updateControls().

◆ updateCursor()

◆ updateDemandModeSpecificControls()

void GNEViewNet::updateDemandModeSpecificControls ( )
private

updates Demand mode specific controls

show toolbar grip of view options

Definition at line 2629 of file GNEViewNet.cpp.

References GNEViewNetHelper::CommonCheckableButtons::deleteButton, GNEViewNetHelper::EditModes::demandEditMode, GNEViewNetHelper::CommonCheckableButtons::disableCommonCheckableButtons(), GNEViewNetHelper::DemandCheckableButtons::disableDemandCheckableButtons(), GNEFrame::focusUpperElement(), GNEViewParent::getDeleteFrame(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEViewParent::getPersonFrame(), GNEViewParent::getPersonPlanFrame(), GNEViewParent::getPersonTypeFrame(), GNEViewParent::getRouteFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getStopFrame(), GNEApplicationWindow::getToolbarsGrip(), GNEViewParent::getVehicleFrame(), GNEViewParent::getVehicleTypeFrame(), GNE_DMODE_DELETE, GNE_DMODE_INSPECT, GNE_DMODE_MOVE, GNE_DMODE_PERSON, GNE_DMODE_PERSONPLAN, GNE_DMODE_PERSONTYPES, GNE_DMODE_ROUTE, GNE_DMODE_SELECT, GNE_DMODE_STOP, GNE_DMODE_VEHICLE, GNE_DMODE_VEHICLETYPES, GNEViewParent::hideAllFrames(), GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkViewOptions::hideNetworkViewOptionsMenuChecks(), GNEViewNetHelper::CommonCheckableButtons::inspectButton, GNEViewNetHelper::DemandViewOptions::menuCheckHideNonInspectedDemandElements, GNEViewNetHelper::DemandViewOptions::menuCheckHideShapes, GNEViewNetHelper::DemandViewOptions::menuCheckLockPerson, GNEViewNetHelper::DemandViewOptions::menuCheckShowAllPersonPlans, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GNEApplicationWindow::ToolbarsGrip::modeOptions, GNEApplicationWindow::ToolbarsGrip::modes, GNEViewNetHelper::CommonCheckableButtons::moveButton, myCommonCheckableButtons, myCommonViewOptions, myCurrentFrame, myDemandCheckableButtons, myDemandViewOptions, myEditModes, myNetworkViewOptions, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::onPaint(), GNEViewNetHelper::DemandCheckableButtons::personButton, GNEViewNetHelper::DemandCheckableButtons::personPlanButton, GNEViewNetHelper::DemandCheckableButtons::personTypeButton, GNEViewNetHelper::DemandCheckableButtons::routeButton, GNEViewNetHelper::CommonCheckableButtons::selectButton, MFXCheckableButton::setChecked(), GNEPersonFrame::show(), GNEVehicleFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPersonTypeFrame::show(), GNEVehicleTypeFrame::show(), GNEPersonPlanFrame::show(), GNERouteFrame::show(), GNEInspectorFrame::show(), GNESelectorFrame::show(), GUIVisualizationSettings::showGrid, GNEViewNetHelper::DemandCheckableButtons::stopButton, update(), GNEViewNetHelper::CommonCheckableButtons::updateCommonCheckableButtons(), GNEViewNetHelper::DemandCheckableButtons::updateDemandCheckableButtons(), GNEViewNetHelper::DemandCheckableButtons::vehicleButton, and GNEViewNetHelper::DemandCheckableButtons::vehicleTypeButton.

◆ updateNetworkModeSpecificControls()

void GNEViewNet::updateNetworkModeSpecificControls ( )
private

updates Network mode specific controls

Definition at line 2470 of file GNEViewNet.cpp.

References GNEViewNetHelper::NetworkCheckableButtons::additionalButton, GNEViewNetHelper::NetworkCheckableButtons::connectionButton, GNEViewNetHelper::NetworkCheckableButtons::createEdgeButton, GNEViewNetHelper::NetworkCheckableButtons::crossingButton, GNEViewNetHelper::CommonCheckableButtons::deleteButton, GNEViewNetHelper::CommonCheckableButtons::disableCommonCheckableButtons(), GNEViewNetHelper::NetworkCheckableButtons::disableNetworkCheckableButtons(), GNEFrame::focusUpperElement(), GNEViewParent::getAdditionalFrame(), GNEViewParent::getConnectorFrame(), GNEViewParent::getCrossingFrame(), GNEViewParent::getDeleteFrame(), GNEViewParent::getGNEAppWindows(), GNEViewParent::getInspectorFrame(), GNEViewParent::getPolygonFrame(), GNEViewParent::getProhibitionFrame(), GNEViewParent::getSelectorFrame(), GNEViewParent::getTAZFrame(), GNEViewParent::getTLSEditorFrame(), GNEApplicationWindow::getToolbarsGrip(), GNE_NMODE_ADDITIONAL, GNE_NMODE_CONNECT, GNE_NMODE_CREATE_EDGE, GNE_NMODE_CROSSING, GNE_NMODE_DELETE, GNE_NMODE_INSPECT, GNE_NMODE_MOVE, GNE_NMODE_POLYGON, GNE_NMODE_PROHIBITION, GNE_NMODE_SELECT, GNE_NMODE_TAZ, GNE_NMODE_TLS, GNEViewParent::hideAllFrames(), GNEViewNetHelper::CommonViewOptions::hideCommonViewOptionsMenuChecks(), GNEViewNetHelper::DemandViewOptions::hideDemandViewOptionsMenuChecks(), GNEViewNetHelper::NetworkViewOptions::hideNetworkViewOptionsMenuChecks(), GNEViewNetHelper::CommonCheckableButtons::inspectButton, GNEViewNetHelper::NetworkViewOptions::menuCheckAutoOppositeEdge, GNEViewNetHelper::NetworkViewOptions::menuCheckChainEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckChangeAllPhases, GNEViewNetHelper::NetworkViewOptions::menuCheckExtendSelection, GNEViewNetHelper::NetworkViewOptions::menuCheckHideConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation, GNEViewNetHelper::NetworkViewOptions::menuCheckSelectEdges, GNEViewNetHelper::NetworkViewOptions::menuCheckShowConnections, GNEViewNetHelper::NetworkViewOptions::menuCheckShowDemandElements, GNEViewNetHelper::CommonViewOptions::menuCheckShowGrid, GNEViewNetHelper::NetworkViewOptions::menuCheckShowJunctionBubble, GNEViewNetHelper::NetworkViewOptions::menuCheckWarnAboutMerge, GNEApplicationWindow::ToolbarsGrip::modeOptions, GNEApplicationWindow::ToolbarsGrip::modes, GNEViewNetHelper::CommonCheckableButtons::moveButton, myCommonCheckableButtons, myCommonViewOptions, myCurrentFrame, myDemandViewOptions, myEditModes, myNetworkCheckableButtons, myNetworkViewOptions, myViewParent, GUISUMOAbstractView::myVisualizationSettings, GNEViewNetHelper::EditModes::networkEditMode, GUISUMOAbstractView::onPaint(), GNEViewNetHelper::NetworkCheckableButtons::prohibitionButton, GNEViewNetHelper::CommonCheckableButtons::selectButton, MFXCheckableButton::setChecked(), GNEViewNetHelper::NetworkCheckableButtons::shapeButton, GNEFrame::show(), GNEDeleteFrame::show(), GNEPolygonFrame::show(), GNEProhibitionFrame::show(), GNEInspectorFrame::show(), GNEAdditionalFrame::show(), GNETLSEditorFrame::show(), GNESelectorFrame::show(), GUIVisualizationSettings::showGrid, GNEViewNetHelper::NetworkCheckableButtons::TAZButton, GNEViewNetHelper::NetworkCheckableButtons::trafficLightButton, update(), GNEViewNetHelper::CommonCheckableButtons::updateCommonCheckableButtons(), and GNEViewNetHelper::NetworkCheckableButtons::updateNetworkCheckableButtons().

◆ updatePositionInformation()

◆ updateToolTip()

void GUISUMOAbstractView::updateToolTip ( )
inherited

◆ waitForSnapshots()

void GUISUMOAbstractView::waitForSnapshots ( const SUMOTime  snapshotTime)
inherited

Friends And Related Function Documentation

◆ GNEViewNetHelper

friend struct GNEViewNetHelper
friend

FOX-declaration.

declare GNEViewNetHelper as friend struct

Definition at line 47 of file GNEViewNet.h.

Field Documentation

◆ myAdditionallyDrawn

◆ myAmInitialised

bool GUISUMOAbstractView::myAmInitialised
protectedinherited

◆ myApp

◆ myChanger

◆ myCommonCheckableButtons

GNEViewNetHelper::CommonCheckableButtons GNEViewNet::myCommonCheckableButtons
private

variable used to save checkable buttons for common supermodes

Definition at line 389 of file GNEViewNet.h.

Referenced by buildEditModeControls(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().

◆ myCommonViewOptions

GNEViewNetHelper::CommonViewOptions GNEViewNet::myCommonViewOptions
private

variable used to save variables related with common view options

Definition at line 402 of file GNEViewNet.h.

Referenced by buildEditModeControls(), doPaintGL(), getCommonViewOptions(), onCmdToogleShowGrid(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().

◆ myCurrentFrame

GNEFrame* GNEViewNet::myCurrentFrame
private

the current frame

Definition at line 443 of file GNEViewNet.h.

Referenced by hotkeyFocusFrame(), updateDemandModeSpecificControls(), and updateNetworkModeSpecificControls().

◆ myDecals

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

◆ myDecalsLock

FXMutex GUISUMOAbstractView::myDecalsLock
protectedinherited

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

Definition at line 494 of file GUISUMOAbstractView.h.

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

◆ myDemandCheckableButtons

GNEViewNetHelper::DemandCheckableButtons GNEViewNet::myDemandCheckableButtons
private

variable used to save checkable buttons for Supermode Demand

Definition at line 395 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateDemandModeSpecificControls().

◆ myDemandViewOptions

◆ myDottedAC

const GNEAttributeCarrier* GNEViewNet::myDottedAC
private

current AttributeCarrier that is drawn using with a dotted contour note: it's constant because is edited from constant functions (example: drawGL(...) const)

Definition at line 451 of file GNEViewNet.h.

Referenced by getDottedAC(), and setDottedAC().

◆ myEditModes

◆ myEditShapes

◆ myFrameDrawTime

long GUISUMOAbstractView::myFrameDrawTime
protectedinherited

counter for measuring rendering time

Definition at line 513 of file GUISUMOAbstractView.h.

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

◆ myGrid

◆ myInEditMode

bool GUISUMOAbstractView::myInEditMode
protectedinherited

Information whether too-tip informations shall be generated.

Definition at line 459 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::isInEditMode().

◆ myKeyPressed

◆ myMouseHotspotX

int GUISUMOAbstractView::myMouseHotspotX
protectedinherited

Offset to the mouse-hotspot from the mouse position.

Definition at line 462 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMouseHotspotY

int GUISUMOAbstractView::myMouseHotspotY
protectedinherited

Definition at line 462 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

◆ myMoveMultipleElementValues

GNEViewNetHelper::MoveMultipleElementValues GNEViewNet::myMoveMultipleElementValues
private

variable used to save variables related with movement of multiple elements

Definition at line 417 of file GNEViewNet.h.

Referenced by processLeftButtonPressDemand(), processLeftButtonPressNetwork(), processLeftButtonReleaseDemand(), processLeftButtonReleaseNetwork(), and processMoveMouseNetwork().

◆ myMoveSingleElementValues

◆ myNet

◆ myNetworkCheckableButtons

GNEViewNetHelper::NetworkCheckableButtons GNEViewNet::myNetworkCheckableButtons
private

variable used to save checkable buttons for Supermode Network

Definition at line 392 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateNetworkModeSpecificControls().

◆ myNetworkViewOptions

◆ myObjectsUnderCursor

GNEViewNetHelper::ObjectsUnderCursor GNEViewNet::myObjectsUnderCursor
private

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

Definition at line 379 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), processLeftButtonPressDemand(), processLeftButtonPressNetwork(), and processLeftButtonReleaseNetwork().

◆ myObjectsUnderGrippedCursor

GNEViewNetHelper::ObjectsUnderCursor GNEViewNet::myObjectsUnderGrippedCursor
private

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

Definition at line 382 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), and processLeftButtonPressNetwork().

◆ myParent

GUIGlChildWindow* GUISUMOAbstractView::myParent
protectedinherited

The parent window.

Definition at line 450 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getColoringSchemesCombo().

◆ myPolyDrawLock

FXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotectedinherited

poly draw lock

Definition at line 507 of file GUISUMOAbstractView.h.

◆ myPopup

◆ myPopupPosition

Position GUISUMOAbstractView::myPopupPosition
protectedinherited

◆ mySelectingArea

◆ mySnapshotCondition

FXCondition GUISUMOAbstractView::mySnapshotCondition
protectedinherited

the semaphore when waiting for snapshots to finish

Definition at line 504 of file GUISUMOAbstractView.h.

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

◆ mySnapshots

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

◆ mySnapshotsMutex

FXMutex GUISUMOAbstractView::mySnapshotsMutex
protectedinherited

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

Definition at line 501 of file GUISUMOAbstractView.h.

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

◆ myTestingMode

GNEViewNetHelper::TestingMode GNEViewNet::myTestingMode
private

variable used to save variables related with testing mode

Definition at line 369 of file GNEViewNet.h.

Referenced by doPaintGL(), and getTestingMode().

◆ myUndoList

◆ myUseToolTips

bool GUISUMOAbstractView::myUseToolTips
protectedinherited

◆ myVehicleOptions

GNEViewNetHelper::VehicleOptions GNEViewNet::myVehicleOptions
private

variable used to save variables related with vehicle options

Definition at line 424 of file GNEViewNet.h.

◆ myVehicleTypeOptions

GNEViewNetHelper::VehicleTypeOptions GNEViewNet::myVehicleTypeOptions
private

variable used to save variables related with vehicle type options

Definition at line 427 of file GNEViewNet.h.

◆ myViewParent

◆ myViewportChooser

◆ myVisualizationChanger

GUIDialog_ViewSettings* GUISUMOAbstractView::myVisualizationChanger
protectedinherited

◆ myVisualizationSettings

◆ myWindowCursorPositionX

FXint GUISUMOAbstractView::myWindowCursorPositionX
protectedinherited

◆ myWindowCursorPositionY

FXint GUISUMOAbstractView::myWindowCursorPositionY
protectedinherited

◆ SENSITIVITY


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