![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Crossing.h>
Public Member Functions | |
GNEChange_Crossing (GNEJunction *junctionParent, const std::vector< NBEdge *> &edges, double width, bool priority, bool forward) | |
Constructor for creating/deleting an crossing. More... | |
virtual FXuint | size () const |
return actual size More... | |
~GNEChange_Crossing () | |
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 | |
std::vector< NBEdge * > | myEdges |
vector to save all edges of GNECrossing More... | |
GNEJunction * | myJunctionParent |
full information regarding the Junction in which GNECRossing is created More... | |
bool | myPriority |
priority of GNECrossing More... | |
double | myWidth |
width of GNECrossing More... | |
A network change in which a single crossing is created or deleted
Definition at line 53 of file GNEChange_Crossing.h.
GNEChange_Crossing::GNEChange_Crossing | ( | GNEJunction * | junctionParent, |
const std::vector< NBEdge *> & | edges, | ||
double | width, | ||
bool | priority, | ||
bool | forward | ||
) |
Constructor for creating/deleting an crossing.
constructor for creating an crossing
[in] | JunctionParent | GNEJunction in which the crossing will be created/deleted |
[in] | edges | vector of edges of crossing |
[in] | width | value with the width of crossing |
[in] | priority | boolean with the priority of crossing |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 50 of file GNEChange_Crossing.cpp.
GNEChange_Crossing::~GNEChange_Crossing | ( | ) |
Destructor.
Definition at line 60 of file GNEChange_Crossing.cpp.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 88 of file GNEChange_Crossing.cpp.
References NBNode::addCrossing(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNENetElement::getNet(), GNENet::getViewNet(), GNEViewNet::isTestingModeEnabled(), myEdges, GNEChange::myForward, myJunctionParent, GNEChange::myNet, myPriority, myWidth, NBNode::removeCrossing(), SUMO_TAG_CROSSING, toString(), GNEJunction::updateGeometry(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 124 of file GNEChange_Crossing.cpp.
References GNEChange::myForward, SUMO_TAG_CROSSING, and toString().
|
virtualinherited |
return actual size
Definition at line 53 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 63 of file GNEChange_Crossing.cpp.
References NBNode::addCrossing(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNENetElement::getNet(), GNENet::getViewNet(), GNEViewNet::isTestingModeEnabled(), myEdges, GNEChange::myForward, myJunctionParent, GNEChange::myNet, myPriority, myWidth, NBNode::removeCrossing(), SUMO_TAG_CROSSING, toString(), GNEJunction::updateGeometry(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 114 of file GNEChange_Crossing.cpp.
References GNEChange::myForward, SUMO_TAG_CROSSING, and toString().
|
private |
vector to save all edges of GNECrossing
Definition at line 90 of file GNEChange_Crossing.h.
|
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_Junction::redo(), GNEChange_Selection::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), redo(), GNEChange_Junction::redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Additional::redoName(), GNEChange_Edge::redoName(), redoName(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), undo(), GNEChange_Junction::undoName(), GNEChange_Selection::undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::undoName(), GNEChange_Additional::undoName(), GNEChange_Edge::undoName(), and undoName().
|
private |
full information regarding the Junction in which GNECRossing is created
Definition at line 87 of file GNEChange_Crossing.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_Junction::redo(), GNEChange_Selection::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), redo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Lane::~GNEChange_Lane(), and GNEChange_TLS::~GNEChange_TLS().
|
private |
priority of GNECrossing
Definition at line 96 of file GNEChange_Crossing.h.
|
private |
width of GNECrossing
Definition at line 93 of file GNEChange_Crossing.h.