![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Edge.h>
Public Member Functions | |
GNEChange_Edge (GNEEdge *edge, bool forward) | |
Constructor for creating/deleting an edge. More... | |
virtual FXuint | size () const |
return actual size More... | |
~GNEChange_Edge () | |
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 | |
std::vector< GNEAdditional * > | myAdditionalChilds |
we need to preserve the list of additionals vinculated with this edge More... | |
std::map< GNELane *, std::vector< GNEAdditional * > > | myAdditionalLanes |
we need to preserve additional vinculated with the lanes of edge More... | |
std::map< GNELane *, std::vector< GNEAdditional * > > | myAdditionalsLanes |
we need to preserve the additional sets in which the edge of lanes are childs More... | |
GNEEdge * | myEdge |
full information regarding the edge that is to be created/deleted More... | |
std::vector< GNERerouter * > | myGNERerouters |
we need to preserve the list of rerouters in which this edge is a child More... | |
A network change in which a single edge is created or deleted
Definition at line 55 of file GNEChange_Edge.h.
GNEChange_Edge::GNEChange_Edge | ( | GNEEdge * | edge, |
bool | forward | ||
) |
Constructor for creating/deleting an edge.
constructor for creating an edge
[in] | edge | The edge to be created/deleted |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 51 of file GNEChange_Edge.cpp.
GNEChange_Edge::~GNEChange_Edge | ( | ) |
Destructor.
Definition at line 63 of file GNEChange_Edge.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNENetElement::getNet(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::isTestingModeEnabled(), myEdge, toString(), GNEReferenceCounter::unreferenced(), and WRITE_WARNING.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 113 of file GNEChange_Edge.cpp.
References GNENet::deleteAdditional(), GNENet::deleteSingleEdge(), GNEAttributeCarrier::getID(), GNENetElement::getNet(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNENet::insertAdditional(), GNENet::insertEdge(), GNEViewNet::isTestingModeEnabled(), myAdditionalChilds, myEdge, GNEChange::myForward, myGNERerouters, GNEChange::myNet, toString(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 159 of file GNEChange_Edge.cpp.
References GNEChange::myForward, SUMO_TAG_EDGE, and toString().
|
virtualinherited |
return actual size
Definition at line 53 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 77 of file GNEChange_Edge.cpp.
References GNENet::deleteAdditional(), GNENet::deleteSingleEdge(), GNEAttributeCarrier::getID(), GNENetElement::getNet(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNENet::insertAdditional(), GNENet::insertEdge(), GNEViewNet::isTestingModeEnabled(), myAdditionalChilds, myEdge, GNEChange::myForward, myGNERerouters, GNEChange::myNet, toString(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 149 of file GNEChange_Edge.cpp.
References GNEChange::myForward, SUMO_TAG_EDGE, and toString().
|
private |
we need to preserve the list of additionals vinculated with this edge
Definition at line 92 of file GNEChange_Edge.h.
|
private |
we need to preserve additional vinculated with the lanes of edge
Definition at line 98 of file GNEChange_Edge.h.
|
private |
we need to preserve the additional sets in which the edge of lanes are childs
Definition at line 101 of file GNEChange_Edge.h.
|
private |
full information regarding the edge that is to be created/deleted
Definition at line 89 of file GNEChange_Edge.h.
Referenced by redo(), undo(), and ~GNEChange_Edge().
|
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(), GNEChange_Connection::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Additional::redoName(), redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Selection::undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::undoName(), GNEChange_Additional::undoName(), undoName(), and GNEChange_Crossing::undoName().
|
private |
we need to preserve the list of rerouters in which this edge is a child
Definition at line 95 of file GNEChange_Edge.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(), redo(), GNEChange_Crossing::redo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), undo(), GNEChange_Crossing::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Lane::~GNEChange_Lane(), and GNEChange_TLS::~GNEChange_TLS().