![]() |
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 | |
GNEEdge * | myEdge |
full information regarding the edge that is to be created/deleted More... | |
A network change in which a single edge is created or deleted
Definition at line 48 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 41 of file GNEChange_Edge.cpp.
GNEChange_Edge::~GNEChange_Edge | ( | ) |
Destructor.
Definition at line 49 of file GNEChange_Edge.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myEdge, GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 83 of file GNEChange_Edge.cpp.
References GNENet::deleteSingleEdge(), GNEInspectorFrame::getACHierarchy(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNENet::insertEdge(), myEdge, GNEChange::myForward, GNEChange::myNet, GNEFrame::ACHierarchy::refreshACHierarchy(), GNENet::requiereSaveNet(), SUMO_TAG_NET, toString(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 115 of file GNEChange_Edge.cpp.
References GNEChange::myForward, SUMO_TAG_EDGE, and toString().
|
virtualinherited |
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 61 of file GNEChange_Edge.cpp.
References GNENet::deleteSingleEdge(), GNEInspectorFrame::getACHierarchy(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNENet::insertEdge(), myEdge, GNEChange::myForward, GNEChange::myNet, GNEFrame::ACHierarchy::refreshACHierarchy(), GNENet::requiereSaveNet(), SUMO_TAG_NET, toString(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 105 of file GNEChange_Edge.cpp.
References GNEChange::myForward, SUMO_TAG_EDGE, and toString().
|
private |
full information regarding the edge that is to be created/deleted
Definition at line 82 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 81 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), GNEChange_Shape::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_Connection::redoName(), redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_Connection::undoName(), undoName(), GNEChange_Lane::undoName(), and GNEChange_Crossing::undoName().
|
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 76 of file GNEChange.h.
Referenced by GNEChange_Crossing::GNEChange_Crossing(), GNEChange_Shape::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Crossing::~GNEChange_Crossing(), and GNEChange_Shape::~GNEChange_Shape().