![]() |
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 44 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 37 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(), NBEdge::Connection::fromLane, GNEAttributeCarrier::getID(), NBEdge::getLaneID(), GNEEdge::getNBEdge(), myEdge, GNEChange::myForward, myNBEdgeConnection, GNEChange::myNet, mySelected, GNEEdge::removeConnection(), GNENet::requireSaveNet(), 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 108 of file GNEChange_Connection.cpp.
References GNEChange::myForward, SUMO_TAG_CONNECTION, and toString().
|
virtualinherited |
return actual size
Definition at line 44 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 52 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::requireSaveNet(), 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 98 of file GNEChange_Connection.cpp.
References GNEChange::myForward, SUMO_TAG_CONNECTION, and toString().
|
private |
Definition at line 78 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 80 of file GNEChange.h.
Referenced by GNEChange_Additional::redo(), GNEChange_Children::redo(), redo(), GNEChange_Crossing::redo(), GNEChange_DemandElement::redo(), GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redoName(), GNEChange_Children::redoName(), redoName(), GNEChange_Crossing::redoName(), GNEChange_DemandElement::redoName(), GNEChange_Edge::redoName(), GNEChange_Junction::redoName(), GNEChange_Lane::redoName(), GNEChange_Shape::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::undo(), GNEChange_Children::undo(), undo(), GNEChange_Crossing::undo(), GNEChange_DemandElement::undo(), GNEChange_Edge::undo(), GNEChange_Junction::undo(), GNEChange_Lane::undo(), GNEChange_Shape::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undoName(), GNEChange_Children::undoName(), undoName(), GNEChange_Crossing::undoName(), GNEChange_DemandElement::undoName(), GNEChange_Edge::undoName(), GNEChange_Junction::undoName(), GNEChange_Lane::undoName(), GNEChange_Shape::undoName(), and GNEChange_TLS::undoName().
|
private |
the data which must be copied because the original reference does not persist
Definition at line 81 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 75 of file GNEChange.h.
Referenced by GNEChange_Crossing::GNEChange_Crossing(), GNEChange_Additional::redo(), GNEChange_Attribute::redo(), GNEChange_Children::redo(), redo(), GNEChange_Crossing::redo(), GNEChange_DemandElement::redo(), GNEChange_Edge::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::undo(), GNEChange_Attribute::undo(), GNEChange_Children::undo(), undo(), GNEChange_Crossing::undo(), GNEChange_DemandElement::undo(), GNEChange_Edge::undo(), GNEChange_EnableAttribute::undo(), GNEChange_Junction::undo(), GNEChange_Lane::undo(), GNEChange_Shape::undo(), GNEChange_TLS::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 84 of file GNEChange_Connection.h.