77 #ifdef CHECK_MEMORY_LEAKS 79 #endif // CHECK_MEMORY_LEAKS 108 FXGLVisual* glVis, FXGLCanvas* share, FXToolBar* toolBar) :
109 GUISUMOAbstractView(tmpParent, app, viewParent, net->getVisualisationSpeedUp(), glVis, share),
110 myViewParent(viewParent),
113 myPreviousEditMode(GNE_MODE_MOVE),
114 myCreateEdgeSource(0),
118 myAdditionalToMove(0),
119 myMoveSelection(false),
120 myAmInRectSelect(false),
124 myUndoList(undoList),
127 reparent(actualParent);
129 buildEditModeControls();
131 myNet->setUpdateTarget(
this);
143 scheme =
GUIColorScheme(
"by selection (lane-/streetwise)",
RGBColor(128, 128, 128, 255),
"unselected",
true);
215 myVisualizationSettings->laneColorer = laneColorer;
239 myVisualizationSettings->junctionColorer = junctionColorer;
268 "\tLocate Junction\tLocate a junction within the network.",
270 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
273 "\tLocate Street\tLocate a street within the network.",
275 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
278 "\tLocate TLS\tLocate a traffic light within the network.",
280 ICON_ABOVE_TEXT | FRAME_THICK | FRAME_RAISED);
334 glMatrixMode(GL_MODELVIEW);
336 glDisable(GL_TEXTURE_2D);
337 glDisable(GL_ALPHA_TEST);
339 glEnable(GL_DEPTH_TEST);
344 glTranslated(0, 0,
GLO_MAX - 1);
347 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
367 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
370 minB[0] = bound.
xmin();
371 minB[1] = bound.
ymin();
372 maxB[0] = bound.
xmax();
373 maxB[1] = bound.
ymax();
375 glEnable(GL_POLYGON_OFFSET_FILL);
376 glEnable(GL_POLYGON_OFFSET_LINE);
391 FXEvent* e = (FXEvent*) data;
411 pointed_edge = (
GNEEdge*)pointed;
414 pointed_lane = (
GNELane*)pointed;
418 pointed_poi = (
GNEPOI*)pointed;
421 pointed_poly = (
GNEPoly*)pointed;
438 if ((e->state & CONTROLMASK) == 0) {
443 if (!pointed_junction) {
464 std::cout <<
"edge created without an open CommandGroup )-:\n";
489 }
else if (pointed_junction) {
496 }
else if (pointed_edge) {
503 }
else if (pointed_additional) {
523 if (pointed_junction) {
532 }
else if (pointed_edge) {
539 }
else if (pointed_poi) {
543 }
else if (pointed_additional) {
554 if (pointed_junction) {
555 pointedAC = pointed_junction;
556 pointedO = pointed_junction;
557 }
else if (pointed_lane) {
559 pointedAC = pointed_edge;
560 pointedO = pointed_edge;
562 pointedAC = pointed_lane;
563 pointedO = pointed_lane;
565 }
else if (pointed_edge) {
566 pointedAC = pointed_edge;
567 pointedO = pointed_edge;
568 }
else if (pointed_crossing) {
569 pointedAC = pointed_crossing;
570 pointedO = pointed_crossing;
571 }
else if (pointed_additional) {
572 pointedAC = pointed_additional;
573 pointedO = pointed_additional;
576 std::vector<GNEAttributeCarrier*> selected;
580 }
else if (pointedAC != 0) {
581 selected.push_back(pointedAC);
592 }
else if (pointed) {
608 const bool mayPass = (((FXEvent*)data)->state & SHIFTMASK) != 0;
609 const bool allowConflict = (((FXEvent*)data)->state & CONTROLMASK) != 0;
617 if (pointed_junction) {
625 if (pointed_additional == NULL) {
669 if (((FXEvent*)data)->state & SHIFTMASK) {
747 if (clearSelection) {
825 FXMessageBox::error(
this, MBOX_OK,
"invalid edit mode",
"%s",
"...");
904 edge = &(((
GNELane*)pointed)->getParentEdge());
934 std::set<GNEEdge*> result;
937 for (std::vector<GUIGlID>::const_iterator it = ids.begin(); it != ids.end(); ++it) {
943 result.insert((
GNEEdge*)pointed);
946 result.insert(&(((
GNELane*)pointed)->getParentEdge()));
971 if (edges.size() != 0) {
1025 for (std::vector<GNEEdge*>::iterator it = edges.begin(); it != edges.end(); it++) {
1066 for (std::vector<GNELane*>::iterator it = lanes.begin(); it != lanes.end(); it++) {
1083 if (junction != 0) {
1126 if (junction != 0) {
1175 FRAME_SUNKEN | LAYOUT_LEFT | LAYOUT_TOP | COMBOBOX_STATIC | LAYOUT_CENTER_Y);
1178 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
1184 myChainCreateEdge =
new FXMenuCheck(
myToolbar,
"chain\t\tCreate consecutive edges with a single click (hit ESC to cancel chain).",
this, 0);
1186 "two-way\t\tAutomatically create an edge in the opposite direction",
this, 0);
1187 mySelectEdges =
new FXMenuCheck(
myToolbar,
"select edges\t\tToggle whether clicking should select edges or lanes",
this, 0);
1189 myExtendToEdgeNodes =
new FXMenuCheck(
myToolbar,
"auto-select nodes\t\tToggle whether selecting multiple edges should automatically select their nodes",
this, 0);
1191 myWarnAboutMerge =
new FXMenuCheck(
myToolbar,
"ask for merge\t\tAsk for confirmation before merging junctions.",
this, 0);
1194 myChangeAllPhases =
new FXMenuCheck(
myToolbar,
"apply change to all phases\t\tToggle whether clicking should apply state changes to all phases of the current traffic light plan",
this, 0);
1203 const int addChange = 4;
1212 int widthChange = 0;
1285 for (std::vector<GNEJunction*>::iterator it = junctions.begin(); it != junctions.end(); it++) {
1297 for (std::vector<GNEEdge*>::iterator it = edges.begin(); it != edges.end(); it++) {
1303 for (std::vector<GNELane*>::iterator it = lanes.begin(); it != lanes.end(); it++) {
1318 selection.
add(newPos);
1319 selection.
grow(0.1);
1322 for (std::vector<GUIGlID>::const_iterator it = ids.begin(); it != ids.end(); it++) {
1340 FXuint answer = FXMessageBox::question(
this, MBOX_YES_NO,
1341 "Confirm Junction Merger",
"%s",
1342 (
"Do you wish to merge junctions '" + moved->
getMicrosimID() +
1345 "' will be eliminated and its roads added to '" +
GNEJunction * splitEdge(GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0)
split edge at position by inserting a new junction
long onCmdResetEdgeEndpoint(FXObject *, FXSelector, void *)
restore geometry endpoint to node position
long onCmdDeleteGeometry(FXObject *, FXSelector, void *)
delete the closes geometry point
GNEViewParent * myViewParent
view parent
virtual void openAdditionalDialog()
open Additional Dialog
void paintGLGrid()
paints a grid
EditMode getCurrentEditMode() const
get the current edit mode
std::vector< GNEJunction * > retrieveJunctions(bool onlySelected=false)
return all junctions
static const RGBColor BLUE
bool showLockIcon() const
check if lock icon should be visible
ShapeContainer & getShapeContainer()
get shape container
Position moveGeometry(const Position &oldPos, const Position &newPos, bool relative=false)
draw the polygon and also little movement handles
FXDEFMAP(GNEViewNet) GNEViewNetMap[]
std::vector< GNELane * > retrieveLanes(bool onlySelected=false)
return all lanes
FXMenuCheck * mySelectEdges
menu check to select only edges
bool selectEdges()
whether inspection, selection and inversion should apply to edges or to lanes
GNEJunction * getJunctionAtCursorPosition(Position &pos)
try to retrieve a junction at the given position
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
Position myPopupSpot
Poput spot.
GUICompleteSchemeStorage gSchemeStorage
void abortOperation(bool clearSelection=true)
abort current edition operation
void deleteSelectedJunctions()
delete all currently selected junctions
const SUMOReal SUMO_const_laneWidth
bool setColorScheme(const std::string &name)
set color schieme
bool changeAllPhases() const
change all phases
SUMOReal nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
void markPopupPosition()
store the position where a popup-menu was requested
long onCmdDuplicateLane(FXObject *, FXSelector, void *)
duplicate selected lane
StringBijection< EditMode > myEditModeNames
since we cannot switch on strings we map the mode names to an enum
long onMouseMove(FXObject *, FXSelector, void *)
called when user moves mouse
void markAsCreateEdgeSource()
marks as first junction in createEdge-mode
The main window of the Netedit.
SUMORTree * myGrid
The visualization speed-up.
virtual void changeCanvassLeft(int change)=0
GNEEdge * getEdgeTemplate() const
get the template edge (to copy attributes from)
void setAllowsNegativeValues(bool value)
void toggleSelection(GUIGlID id)
Toggles selection of an object.
virtual long onMouseMove(FXObject *, FXSelector, void *)
FXMenuCheck * myChainCreateEdge
whether the endpoint for a created edge should be set as the new source
SUMOReal ymin() const
Returns minimum y-coordinate.
long onCmdSplitEdge(FXObject *, FXSelector, void *)
split edge at cursor position
const PositionVector & getShape() const
Returns whether the shape of the polygon.
GUIMainWindow * myApp
The application.
FXMenuCheck * myChangeAllPhases
menu check to set change all phases
vehicle is a small delivery vehicle
void setEditMode(EditMode mode)
set edit mode
Position moveGeometry(const Position &oldPos, const Position &newPos, bool relative=false)
change the edge geometry It is up to the Edge to decide whether an new geometry node should be genera...
void computeEverything(GNEApplicationWindow *window, bool force=false)
SUMOReal xmin() const
Returns minimum x-coordinate.
Position mySelCorner2
second corner of the rectangle-selection
GNEAdditionalFrame * getAdditionalFrame() const
get frame for GNE_MODE_ADDITIONAL
classes which (normally) do not drive on normal roads
void removeAdditionalGLObject(GUIGlObject *o)
Removes an additional object (detector/shape/trigger) from being visualised.
NBNode * getNBNode() const
Return net build node.
void reverseEdge(GNEEdge *edge, GNEUndoList *undoList)
reverse edge
void setSelectionScaling(SUMOReal selectionScale)
set selection scaling
void setLineWidth(SUMOReal lineWidth)
set a new shape and update the tesselation
long onCmdNodeShape(FXObject *, FXSelector, void *)
input custom node shape
static const RGBColor ORANGE
std::string getAttribute(SumoXMLAttr key) const
virtual long onLeftBtnPress(FXObject *, FXSelector, void *)
void splitEdgesBidi(const std::set< GNEEdge * > &edges, const Position &pos, GNEUndoList *undoList)
split all edges at position by inserting one new junction
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
A NBNetBuilder extended by visualisation and editing capabilities.
FXComboBox * myEditModesCombo
combo box for selecting the edit mode
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void editJunction(GNEJunction *junction)
edits the traffic light for the given junction
GNEEdge * createEdge(GNEJunction *src, GNEJunction *dest, GNEEdge *tpl, GNEUndoList *undoList, const std::string &suggestedName="", bool wasSplit=false, bool allowDuplicateGeom=false)
creates a new edge (unless an edge with the same geometry already exists)
int editMode
the current NETEDIT mode (temporary)
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
void setEditModeFromHotkey(FXushort selid)
sets edit mode (from hotkey)
bool addAdditional(GNENetElement *netElement, GUISUMOAbstractView *parent)
add additional element
long onCmdSetEdgeEndpoint(FXObject *, FXSelector, void *)
set non-default geometry endpoint
static const RGBColor BLACK
const SVCPermissions SVCAll
GUIDialog_ViewSettings * myVisualizationChanger
Visualization changer.
GNEViewParent * getViewParent() const
get the net object
void deleteEdge(GNEEdge *edge, GNEUndoList *undoList)
removes edge
void updateControls()
update control contents after undo/redo or recompute
EditMode myPreviousEditMode
the previous edit mode used for toggling
void registerMove(GNEUndoList *undoList)
registers completed movement with the undoList
SUMOReal x() const
Returns the x-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
SUMOReal xmax() const
Returns maximum x-coordinate.
GNEEdge * myEdgeToMove
the edge of which geometry is being moved
A class that stores a 2D geometrical boundary.
long onCmdChangeMode(FXObject *, FXSelector, void *)
sets edit mode via combo box
A single child window which contains a view of the simulation area.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
GNEUndoList * getUndoList() const
get the undoList object
std::map< const GUIGlObject *, int > myAdditionallyDrawn
List of objects for which GUIGlObject::drawGLAdditional is called.
std::vector< std::string > getStrings() const
bool myMoveSelection
whether a selection is being moved
void hide()
hidde additional frame
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
void handleLaneClick(GNELane *lane, bool mayDefinitelyPass, bool allowConflict, bool toggle)
either sets the current lane or toggles the connection of the current lane to this lane (if they shar...
const std::string & getID() const
Returns the id.
std::vector< GUIGlID > getObjectsAtPosition(Position pos, SUMOReal radius)
returns the ids of the object at position within the given (rectangular) radius using GL_SELECT ...
void insert(const std::string str, const T key, bool checkDuplicates=true)
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
void buildEditModeControls()
adds controls for setting the edit mode
GUIGlID getObjectAtPosition(Position pos)
returns the id of the object at position using GL_SELECT
std::set< GNEEdge * > getEdgesAtCursorPosition(Position &pos)
try to retrieve multiple edges at the given position
long onLeftBtnPress(FXObject *, FXSelector, void *)
overloaded handlers
const Position & getPosition() const
Returns the position of this node.
long onCmdSimplifyShape(FXObject *, FXSelector, void *)
simply shape of current polygon
int addColor(const T &color, const SUMOReal threshold, const std::string &name="")
static const RGBColor GREEN
static const RGBColor GREY
virtual long onPaint(FXObject *, FXSelector, void *)
const std::set< GUIGlID > & getSelected() const
Returns the list of ids of all selected objects.
GNEPoly * myCurrentPoly
current polygon
SUMOReal selectionScale
the current selection scaling in NETEDIT (temporary)
FXMenuCheck * myWarnAboutMerge
whether we should warn about merging junctions
mode for inspecting object attributes
void setCurrentScheme(const std::string &)
Sets the named scheme as the current.
virtual void setStatusBarText(const std::string &)
GNEAdditional * myAdditionalToMove
the stoppingPlace element which shape is being moved
virtual GNELane * getLane() const
get lane of additional, or NULL if additional isn't placed over a Lane
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button.
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
GNEEdge & getParentEdge()
Returns underlying parent edge.
virtual ~GNEViewNet()
destructor
A point in 2D or 3D with translation and scaling methods.
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise, the sub-group will be added as a new command into parent group. A matching begin() must have been called previously.
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
void deleteLane(GNELane *lane, GNEUndoList *undoList)
removes lane
void deleteGeometryOrEdge(GNEEdge *edge, const Position &pos, GNEUndoList *undoList)
removes geometry when pos is close to a geometry node, deletes the whole edge otherwise ...
bool contains(const std::string &name) const
Returns the information whether a setting with the given name is stored.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
GUIVisualizationSettings & get(const std::string &name)
Returns the named scheme.
void inspect(const std::vector< GNEAttributeCarrier * > &ACs)
Inspect the given multi-selection.
void removeAdditional(GNEAdditional *additional)
remove an additional element previously added
const std::string & getString(const T key) const
long onCmdSplitEdgeBidi(FXObject *, FXSelector, void *)
split edge at cursor position
bool autoSelectNodes()
whether to autoselect nodes or to lanes
static const RGBColor MAGENTA
Position myAdditionalFirstPosition
variable to save the firstposition of the additional before move
mode for selecting objects
void removeCurrentPoly()
remove the currently edited polygon
GNEJunction * myJunctionToMove
the Junction to be moved.
GNELane * getLaneAtCurserPosition(Position &pos)
try to retrieve a lane at the given position
Locate junction - button.
std::vector< GNEAttributeCarrier * > retrieveAttributeCarriers(const std::set< GUIGlID > &ids, GUIGlObjectType type)
get the attribute carriers based on GlIDs
std::string getCurrentScheme() const
Returns the name of the currently chosen scheme.
GNEInspectorFrame * getInspectorFrame() const
get frame for GNE_MODE_INSPECT
GNEConnectorFrame * getConnectorFrame() const
get frame for GNE_MODE_CONNECT
void unMarkAsCreateEdgeSource()
removes mark as first junction in createEdge-mode
void moveSelection(const Position &moveSrc, const Position &moveDest)
move all selected junctions and edges
GNEJunction * createJunction(const Position &pos, GNEUndoList *undoList)
creates a new junction
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
Position mySelCorner1
firstcorner of the rectangle-selection
void p_abort()
reverts and discards ALL active command groups
const PositionVector & getShape() const
retrieve the junction shape
GUIPerspectiveChanger * myChanger
The perspective changer.
bool myUseToolTips
use tool tips
SUMORTree & getVisualisationSpeedUp()
Returns the RTree used for visualisation speed-up.
vehicle is a passenger car (a "normal" car)
void doInit()
called after some features are already initialized
FXMenuCheck * myAutoCreateOppositeEdge
bool mergeJunctions(GNEJunction *moved)
try to merge moved junction with another junction in that spot return true if merging did take place ...
void replaceJunctionByGeometry(GNEJunction *junction, GNEUndoList *undoList)
A road/street connecting two junctions (netedit-version)
FXbool makeCurrent()
A reimplementation due to some internal reasons.
long onCmdOK(FXObject *, FXSelector, void *)
virtual long onLeftBtnRelease(FXObject *, FXSelector, void *)
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
static const RGBColor YELLOW
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
static const RGBColor RED
const PositionVector & getShape() const
returns the shape of the lane
FXMenuCheck * myExtendToEdgeNodes
menu check to extend to edge nodes
static const RGBColor CYAN
bool hasCommandGroup() const
Check if undoList has command group.
GUIVisualizationSettings * myVisualizationSettings
visualization settings
void show()
show additional frame
std::vector< GNEEdge * > retrieveEdges(bool onlySelected=false)
return all edges
Position myMoveSrc
position from which to move edge geometry
void addAdditionalGLObject(GUIGlObject *o)
Adds an additional object (detector/shape/trigger) for visualisation.
An Element which don't belongs to GNENet but has influency in the simulation.
SUMOReal m2p(SUMOReal meter) const
meter-to-pixels conversion method
long onCmdOK(FXObject *, FXSelector, void *)
long onCmdReverseEdge(FXObject *, FXSelector, void *)
reverse edge
SUMOReal y() const
Returns the y-position.
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any connection modifications.
int doPaintGL(int mode, const Boundary &bound)
do paintGL
GNEJunction * myCreateEdgeSource
source junction for new edge 0 if no edge source is selected an existing (or newly created) junction ...
void move(Position pos)
reposition the node at pos and informs the edges
void set(SUMOReal x, SUMOReal y)
void simplifyShape()
replace the current shape with a rectangle
GNENet * getNet() const
get the net object
void clear()
Clears the list of selected objects.
void deleteJunction(GNEJunction *junction, GNEUndoList *undoList)
removes junction and all incident edges
void handleIDs(std::vector< GUIGlID > ids, bool selectEdges, SetOperation setop=SET_DEFAULT)
apply list of ids to the current selection according to SetOperation,
bool showGrid
Information whether a grid shall be shown.
void drawDecals()
Draws the stored decals.
void updateModeSpecificControls()
updates mode specific controls
T get(const std::string &str) const
virtual int Search(const float a_min[2], const float a_max[2], const GUIVisualizationSettings &c) const
Find all within search rectangle.
SumoXMLTag getTag() const
get Tag assigned to this object
GNEEdge * addReversedEdge(GNEEdge *edge, GNEUndoList *undoList)
add reversed edge
void setStatusBarText(const std::string &text)
set staturBar text
Mode for editing additionals.
virtual void buildViewToolBars(GUIGlChildWindow &)
builds the view toolbars
void setEndpoint(Position pos, GNEUndoList *undoList)
makes pos the new geometry endpoint at the appropriate end
SUMOReal ymax() const
Returns maximum y-coordinate.
GUIPropertyScheme< RGBColor > GUIColorScheme
static const RGBColor selectionColor
color of selection
void unblockObject(GUIGlID id)
Marks an object as unblocked.
long onCmdStraightenEdges(FXObject *, FXSelector, void *)
makes selected edges straight
mode for connecting lanes
mode for creating new edges
NBEdge * getNBEdge()
returns the internal NBEdge
GNETLSEditorFrame * getTLSEditorFrame() const
get frame for GNE_MODE_TLS
long onDoubleClicked(FXObject *, FXSelector, void *)
called when user press mouse's left button two times
Position getPositionInformation() const
Returns the cursor's x/y position within the network.
GUIGlID getObjectUnderCursor()
returns the id of the object under the cursor using GL_SELECT
void mergeJunctions(GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList)
merge the given junctions edges between the given junctions will be deleted
GNEEdge * getEdgeAtCursorPosition(Position &pos)
try to retrieve an edge at the given position
long onCmdNodeReplace(FXObject *, FXSelector, void *)
replace node by geometry
void hotkeyDel()
handle del keypress
long onCmdAddReversedEdge(FXObject *, FXSelector, void *)
add reversed edge
GUIGlObject * getObjectBlocking(GUIGlID id)
Returns the object from the container locking it.
void closePolygon()
ensures that the last position equals the first
GNEJunction * getEditedJunction() const
retrieve the junction of which the shape is being edited
bool myAmInRectSelect
whether we have started rectangle-selection
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
GUISelectedStorage gSelected
A global holder of selected objects.
GNENet * myNet
we are not responsible for deletion
void hotkeyEnter()
handle enter keypress
void resetEndpoint(const Position &pos, GNEUndoList *undoList)
restores the endpoint to the junction position at the appropriate end
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
long onLeftBtnRelease(FXObject *, FXSelector, void *)
called when user releases mouse's left button
Position getSplitPos(const Position &clickPos)
void computeNodeShape(SUMOReal mismatchThreshold)
Compute the junction shape for this node.
void duplicateLane(GNELane *lane, GNEUndoList *undoList)
duplicates lane
void deleteSelectedEdges()
delete all currently selected edges
GNEUndoList * myUndoList
a reference to the undolist maintained in the application
EditMode myEditMode
the current edit mode
std::vector< GUIGlID > getObjectsInBoundary(const Boundary &bound)
returns the ids of all objects in the given boundary
virtual void moveAdditional(SUMOReal posx, SUMOReal posy, GNEUndoList *undoList)=0
change the position of the additional geometry
FXPopup * getLocatorPopup()
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_MODE_SELECT
void deleteGeometryNear(const Position &pos)
delete the geometry point closest to the given pos
GNEPoly * myPolyToMove
the poly of which geometry is being moved
void finishMoveSelection(GNEUndoList *undoList)
register changes to junction and edge positions with the undoList
virtual Position getPositionInView() const =0
Returns position of additional in view.