SUMO - Simulation of Urban MObility
GNEViewNet Class Reference

#include <GNEViewNet.h>

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

Public Member Functions

void abortOperation (bool clearSelection=true)
 abort current edition operation More...
 
void addDecals (const std::vector< Decal > &decals)
 add decals More...
 
bool autoSelectNodes ()
 whether to autoselect nodes or to lanes More...
 
void buildColorRainbow (GUIColorScheme &scheme, int active, GUIGlObjectType objectType)
 recalibrate color scheme according to the current value range More...
 
virtual void buildViewToolBars (GUIGlChildWindow &)
 builds the view toolbars More...
 
virtual void centerTo (GUIGlID id, bool applyZoom, double zoomDist=20)
 centers to the chosen artifact More...
 
void centerTo (const Boundary &bound)
 centers to the chosen artifact More...
 
bool changeAllPhases () const
 change all phases More...
 
virtual void copyViewportTo (GUISUMOAbstractView *view)
 copy the viewport to the given view More...
 
void destroyPopup ()
 destoys the popup More...
 
GUIPerspectiveChanger & getChanger () const
 get changer More...
 
FXComboBox & getColoringSchemesCombo ()
 get coloring schemes combo More...
 
EditMode getCurrentEditMode () const
 get the current edit mode More...
 
double getDelay () const
 Returns the delay of the parent application. More...
 
double getGridHeight () const
 get grid Height More...
 
double getGridWidth () const
 get grid width More...
 
GNENet * getNet () const
 get the net object More...
 
Position getPositionInformation () const
 Returns the cursor's x/y position within the network. More...
 
virtual GUIGlID getTrackedID () const
 get tracked id More...
 
GNEUndoList * getUndoList () const
 get the undoList object More...
 
GNEViewParent * getViewParent () const
 get the net object More...
 
GUIDialog_EditViewport * getViewportEditor ()
 get the viewport and create it on first access More...
 
Boundary getVisibleBoundary () const
 get visible boundary More...
 
GUIVisualizationSettings * getVisualisationSettings () const
 get visualitation settings More...
 
GUIVisualizationSettings * getVisualisationSettings ()
 get visualisation settings More...
 
 GNEViewNet (FXComposite *tmpParent, FXComposite *actualParent, GUIMainWindow &app, GNEViewParent *viewParent, GNENet *net, GNEUndoList *undoList, FXGLVisual *glVis, FXGLCanvas *share, FXToolBar *toolBar)
 FOX-declaration. More...
 
void hotkeyDel ()
 handle del keypress More...
 
void hotkeyEnter ()
 handle enter keypress More...
 
void hotkeyFocusFrame ()
 handle focus frame keypress More...
 
bool isInEditMode ()
 returns true, if the edit button was pressed More...
 
double m2p (double meter) const
 meter-to-pixels conversion method More...
 
FXbool makeCurrent ()
 A reimplementation due to some internal reasons. More...
 
void markPopupPosition ()
 store the position where a popup-menu was requested More...
 
long onCmdAddRestrictedLaneBikelane (FXObject *, FXSelector typeOfTransformation, void *)
 Add restricted lane for bikes. More...
 
long onCmdAddRestrictedLaneBuslane (FXObject *, FXSelector typeOfTransformation, void *)
 Add restricted lane for buses. More...
 
long onCmdAddRestrictedLaneSidewalk (FXObject *, FXSelector typeOfTransformation, void *)
 Add restricted lane for pedestrians. More...
 
long onCmdAddReversedEdge (FXObject *, FXSelector, void *)
 add reversed edge More...
 
long 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 onCmdEditJunctionShape (FXObject *, FXSelector, void *)
 edit junction shape More...
 
long onCmdOpenPolygon (FXObject *, FXSelector, void *)
 open closed polygon More...
 
long onCmdRemoveRestrictedLaneBikelane (FXObject *, FXSelector typeOfTransformation, void *)
 remove restricted lane for bikes More...
 
long onCmdRemoveRestrictedLaneBuslane (FXObject *, FXSelector typeOfTransformation, void *)
 remove restricted lane for bus More...
 
long onCmdRemoveRestrictedLaneSidewalk (FXObject *, FXSelector typeOfTransformation, void *)
 remove restricted lane for pedestrians More...
 
long onCmdReplaceJunction (FXObject *, FXSelector, void *)
 replace node by geometry More...
 
long onCmdResetEdgeEndpoint (FXObject *, FXSelector, void *)
 restore geometry endpoint to node position More...
 
long onCmdRestrictLaneBikelane (FXObject *, FXSelector typeOfTransformation, void *)
 restrict lane to bikes More...
 
long onCmdRestrictLaneBuslane (FXObject *, FXSelector typeOfTransformation, void *)
 restrict lane to buslanes More...
 
long onCmdRestrictLaneSidewalk (FXObject *, FXSelector typeOfTransformation, void *)
 restrict lane to pedestrians More...
 
long onCmdReverseEdge (FXObject *, FXSelector, void *)
 reverse edge More...
 
long onCmdRevertRestriction (FXObject *, FXSelector, void *)
 revert transformation More...
 
long onCmdSetEdgeEndpoint (FXObject *, FXSelector, void *)
 set non-default geometry endpoint More...
 
long onCmdSetFirstGeometryPoint (FXObject *, FXSelector, void *)
 set as first geometry point the closes geometry point More...
 
long onCmdShowGrid (FXObject *, FXSelector, void *)
 toogle show grid More...
 
long onCmdSimplifyShape (FXObject *, FXSelector, void *)
 simply shape of current polygon More...
 
long onCmdSplitEdge (FXObject *, FXSelector, void *)
 split edge at cursor position More...
 
long onCmdSplitEdgeBidi (FXObject *, FXSelector, void *)
 split edge at cursor position More...
 
long onCmdStraightenEdges (FXObject *, FXSelector, void *)
 makes selected edges straight More...
 
