![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Connection.h>
Public Member Functions | |
GNEChange_Connection (GNEEdge *edge, unsigned int fromLane, const std::string &toEdgeID, unsigned int toLane, bool mayDefinitelyPass, bool forward) | |
Constructor for creating/deleting an edge. More... | |
void | redo () |
FXString | redoName () const |
virtual FXuint | size () const |
void | undo () |
FXString | undoName () const |
~GNEChange_Connection () | |
Destructor. 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 lane that is to be created/deleted we assume shared responsibility for the pointers (via reference counting) More... | |
unsigned int | myFromLane |
bool | myPass |
const std::string | myToEdgeID |
unsigned int | myToLane |
A network change in which a single lane is created or deleted
Definition at line 49 of file GNEChange_Connection.h.
GNEChange_Connection::GNEChange_Connection | ( | GNEEdge * | edge, |
unsigned int | fromLane, | ||
const std::string & | toEdgeID, | ||
unsigned int | toLane, | ||
bool | mayDefinitelyPass, | ||
bool | forward | ||
) |
Constructor for creating/deleting an edge.
[in] | edge | The edge on which to apply changes |
[in] | lane | The lane to be deleted or 0 if a lane should be created |
[in] | laneAttrs | The attributes of the lane to be created/deleted |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 50 of file GNEChange_Connection.cpp.
GNEChange_Connection::~GNEChange_Connection | ( | ) |
Destructor.
Definition at line 63 of file GNEChange_Connection.cpp.
References GNEReferenceCounter::decRef(), myEdge, and GNEReferenceCounter::unreferenced().
|
virtual |
Reimplemented from GNEChange.
Definition at line 81 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), myEdge, GNEChange::myForward, myFromLane, myPass, myToEdgeID, myToLane, and GNEEdge::removeConnection().
|
virtual |
Reimplemented from GNEChange.
Definition at line 99 of file GNEChange_Connection.cpp.
References GNEChange::myForward.
|
inlinevirtualinherited |
Definition at line 62 of file GNEChange.h.
|
virtual |
Reimplemented from GNEChange.
Definition at line 72 of file GNEChange_Connection.cpp.
References GNEEdge::addConnection(), myEdge, GNEChange::myForward, myFromLane, myPass, myToEdgeID, myToLane, and GNEEdge::removeConnection().
|
virtual |
Reimplemented from GNEChange.
Definition at line 90 of file GNEChange_Connection.cpp.
References GNEChange::myForward.
|
private |
full information regarding the lane that is to be created/deleted we assume shared responsibility for the pointers (via reference counting)
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 86 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Lane::redo(), redo(), GNEChange_Selection::redoName(), GNEChange_Edge::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), GNEChange_Lane::redoName(), redoName(), GNEChange_Selection::undo(), GNEChange_Junction::undo(), GNEChange_Edge::undo(), GNEChange_TLS::undo(), GNEChange_Lane::undo(), undo(), GNEChange_Selection::undoName(), GNEChange_Edge::undoName(), GNEChange_Junction::undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), and undoName().
|
private |
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 73 of file GNEChange.h.
Referenced by GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange::redo(), GNEChange_Junction::undo(), and GNEChange_Edge::undo().
|
private |
Definition at line 90 of file GNEChange_Connection.h.
|
private |
Definition at line 84 of file GNEChange_Connection.h.
|
private |
Definition at line 87 of file GNEChange_Connection.h.