![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEChange_Connection.h>
Public Member Functions | |
GNEChange_Connection (GNEEdge *edge, NBEdge::Connection nbCon, bool selected, 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... | |
bool | mySelected |
flag to indicates if crossing was previously selected More... | |
A network change in which a single lane is created or deleted
Definition at line 45 of file GNEChange_Connection.h.
GNEChange_Connection::GNEChange_Connection | ( | GNEEdge * | edge, |
NBEdge::Connection | nbCon, | ||
bool | selected, | ||
bool | forward | ||
) |
Constructor for creating/deleting a connection.
[in] | edge | The source edge of the connection |
[in] | nbCon | The data of the connection |
[in] | check | if in the moment of change connection was selected |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 38 of file GNEChange_Connection.cpp.
GNEChange_Connection::~GNEChange_Connection | ( | ) |
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 76 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), NBEdge::Connection::fromLane, GNEAttributeCarrier::getID(), NBEdge::getLaneID(), GNEEdge::getNBEdge(), myEdge, GNEChange::myForward, myNBEdgeConnection, GNEChange::myNet, mySelected, GNEEdge::removeConnection(), GNENet::requiereSaveNet(), SUMO_TAG_CONNECTION, SUMO_TAG_EDGE, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, toString(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 109 of file GNEChange_Connection.cpp.
References GNEChange::myForward, SUMO_TAG_CONNECTION, and toString().
|
virtualinherited |
return actual size
Definition at line 45 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 53 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), NBEdge::Connection::fromLane, GNEAttributeCarrier::getID(), NBEdge::getLaneID(), GNEEdge::getNBEdge(), myEdge, GNEChange::myForward, myNBEdgeConnection, GNEChange::myNet, mySelected, GNEEdge::removeConnection(), GNENet::requiereSaveNet(), SUMO_TAG_CONNECTION, SUMO_TAG_EDGE, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, toString(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 99 of file GNEChange_Connection.cpp.
References GNEChange::myForward, SUMO_TAG_CONNECTION, and toString().
|
private |
Definition at line 79 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 81 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_DemandElement::redoName(), GNEChange_Children::redoName(), redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_DemandElement::undoName(), GNEChange_Children::undoName(), undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::undoName(), and GNEChange_Crossing::undoName().
|
private |
the data which must be copied because the original reference does not persist
Definition at line 82 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 76 of file GNEChange.h.
Referenced by GNEChange_Crossing::GNEChange_Crossing(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), GNEChange_EnableAttribute::redo(), redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_DemandElement::undo(), GNEChange_EnableAttribute::undo(), GNEChange_Children::undo(), undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Crossing::~GNEChange_Crossing(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_EnableAttribute::~GNEChange_EnableAttribute(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
flag to indicates if crossing was previously selected
Definition at line 85 of file GNEChange_Connection.h.