long onCmdToogleSelectEdges (FXObject *, FXSelector, void *)
 toogle selet edges More...
 
long onCmdToogleShowBubbles (FXObject *, FXSelector, void *)
 toogle show bubbles More...
 
long onCmdToogleShowConnection (FXObject *, FXSelector, void *)
 toogle show connections More...
 
virtual void onGamingClick (Position)
 on gaming click More...
 
virtual void openObjectDialog ()
 
double p2m (double pixel) const
 pixels-to-meters conversion method More...
 
virtual void recenterView ()
 recenters the view More...
 
void remove (GUIDialog_EditViewport *)
 remove viewport More...
 
void remove (GUIDialog_ViewSettings *)
 remove view settings More...
 
Position screenPos2NetPos (int x, int y) const
 Translate screen position to network position. More...
 
bool selectEdges ()
 whether inspection, selection and inversion should apply to edges or to lanes More...
 
void setApplicationSnapshots (std::set< SUMOTime > *snapshots, FXMutex *lock)
 add snapshot synchronization More...
 
bool setColorScheme (const std::string &name)
 set color scheme More...
 
void setDelay (double delay)
 Sets the delay of the parent application. More...
 
void setEditModeFromHotkey (FXushort selid)
 sets edit mode (from hotkey) More...
 
void setSelectionScaling (double selectionScale)
 set selection scaling More...
 
void setStatusBarText (const std::string &text)
 set staturBar text More...
 
virtual void setViewportFromTo (const Position &lookFrom, const Position &lookAt)
 applies the given viewport settings More...
 
void setWindowCursorPosition (FXint x, FXint y)
 Returns the information whether rotation is allowd. More...
 
bool showConnections ()
 show connections over junctions More...
 
bool showJunctionAsBubbles () const
 return true if junction must be showed as bubbles More...
 
bool showLockIcon () const
 check if lock icon should be visible More...
 
void showToolTips (bool val)
 show tool tips More...
 
virtual void showViewportEditor ()
 show viewport editor More...
 
void showViewschemeEditor ()
 show viewsscheme editor More...
 
Position snapToActiveGrid (const Position &pos) const
 Returns a position that is mapped to the closest grid point if the grid is active. More...
 
void startEditShapeJunction (GNEJunction *junction)
 start edit junction shape More...
 
virtual void startTrack (int)
 star track More...
 
void stopEditShapeJunction ()
 edit edit junction shape More...
 
virtual void stopTrack ()
 stop track More...
 
void updateControls ()
 update control contents after undo/redo or recompute More...
 
void updateToolTip ()
 A method that updates the tooltip. More...
 
virtual ~GNEViewNet ()
 destructor More...
 
overloaded handlers

called when user press mouse's left button

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

called when user press the button for create edge mode

long onCmdSetModeCreateEdge (FXObject *, FXSelector, void *)
 
long onCmdSetModeMove (FXObject *, FXSelector, void *)
 called when user press the button for move mode More...
 
long onCmdSetModeDelete (FXObject *, FXSelector, void *)
 called when user press the button for delete mode More...
 
long onCmdSetModeInspect (FXObject *, FXSelector, void *)
 called when user press the button for inspect mode More...
 
long onCmdSetModeSelect (FXObject *, FXSelector, void *)
 called when user press the button for select mode More...
 
long onCmdSetModeConnect (FXObject *, FXSelector, void *)
 called when user press the button for connect mode More...
 
long onCmdSetModeTLS (FXObject *, FXSelector, void *)
 called when user press the button for traffic lights mode More...
 
long onCmdSetModeAdditional (FXObject *, FXSelector, void *)
 called when user press the button for additional mode More...
 
long onCmdSetModeCrossing (FXObject *, FXSelector, void *)
 called when user press the button for crossing mode More...
 
long onCmdSetModePolygon (FXObject *, FXSelector, void *)
 called when user press the button for polygon mode More...
 
virtual long onConfigure (FXObject *, FXSelector, void *)
 mouse functions More...
 
virtual long onPaint (FXObject *, FXSelector, void *)
 
virtual long onMiddleBtnPress (FXObject *, FXSelector, void *)
 
virtual long onMiddleBtnRelease (FXObject *, FXSelector, void *)
 
virtual long onMouseWheel (FXObject *, FXSelector, void *)
 
virtual long onMouseLeft (FXObject *, FXSelector, void *)
 
Dealing with snapshots
void addSnapshot (SUMOTime time, const std::string &file)
 Sets the snapshot time to file map. More...
 
std::string makeSnapshot (const std::string &destFile)
 Takes a snapshots and writes it into the given file. More...
 
virtual void saveFrame (const std::string &destFile, FXColor *buf)
 Adds a frame to a video snapshot which will be initialized if neccessary. More...
 
virtual void endSnapshot ()
 Ends a video snapshot. More...
 
virtual void checkSnapshots ()
 Checks whether it is time for a snapshot. More...
 
virtual SUMOTime getCurrentTimeStep () const
 get the current simulation time More...
 
Additional visualisations
bool addAdditionalGLVisualisation (const GUIGlObject *const which)
 Adds an object to call its additional visualisation method. More...
 
bool removeAdditionalGLVisualisation (const GUIGlObject *const which)
 Removes an object from the list of objects that show additional things. More...
 
bool isAdditionalGLVisualisationEnabled (GUIGlObject *const which) const
 Check if an object is added in the additional GL visualitation. More...
 

Protected Member Functions

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

Protected Attributes

std::map< const GUIGlObject *, int > myAdditionallyDrawn
 List of objects for which GUIGlObject::drawGLAdditional is called. More...
 
bool myAmInitialised
 Internal information whether doInit() was called. More...
 
GUIMainWindow * myApp
 The application. More...
 
std::set< SUMOTime > * myApplicationSnapshots
 
FXMutex * myApplicationSnapshotsLock
 
GUIPerspectiveChanger * myChanger
 The perspective changer. More...
 
SUMORTree * myGrid
 The visualization speed-up. More...
 
