![]() |
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 85 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), GNEAttributeCarrier::getID(), GNENetElement::getNet(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::isTestingModeEnabled(), myConnection, myEdge, GNEChange::myForward, myNBEdgeConnection, GNEEdge::removeConnection(), toString(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 115 of file GNEChange_Connection.cpp.
References GNEChange::myForward, SUMO_TAG_CONNECTION, and toString().
|
virtualinherited |
return actual size
Definition at line 53 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 65 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), GNEAttributeCarrier::getID(), GNENetElement::getNet(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::isTestingModeEnabled(), myConnection, myEdge, GNEChange::myForward, myNBEdgeConnection, GNEEdge::removeConnection(), toString(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 105 of file GNEChange_Connection.cpp.
References GNEChange::myForward, SUMO_TAG_CONNECTION, and toString().
|
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_Junction::redo(), GNEChange_Selection::redo(), GNEChange_TLS::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), redoName(), GNEChange_Lane::redoName(), GNEChange_Additional::redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_TLS::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Selection::undoName(), GNEChange_TLS::undoName(), undoName(), GNEChange_Lane::undoName(), GNEChange_Additional::undoName(), GNEChange_Edge::undoName(), and GNEChange_Crossing::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_Junction::redo(), GNEChange_Selection::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Lane::~GNEChange_Lane(), and GNEChange_TLS::~GNEChange_TLS().