![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Connection.h>
Public Member Functions | |
GNEChange_Connection (GNEEdge *edge, int fromLane, const std::string &toEdgeID, int toLane, bool mayDefinitelyPass, bool forward) | |
Constructor for creating/deleting an edge. 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 | |
bool | myPass |
whether this connection never yields More... | |
GNEEdge * | myEdge |
int | myFromLane |
the lane from which the connection originates More... | |
const std::string | myToEdgeID |
the id of the target edge More... | |
int | myToLane |
the target lane of the connection More... | |
A network change in which a single lane is created or deleted
Definition at line 50 of file GNEChange_Connection.h.
GNEChange_Connection::GNEChange_Connection | ( | GNEEdge * | edge, |
int | fromLane, | ||
const std::string & | toEdgeID, | ||
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 |
redo action
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 |
get Redo name
Reimplemented from GNEChange.
Definition at line 99 of file GNEChange_Connection.cpp.
References GNEChange::myForward.
|
virtualinherited |
return actual size
Definition at line 57 of file GNEChange.cpp.
|
virtual |
undo action
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 |
return undoName
Reimplemented from GNEChange.
Definition at line 90 of file GNEChange_Connection.cpp.
References GNEChange::myForward.
|
private |
Definition at line 88 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 87 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Lane::redo(), redo(), GNEChange_Edge::redo(), GNEChange_Selection::redoName(), GNEChange_Junction::redoName(), GNEChange_Additional::redoName(), GNEChange_TLS::redoName(), redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Selection::undo(), GNEChange_Additional::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), GNEChange_Selection::undoName(), GNEChange_Junction::undoName(), GNEChange_Additional::undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), undoName(), and GNEChange_Edge::undoName().
|
private |
the lane from which the connection originates
Definition at line 91 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 82 of file GNEChange.h.
Referenced by GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().
|
private |
whether this connection never yields
Definition at line 101 of file GNEChange_Connection.h.
|
private |
the id of the target edge
Definition at line 94 of file GNEChange_Connection.h.
|
private |
the target lane of the connection
Definition at line 97 of file GNEChange_Connection.h.