bool myInEditMode
 Information whether too-tip informations shall be generated. More...
 
int myMouseHotspotX
 Offset to the mouse-hotspot from the mouse position. More...
 
int myMouseHotspotY
 
GUIGlChildWindow * myParent
 The parent window. More...
 
MFXMutex myPolyDrawLock
 poly draw lock More...
 
GUIGLObjectPopupMenu * myPopup
 The current popup-menu. More...
 
std::map< SUMOTime, std::vector< std::string > > mySnapshots
 Snapshots. More...
 
MFXMutex mySnapshotsLock
 The mutex to use before accessing the decals list in order to avoid thread conficts. More...
 
bool myUseToolTips
 use tool tips More...
 
GUIDialog_EditViewport * myViewportChooser
 viewport chooser More...
 
GUIDialog_ViewSettings * myVisualizationChanger
 Visualization changer. More...
 
GUIVisualizationSettings * myVisualizationSettings
 visualization settings More...
 
FXint myWindowCursorPositionX
 Position of the cursor relative to the window. More...
 
FXint myWindowCursorPositionY
 
Optionally shown decals

The list of decals to show

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

Private Member Functions

bool addRestrictedLane (SUMOVehicleClass vclass)
 add restricted lane More...
 
void buildEditModeControls ()
 adds controls for setting the edit mode More...
 
void deleteSelectedAdditionals ()
 delete all currently selected additionals More...
 
void deleteSelectedConnections ()
 delete all currently selected connections More...
 
void deleteSelectedCrossings ()
 delete all currently selected crossings More...
 
void deleteSelectedEdges ()
 delete all currently selected edges More...
 
void deleteSelectedJunctions ()
 delete all currently selected junctions More...
 
void deleteSelectedLanes ()
 delete all currently selected lanes More...
 
void deleteSelectedPOIs ()
 delete all currently selected POIs More...
 
void deleteSelectedPolygons ()
 delete all currently selected Polygons More...
 
GNEEdge * getEdgeAtCursorPosition (Position &pos)
 try to retrieve an edge at the given position More...
 
std::set< GNEEdge * > getEdgesAtCursorPosition (Position &pos)
 try to retrieve multiple edges at the given position More...
 
GNEJunction * getJunctionAtCursorPosition (Position &pos)
 try to retrieve a junction at the given position More...
 
GNELane * getLaneAtCurserPosition (Position &pos)
 try to retrieve a lane at the given position More...
 
GNEPoly * getPolygonAtCursorPosition (Position &pos)
 try to retrieve a Polygon at the given position More...
 
 GNEViewNet (const GNEViewNet &)=delete
 Invalidated copy constructor. More...
 
bool mergeJunctions (GNEJunction *moved)
 try to merge moved junction with another junction in that spot return true if merging did take place More...
 
GNEViewNet & operator= (const GNEViewNet &)=delete
 Invalidated assignment operator. More...
 
void processClick (FXEvent *e, void *data)
 Auxiliar function used by onLeftBtnPress(...) More...
 
bool removeRestrictedLane (SUMOVehicleClass vclass)
 remove restricted lane More...
 
bool restrictLane (SUMOVehicleClass vclass)
 restrict lane More...
 
void setEditMode (EditMode mode)
 set edit mode More...
 
void updateModeSpecificControls ()
 updates mode specific controls More...
 

Private Attributes

GNEFrame * myCurrentFrame
 the current frame More...
 
EditMode myEditMode
 the current edit mode More...
 
FXMenuCheck * myMenuCheckChangeAllPhases
 menu check to set change all phases More...
 
FXMenuCheck * myMenuCheckExtendToEdgeNodes
 menu check to extend to edge nodes More...
 
FXMenuCheck * myMenuCheckSelectEdges
 menu check to select only edges More...
 
FXMenuCheck * myMenuCheckShowConnections
 menu check to show connections More...
 
FXMenuCheck * myMenuCheckShowGrid
 show grid button More...
 
GNENet * myNet
 Pointer to current net. (We are not responsible for deletion) More...
 
Position myPopupSpot
 Poput spot. More...
 
bool mySelectEdges
 flag to check if select edges is enabled More...
 
bool myShowConnections
 whether show connections has been activated once More...
 
FXToolBar * myToolbar
 a reference to the toolbar in myParent More...
 
GNEUndoList * myUndoList
 a reference to the undolist maintained in the application More...
 
GNEViewParent * myViewParent
 view parent More...
 
the state-variables of the create-edge state-machine
GNEJunction * myCreateEdgeSource
 source junction for new edge 0 if no edge source is selected an existing (or newly created) junction otherwise More...
 
FXMenuCheck * myChainCreateEdge
 whether the endpoint for a created edge should be set as the new source More...
 
FXMenuCheck * myAutoCreateOppositeEdge
 
the state-variables of the move state-machine
FXMenuCheck * myMenuCheckWarnAboutMerge
 whether we should warn about merging junctions More...
 
FXMenuCheck * myMenuCheckShowBubbleOverJunction
 show connection as buuble in "Move" mode. More...
 
Variables for move elements
GNEJunction * myJunctionToMove
 the Junction to be moved. More...
 
GNEEdge * myEdgeToMove
 the edge of which geometry is being moved More...
 
GNEPoly * myPolyToMove
 the poly of which geometry is being moved More...
 
GNEPOI * myPoiToMove
 the poi which is being moved More...
 
GNEAdditional * myAdditionalToMove
 the stoppingPlace element which shape is being moved More...
 
