SUMO - Simulation of Urban MObility
|
#include <GNEChange_Connection.h>
Public Member Functions | |
GNEChange_Connection (GNEEdge *edge, NBEdge::Connection nbCon, bool forward) | |
Constructor for creating/deleting a connection. More... | |
virtual FXuint | size () const |
return actual size More... | |
~GNEChange_Connection () | |
Destructor. More... | |
inherited from GNEChange | |
get undo Name | |
FXString | undoName () const |
return undoName More... | |
FXString | redoName () const |
get Redo name More... | |
void | undo () |
undo action More... | |
void | redo () |
redo action More... | |
Protected Attributes | |
bool | myForward |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More... | |
GNENet * | myNet |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More... | |
Private Attributes | |
GNEEdge * | myEdge |
NBEdge::Connection | myNBEdgeConnection |
the data which must be copied because the original reference does not persist More... | |
GNEConnection * | myConnection |
We only keep this to retain the GUIGlID. More... | |
A network change in which a single lane is created or deleted
Definition at line 52 of file GNEChange_Connection.h.
GNEChange_Connection::GNEChange_Connection | ( | GNEEdge * | edge, |
NBEdge::Connection | nbCon, | ||
bool | forward | ||
) |
Constructor for creating/deleting a connection.
[in] | edge | The source edge of the connection |
[in] | nbCon | The data of the connection |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 50 of file GNEChange_Connection.cpp.
GNEChange_Connection::~GNEChange_Connection | ( | ) |
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 75 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), myConnection, myEdge, GNEChange::myForward, myNBEdgeConnection, and GNEEdge::removeConnection().
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 93 of file GNEChange_Connection.cpp.
References GNEChange::myForward.
|
virtualinherited |
return actual size
Definition at line 57 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 66 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), myConnection, myEdge, GNEChange::myForward, myNBEdgeConnection, and GNEEdge::removeConnection().
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 84 of file GNEChange_Connection.cpp.
References GNEChange::myForward.
|
private |
We only keep this to retain the GUIGlID.
Definition at line 96 of file GNEChange_Connection.h.
|
private |
Definition at line 88 of file GNEChange_Connection.h.
Referenced by redo(), undo(), and ~GNEChange_Connection().
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 87 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Selection::redoName(), GNEChange_Junction::redoName(), GNEChange_Additional::redoName(), GNEChange_TLS::redoName(), redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Selection::undo(), GNEChange_Additional::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), GNEChange_Selection::undoName(), GNEChange_Additional::undoName(), GNEChange_Junction::undoName(), GNEChange_TLS::undoName(), undoName(), GNEChange_Lane::undoName(), and GNEChange_Edge::undoName().
|
private |
the data which must be copied because the original reference does not persist
Definition at line 91 of file GNEChange_Connection.h.
|
protectedinherited |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)
Definition at line 82 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Selection::undo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().