Position myMovingReference
 variable for calculating moving offset (Used when user doesn't click exactly over the center of shape) More...
 
Position myMovingOriginalPosition
 original Position of element before moving (needed for commmit position changes) More...
 
PositionVector myMovingOriginalShape
 Shape of elements before moving (needed for commmit shape changes) More...
 
int myMovingIndexShape
 current index of shape that are being moved More...
 
bool myMovingSelection
 whether a selection is being moved More...
 
std::map< GNEJunction *, Position > myOriginPostionOfMovedJunctions
 Junctions that are being moved. More...
 
state-variables of inspect-mode and select-mode
bool myAmInRectSelect
 whether we have started rectangle-selection More...
 
Position mySelCorner1
 firstcorner of the rectangle-selection More...
 
Position mySelCorner2
 second corner of the rectangle-selection More...
 
buttons for selecting the edit mode

chekable button for edit mode create edge

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

polygon used for edit Junction's shapes

GNEPoly * myEditJunctionShapePoly
 
EditMode myPreviousEditMode
 the previous edit mode before edit junction's shapes More...
 
variables for testing mode

flag to enable or disable testing mode

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

Detailed Description

Microsocopic view at the simulation

Definition at line 93 of file GNEViewNet.h.

Constructor & Destructor Documentation

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

FOX-declaration.

Definition at line 146 of file GNEViewNet.cpp.

References OptionsCont::getOptions(), and OptionsCont::getStringVector().

GNEViewNet::~GNEViewNet ( )
virtual

destructor

Definition at line 198 of file GNEViewNet.cpp.

GNEViewNet::GNEViewNet ( )
inlineprotected

FOX needs this.

Definition at line 339 of file GNEViewNet.h.

References doInit(), and doPaintGL().

GNEViewNet::GNEViewNet ( const GNEViewNet &  )
privatedelete

Invalidated copy constructor.

Member Function Documentation

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

Adds an object to call its additional visualisation method.

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

Definition at line 1276 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

void GUISUMOAbstractView::addDecals ( const std::vector< Decal > &  decals)
inherited
void GUISUMOAbstractView::addSnapshot ( SUMOTime  time,
const std::string &  file 
)
inherited
void GUISUMOAbstractView::applyGLTransform ( bool  fixRatio = true)
protectedinherited

applies gl-transformations to fit the Boundary given by myChanger onto the canvas. If fixRatio is true, this boundary will be enlarged to prevent anisotropic stretching. (this should be set to false when doing selections)

Definition at line 1314 of file GUISUMOAbstractView.cpp.

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

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

bool GNEViewNet::autoSelectNodes ( )

whether to autoselect nodes or to lanes

Definition at line 322 of file GNEViewNet.cpp.

References myMenuCheckExtendToEdgeNodes.

Referenced by GNESelectorFrame::handleIDs().

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

adds controls for setting the edit mode

Definition at line 2031 of file GNEViewNet.cpp.

References GUIIconSubSys::getIcon(), GNE_MODE_ADDITIONAL, GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_CROSSING, GNE_MODE_DELETE, GNE_MODE_INSPECT, GNE_MODE_MOVE, GNE_MODE_POLYGON, GNE_MODE_SELECT, GNE_MODE_TLS, GUIDesignButtonToolbarCheckable, ICON_MODEADDITIONAL, ICON_MODECONNECTION, ICON_MODECREATEEDGE, ICON_MODECROSSING, ICON_MODEDELETE, ICON_MODEINSPECT, ICON_MODEMOVE, ICON_MODEPOLYGON, ICON_MODESELECT, ICON_MODETLS, StringBijection< T >::insert(), MID_GNE_MODE_ADDITIONAL, MID_GNE_MODE_CONNECT, MID_GNE_MODE_CREATE_EDGE, MID_GNE_MODE_CROSSING, MID_GNE_MODE_DELETE, MID_GNE_MODE_INSPECT, MID_GNE_MODE_MOVE, MID_GNE_MODE_POLYGON, MID_GNE_MODE_SELECT, MID_GNE_MODE_TLS, MID_GNE_VIEWNET_SELECT_EDGES, MID_GNE_VIEWNET_SHOW_BUBBLES, MID_GNE_VIEWNET_SHOW_CONNECTIONS, MID_GNE_VIEWNET_SHOW_GRID, myAutoCreateOppositeEdge, myChainCreateEdge, myEditModeAdditional, myEditModeConnection, myEditModeCreateEdge, myEditModeCrossing, myEditModeDelete, myEditModeInspect, myEditModeMove, myEditModeNames, myEditModePolygon, myEditModeSelect, myEditModeTrafficLight, myMenuCheckChangeAllPhases, myMenuCheckExtendToEdgeNodes, myMenuCheckSelectEdges, myMenuCheckShowBubbleOverJunction, myMenuCheckShowConnections, myMenuCheckShowGrid, myMenuCheckWarnAboutMerge, myToolbar, GUISUMOAbstractView::myVisualizationSettings, GUIVisualizationSettings::showLane2Lane, SUMO_TAG_CONNECTION, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_TRAFFIC_LIGHT, and toString().

void GUISUMOAbstractView::centerTo ( GUIGlID  id,
bool  applyZoom,
double  zoomDist = 20 
)
virtualinherited
void GUISUMOAbstractView::centerTo ( const Boundary &  bound)
inherited

centers to the chosen artifact

Definition at line 589 of file GUISUMOAbstractView.cpp.

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

bool GNEViewNet::changeAllPhases ( ) const

change all phases

Definition at line 334 of file GNEViewNet.cpp.

References myMenuCheckChangeAllPhases.

Referenced by GNETLSEditorFrame::handleChange().

void GNEViewNet::deleteSelectedAdditionals ( )
private
void GNEViewNet::deleteSelectedConnections ( )
private
void GNEViewNet::deleteSelectedCrossings ( )
private
void GNEViewNet::deleteSelectedEdges ( )
private

delete all currently selected edges

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

void GNEViewNet::deleteSelectedJunctions ( )
private

delete all currently selected junctions

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

void GNEViewNet::deleteSelectedLanes ( )
private

delete all currently selected lanes

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

void GNEViewNet::deleteSelectedPOIs ( )
private
void GNEViewNet::deleteSelectedPolygons ( )
private
void GUISUMOAbstractView::displayLegend ( )
protectedinherited

a line with ticks, and the length information.

Definition at line 486 of file GUISUMOAbstractView.cpp.

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

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

void GNEViewNet::doInit ( )
protectedvirtual

called after some features are already initialized

Reimplemented from GUISUMOAbstractView.

Definition at line 202 of file GNEViewNet.cpp.

Referenced by GNEViewNet().

FXComboBox & GUISUMOAbstractView::getColoringSchemesCombo ( )
inherited
EditMode GNEViewNet::getCurrentEditMode ( ) const

get the current edit mode

Definition at line 1180 of file GNEViewNet.cpp.

References myEditMode.

Referenced by GNEPoly::drawGL(), and GNELane::updateGeometry().

SUMOTime GUISUMOAbstractView::getCurrentTimeStep ( ) const
virtualinherited

get the current simulation time

Reimplemented in GUIViewTraffic.

Definition at line 1024 of file GUISUMOAbstractView.cpp.

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

double GUISUMOAbstractView::getDelay ( ) const
inherited

Returns the delay of the parent application.

Definition at line 1332 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::onCmdExportSetting().

std::set< GNEEdge * > GNEViewNet::getEdgesAtCursorPosition ( Position &  pos)
private
double GUISUMOAbstractView::getGridHeight ( ) const
inherited
double GUISUMOAbstractView::getGridWidth ( ) const
inherited
GNENet * GNEViewNet::getNet ( ) const

get the net object

Definition at line 1168 of file GNEViewNet.cpp.

References myNet.

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

std::vector< GUIGlID > GUISUMOAbstractView::getObjectsAtPosition ( Position  pos,
double  radius 
)
protectedinherited
GUIGlID GUISUMOAbstractView::getObjectUnderCursor ( )
protectedinherited
GNEUndoList * GNEViewNet::getUndoList ( ) const

get the undoList object

Definition at line 1174 of file GNEViewNet.cpp.

References myUndoList.

Referenced by GNEPolygonFrame::addPOI(), GNENet::addPOI(), GNEPolygonFrame::addPolygon(), GNENet::addPolygon(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE2(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEPoly::changeFirstGeometryPoint(), GNEPoly::closePolygon(), GNENet::computeAndUpdate(), GNENet::deleteConnection(), GNEPoly::deleteGeometryNear(), GNENet::deletePOI(), GNENet::deletePolygon(), GNETLSEditorFrame::editJunction(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNEDialog_FixAdditionalPositions::onCmdAccept(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNESelectorFrame::onCmdInvert(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNEInspectorFrame::NeteditParameters::onCmdSetBlockingMovement(), GNEInspectorFrame::NeteditParameters::onCmdSetBlockingShape(), GNEInspectorFrame::NeteditParameters::onCmdSetClosingShape(), GNEPoly::openPolygon(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), GNEPoly::simplifyShape(), GNEDetectorE1::writeAdditional(), GNEDetectorE2::writeAdditional(), GNEChargingStation::writeAdditional(), GNEDetectorE3::writeAdditional(), GNECalibrator::writeAdditional(), GNEBusStop::writeAdditional(), and GNEContainerStop::writeAdditional().

Boundary GUISUMOAbstractView::getVisibleBoundary ( ) const
inherited
GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( ) const
inherited
GUIVisualizationSettings * GUISUMOAbstractView::getVisualisationSettings ( )
inherited

get visualisation settings

Definition at line 221 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationSettings.

void GNEViewNet::hotkeyFocusFrame ( )

handle focus frame keypress

Definition at line 1105 of file GNEViewNet.cpp.

References GNEFrame::focusUpperElement(), and myCurrentFrame.

Referenced by GNEApplicationWindow::onCmdFocusFrame().

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

References GUISUMOAbstractView::myAdditionallyDrawn.

Referenced by GUISUMOAbstractView::buildColorRainbow().

bool GUISUMOAbstractView::isInEditMode ( )
inherited

returns true, if the edit button was pressed

Definition at line 165 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myInEditMode.

Referenced by GUISUMOAbstractView::buildViewToolBars().

double GUISUMOAbstractView::m2p ( double  meter) const
inherited
std::string GUISUMOAbstractView::makeSnapshot ( const std::string &  destFile)
inherited

Takes a snapshots and writes it into the given file.

The format to use is determined from the extension. If compiled with ffmpeg and a video format is requested it will instantiate a video encoder.

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

Definition at line 828 of file GUISUMOAbstractView.cpp.

References RGBColor::alpha(), GUIVisualizationSettings::antialiase, GUISUMOAbstractView::applyGLTransform(), GUIVisualizationSettings::backgroundColor, RGBColor::blue(), GUISUMOAbstractView::displayLegend(), GUIVisualizationSettings::dither, GUISUMOAbstractView::doPaintGL(), GUISUMOAbstractView::drawDecals(), GUIPerspectiveChanger::getViewport(), GL2PS_DRAW_BACKGROUND, GL2PS_EPS, GL2PS_OVERFLOW, GL2PS_PDF, GL2PS_PGF, GL2PS_PS, GL2PS_SIMPLE_SORT, GL2PS_SVG, GL2PS_TEX, GL2PS_USE_CURRENT_VIEWPORT, gl2psBeginPage(), gl2psEndPage(), RGBColor::green(), GUISUMOAbstractView::m2p(), GUISUMOAbstractView::makeCurrent(), GUISUMOAbstractView::myChanger, GUISUMOAbstractView::myGrid, GUISUMOAbstractView::myUseToolTips, GUISUMOAbstractView::myVisualizationSettings, GUISUMOAbstractView::paintGLGrid(), RGBColor::red(), GUISUMOAbstractView::saveFrame(), MFXImageHelper::saveImage(), GUIVisualizationSettings::scale, SUMORTree::Search(), GUIVisualizationSettings::showGrid, GUIVisualizationSettings::showSizeLegend, FXSingleEventThread::sleep(), SUMO_const_laneWidth, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

Referenced by GUISUMOAbstractView::buildViewToolBars(), GUIViewTraffic::checkSnapshots(), GUISUMOAbstractView::checkSnapshots(), GUIApplicationWindow::handleEvent_Screenshot(), GUISUMOViewParent::onCmdMakeSnapshot(), and GNEViewParent::onCmdMakeSnapshot().

void GNEViewNet::markPopupPosition ( )

store the position where a popup-menu was requested

Definition at line 1156 of file GNEViewNet.cpp.

References GUISUMOAbstractView::getPositionInformation(), and myPopupSpot.

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

Add restricted lane for bikes.

Definition at line 1565 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_BICYCLE.

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

Add restricted lane for buses.

Definition at line 1571 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_BUS.

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

Add restricted lane for pedestrians.

Definition at line 1559 of file GNEViewNet.cpp.

References addRestrictedLane(), and SVC_PEDESTRIAN.

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

add reversed edge

Definition at line 1394 of file GNEViewNet.cpp.

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

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

close opened polygon

Definition at line 1475 of file GNEViewNet.cpp.

References GNEPoly::closePolygon(), getPolygonAtCursorPosition(), myEditJunctionShapePoly, and myPopupSpot.

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

delete the closes geometry point

Definition at line 1460 of file GNEViewNet.cpp.

References GNEPoly::deleteGeometryNear(), getPolygonAtCursorPosition(), myEditJunctionShapePoly, and myPopupSpot.

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

edit junction shape

Definition at line 1930 of file GNEViewNet.cpp.

References getJunctionAtCursorPosition(), myPopupSpot, and startEditShapeJunction().

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

open closed polygon

Definition at line 1490 of file GNEViewNet.cpp.

References getPolygonAtCursorPosition(), myEditJunctionShapePoly, myPopupSpot, and GNEPoly::openPolygon().

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

remove restricted lane for bikes

Definition at line 1583 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_BICYCLE.

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

remove restricted lane for bus

Definition at line 1589 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_BUS.

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

remove restricted lane for pedestrians

Definition at line 1577 of file GNEViewNet.cpp.

References removeRestrictedLane(), and SVC_PEDESTRIAN.

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

replace node by geometry

Definition at line 1941 of file GNEViewNet.cpp.

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

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

restore geometry endpoint to node position

Definition at line 1414 of file GNEViewNet.cpp.

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

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

restrict lane to bikes

Definition at line 1547 of file GNEViewNet.cpp.

References restrictLane(), and SVC_BICYCLE.

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

restrict lane to buslanes

Definition at line 1553 of file GNEViewNet.cpp.

References restrictLane(), and SVC_BUS.

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

restrict lane to pedestrians

Definition at line 1541 of file GNEViewNet.cpp.

References restrictLane(), and SVC_PEDESTRIAN.

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

reverse edge

Definition at line 1384 of file GNEViewNet.cpp.

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

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

set non-default geometry endpoint

Definition at line 1404 of file GNEViewNet.cpp.

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

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

set as first geometry point the closes geometry point

Definition at line 1505 of file GNEViewNet.cpp.

References GNEPoly::changeFirstGeometryPoint(), getPolygonAtCursorPosition(), GNEPoly::getVertexIndex(), myEditJunctionShapePoly, and myPopupSpot.

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

called when user press the button for additional mode

Definition at line 1343 of file GNEViewNet.cpp.

References GNE_MODE_ADDITIONAL, and setEditMode().

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

called when user press the button for connect mode

Definition at line 1329 of file GNEViewNet.cpp.

References GNE_MODE_CONNECT, and setEditMode().

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

Definition at line 1294 of file GNEViewNet.cpp.

References GNE_MODE_CREATE_EDGE, and setEditMode().

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

called when user press the button for crossing mode

Definition at line 1350 of file GNEViewNet.cpp.

References GNE_MODE_CROSSING, and setEditMode().

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

called when user press the button for delete mode

Definition at line 1308 of file GNEViewNet.cpp.

References GNE_MODE_DELETE, and setEditMode().

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

called when user press the button for inspect mode

Definition at line 1315 of file GNEViewNet.cpp.

References GNE_MODE_INSPECT, and setEditMode().

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

called when user press the button for move mode

Definition at line 1301 of file GNEViewNet.cpp.

References GNE_MODE_MOVE, and setEditMode().

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

called when user press the button for polygon mode

Definition at line 1357 of file GNEViewNet.cpp.

References GNE_MODE_POLYGON, and setEditMode().

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

called when user press the button for select mode

Definition at line 1322 of file GNEViewNet.cpp.

References GNE_MODE_SELECT, and setEditMode().

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

called when user press the button for traffic lights mode

Definition at line 1336 of file GNEViewNet.cpp.

References GNE_MODE_TLS, and setEditMode().

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

simply shape of current polygon

Definition at line 1445 of file GNEViewNet.cpp.

References getPolygonAtCursorPosition(), myEditJunctionShapePoly, myPopupSpot, and GNEPoly::simplifyShape().

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

split edge at cursor position

Definition at line 1364 of file GNEViewNet.cpp.

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

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

split edge at cursor position

Definition at line 1374 of file GNEViewNet.cpp.

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

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

toogle selet edges

Definition at line 1967 of file GNEViewNet.cpp.

References myMenuCheckSelectEdges, and mySelectEdges.

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

toogle show bubbles

Definition at line 1978 of file GNEViewNet.cpp.

long GNEViewNet::onCmdToogleShowConnection ( FXObject *  ,
FXSelector  ,
void *   
)
long GNEViewNet::onDoubleClicked ( FXObject *  ,
FXSelector  ,
void *   
)
virtual
void GUISUMOAbstractView::onGamingClick ( Position  )
virtualinherited

on gaming click

Reimplemented in GUIViewTraffic.

Definition at line 1138 of file GUISUMOAbstractView.cpp.

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

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

called when user press a key

Reimplemented from GUISUMOAbstractView.

Definition at line 1016 of file GNEViewNet.cpp.

References GUISUMOAbstractView::onKeyPress().

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

called when user release a key

Reimplemented from GUISUMOAbstractView.

Definition at line 1022 of file GNEViewNet.cpp.

References myAmInRectSelect, and GUISUMOAbstractView::onKeyRelease().

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

Reimplemented from GUISUMOAbstractView.

Definition at line 485 of file GNEViewNet.cpp.

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

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

Definition at line 698 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

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

Definition at line 704 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

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

Definition at line 760 of file GUISUMOAbstractView.cpp.

Referenced by GUISUMOAbstractView::buildViewToolBars().

long GUISUMOAbstractView::onMouseWheel ( FXObject *  ,
FXSelector  ,
void *  data 
)
virtualinherited
long GUISUMOAbstractView::onPaint ( FXObject *  ,
FXSelector  ,
void *   
)
virtualinherited
long GNEViewNet::onRightBtnPress ( FXObject *  obj,
FXSelector  sel,
void *  eventData 
)
virtual
long GNEViewNet::onRightBtnRelease ( FXObject *  obj,
FXSelector  sel,
void *  eventData 
)
virtual
GNEViewNet& GNEViewNet::operator= ( const GNEViewNet &  )
privatedelete

Invalidated assignment operator.

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

Auxiliar function used by onLeftBtnPress(...)

Definition at line 1836 of file GNEViewNet.cpp.

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

Referenced by onLeftBtnPress().

void GUISUMOAbstractView::remove ( GUIDialog_EditViewport *  )
inherited

remove viewport

Definition at line 1098 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myViewportChooser.

Referenced by GUIDialog_ViewSettings::~GUIDialog_ViewSettings().

void GUISUMOAbstractView::remove ( GUIDialog_ViewSettings *  )
inherited

remove view settings

Definition at line 1104 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myVisualizationChanger.

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

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

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

Definition at line 1288 of file GUISUMOAbstractView.cpp.

References GUISUMOAbstractView::myAdditionallyDrawn.

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

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

References UNUSED_PARAMETER.

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

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

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

Definition at line 304 of file GNEViewNet.cpp.

References mySelectEdges.

Referenced by GNESelectorFrame::onCmdInvert().

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

Sets the delay of the parent application.

Definition at line 1338 of file GUISUMOAbstractView.cpp.

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

Referenced by GUIDialog_ViewSettings::loadSettings().

void GNEViewNet::setSelectionScaling ( double  selectionScale)
void GUISUMOAbstractView::setWindowCursorPosition ( FXint  x,
FXint  y 
)
inherited

Returns the information whether rotation is allowd.

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

Definition at line 603 of file GUISUMOAbstractView.cpp.

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

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

bool GNEViewNet::showConnections ( )
bool GNEViewNet::showJunctionAsBubbles ( ) const

return true if junction must be showed as bubbles

Definition at line 340 of file GNEViewNet.cpp.

References GNE_MODE_MOVE, myEditMode, and myMenuCheckShowBubbleOverJunction.

Referenced by GNEJunction::drawGL().

bool GNEViewNet::showLockIcon ( ) const

check if lock icon should be visible

Definition at line 1186 of file GNEViewNet.cpp.

References GNE_MODE_ADDITIONAL, GNE_MODE_INSPECT, GNE_MODE_MOVE, and myEditMode.

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

void GUISUMOAbstractView::showToolTips ( bool  val)
inherited
Position GUISUMOAbstractView::snapToActiveGrid ( const Position &  pos) const
inherited
void GUISUMOAbstractView::startTrack ( int  )
virtualinherited
void GNEViewNet::stopEditShapeJunction ( )
void GNEViewNet::updateControls ( )

update control contents after undo/redo or recompute

Definition at line 2427 of file GNEViewNet.cpp.

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

Referenced by GNEApplicationWindow::updateControls().

void GUISUMOAbstractView::updateToolTip ( )
inherited

Field Documentation

std::map<const GUIGlObject*, int> GUISUMOAbstractView::myAdditionallyDrawn
protectedinherited
GNEAdditional* GNEViewNet::myAdditionalToMove
private

the stoppingPlace element which shape is being moved

Definition at line 415 of file GNEViewNet.h.

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

bool GUISUMOAbstractView::myAmInitialised
protectedinherited

Internal information whether doInit() was called.

Definition at line 415 of file GUISUMOAbstractView.h.

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

bool GNEViewNet::myAmInRectSelect
private

whether we have started rectangle-selection

Definition at line 440 of file GNEViewNet.h.

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

std::set<SUMOTime>* GUISUMOAbstractView::myApplicationSnapshots
protectedinherited
FXMutex* GUISUMOAbstractView::myApplicationSnapshotsLock
protectedinherited
FXMenuCheck* GNEViewNet::myAutoCreateOppositeEdge
private

Definition at line 388 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myChainCreateEdge
private

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

Definition at line 387 of file GNEViewNet.h.

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

GNEJunction* GNEViewNet::myCreateEdgeSource
private

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

Definition at line 384 of file GNEViewNet.h.

Referenced by abortOperation(), and onLeftBtnPress().

GNEFrame* GNEViewNet::myCurrentFrame
private

the current frame

Definition at line 358 of file GNEViewNet.h.

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

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

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

Definition at line 432 of file GUISUMOAbstractView.h.

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

GNEEdge* GNEViewNet::myEdgeToMove
private

the edge of which geometry is being moved

Definition at line 406 of file GNEViewNet.h.

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

StringBijection<EditMode> GNEViewNet::myEditAdditionalModeNames
private

stringBijection for edit additional mode names

Definition at line 491 of file GNEViewNet.h.

MFXCheckableButton* GNEViewNet::myEditModeAdditional
private

chekable button for edit mode additional

Definition at line 476 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeConnection
private

chekable button for edit mode connection

Definition at line 470 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeCreateEdge
private

Definition at line 455 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeCrossing
private

chekable button for edit mode crossing

Definition at line 479 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeDelete
private

chekable button for edit mode delete

Definition at line 461 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeInspect
private

chekable button for edit mode inspect

Definition at line 464 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeMove
private

chekable button for edit mode move

Definition at line 458 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

StringBijection<EditMode> GNEViewNet::myEditModeNames
private

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

stringBijection for edit mode names

Definition at line 488 of file GNEViewNet.h.

Referenced by buildEditModeControls().

MFXCheckableButton* GNEViewNet::myEditModePolygon
private

chekable button for edit mode polygon

Definition at line 482 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeSelect
private

chekable button for edit mode select

Definition at line 467 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

MFXCheckableButton* GNEViewNet::myEditModeTrafficLight
private

chekable button for edit mode traffic light

Definition at line 473 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

bool GUISUMOAbstractView::myInEditMode
protectedinherited

Information whether too-tip informations shall be generated.

Definition at line 400 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::isInEditMode().

GNEJunction* GNEViewNet::myJunctionToMove
private

the Junction to be moved.

Definition at line 403 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckChangeAllPhases
private

menu check to set change all phases

Definition at line 370 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckExtendToEdgeNodes
private

menu check to extend to edge nodes

Definition at line 367 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckSelectEdges
private

menu check to select only edges

Definition at line 361 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckShowBubbleOverJunction
private

show connection as buuble in "Move" mode.

Definition at line 397 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckShowConnections
private

menu check to show connections

Definition at line 364 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckShowGrid
private

show grid button

Definition at line 373 of file GNEViewNet.h.

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

FXMenuCheck* GNEViewNet::myMenuCheckWarnAboutMerge
private

whether we should warn about merging junctions

Definition at line 394 of file GNEViewNet.h.

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

int GUISUMOAbstractView::myMouseHotspotX
protectedinherited

Offset to the mouse-hotspot from the mouse position.

Definition at line 403 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

int GUISUMOAbstractView::myMouseHotspotY
protectedinherited

Definition at line 403 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::setWindowCursorPosition().

int GNEViewNet::myMovingIndexShape
private

current index of shape that are being moved

Definition at line 427 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), and onMouseMove().

Position GNEViewNet::myMovingOriginalPosition
private

original Position of element before moving (needed for commmit position changes)

Definition at line 421 of file GNEViewNet.h.

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

PositionVector GNEViewNet::myMovingOriginalShape
private

Shape of elements before moving (needed for commmit shape changes)

Definition at line 424 of file GNEViewNet.h.

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

Position GNEViewNet::myMovingReference
private

variable for calculating moving offset (Used when user doesn't click exactly over the center of shape)

Definition at line 418 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), and onMouseMove().

bool GNEViewNet::myMovingSelection
private

whether a selection is being moved

Definition at line 430 of file GNEViewNet.h.

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

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

Junctions that are being moved.

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

Definition at line 434 of file GNEViewNet.h.

Referenced by onLeftBtnPress(), and onLeftBtnRelease().

GUIGlChildWindow* GUISUMOAbstractView::myParent
protectedinherited

The parent window.

Definition at line 391 of file GUISUMOAbstractView.h.

Referenced by GUISUMOAbstractView::getColoringSchemesCombo().

GNEPOI* GNEViewNet::myPoiToMove
private

the poi which is being moved

Definition at line 412 of file GNEViewNet.h.

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

MFXMutex GUISUMOAbstractView::myPolyDrawLock
mutableprotectedinherited

poly draw lock

Definition at line 444 of file GUISUMOAbstractView.h.

GNEPoly* GNEViewNet::myPolyToMove
private

the poly of which geometry is being moved

Definition at line 409 of file GNEViewNet.h.

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

GUIGLObjectPopupMenu* GUISUMOAbstractView::myPopup
protectedinherited
EditMode GNEViewNet::myPreviousEditMode
private

the previous edit mode before edit junction's shapes

Definition at line 506 of file GNEViewNet.h.

Referenced by startEditShapeJunction(), and stopEditShapeJunction().

Position GNEViewNet::mySelCorner1
private

firstcorner of the rectangle-selection

Definition at line 443 of file GNEViewNet.h.

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

Position GNEViewNet::mySelCorner2
private

second corner of the rectangle-selection

Definition at line 446 of file GNEViewNet.h.

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

bool GNEViewNet::mySelectEdges
private

flag to check if select edges is enabled

Definition at line 379 of file GNEViewNet.h.

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

bool GNEViewNet::myShowConnections
private

whether show connections has been activated once

Definition at line 376 of file GNEViewNet.h.

Referenced by onCmdToogleShowConnection().

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

Snapshots.

Definition at line 436 of file GUISUMOAbstractView.h.

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

MFXMutex GUISUMOAbstractView::mySnapshotsLock
protectedinherited

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

Definition at line 440 of file GUISUMOAbstractView.h.

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

int GNEViewNet::myTestingHeight
private

Height of viewNet in testing mode.

Definition at line 518 of file GNEViewNet.h.

Referenced by doPaintGL().

bool GNEViewNet::myTestingMode
private

Definition at line 512 of file GNEViewNet.h.

Referenced by doPaintGL().

int GNEViewNet::myTestingWidth
private

Width of viewNet in testing mode.

Definition at line 515 of file GNEViewNet.h.

Referenced by doPaintGL().

FXToolBar* GNEViewNet::myToolbar
private

a reference to the toolbar in myParent

Definition at line 450 of file GNEViewNet.h.

Referenced by buildEditModeControls(), and updateModeSpecificControls().

bool GUISUMOAbstractView::myUseToolTips
protectedinherited
GUIDialog_ViewSettings* GUISUMOAbstractView::myVisualizationChanger
protectedinherited
FXint GUISUMOAbstractView::myWindowCursorPositionX
protectedinherited

Position of the cursor relative to the window.

Definition at line 421 of file GUISUMOAbstractView.h.

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

FXint GUISUMOAbstractView::myWindowCursorPositionY
protectedinherited

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