![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Crossing.h>


Public Member Functions | |
| GNEChange_Crossing (GNEJunction *junctionParent, const std::vector< NBEdge * > &edges, SUMOReal 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... | |
| SUMOReal | 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, | ||
| SUMOReal | 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 52 of file GNEChange_Crossing.cpp.
| GNEChange_Crossing::~GNEChange_Crossing | ( | ) |
Destructor.
Definition at line 62 of file GNEChange_Crossing.cpp.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 82 of file GNEChange_Crossing.cpp.
References NBNode::addCrossing(), GNEJunction::getNBNode(), GNENet::getViewNet(), myEdges, GNEChange::myForward, myJunctionParent, GNEChange::myNet, myPriority, myWidth, NBNode::removeCrossing(), and GNEJunction::updateGeometry().
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 110 of file GNEChange_Crossing.cpp.
References GNEChange::myForward, SUMO_TAG_CROSSING, and toString().
|
virtualinherited |
return actual size
Definition at line 57 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 65 of file GNEChange_Crossing.cpp.
References NBNode::addCrossing(), GNEJunction::getNBNode(), GNENet::getViewNet(), myEdges, GNEChange::myForward, myJunctionParent, GNEChange::myNet, myPriority, myWidth, NBNode::removeCrossing(), and GNEJunction::updateGeometry().
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 100 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_Additional::redo(), GNEChange_Lane::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), redo(), GNEChange_Junction::redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Additional::redoName(), GNEChange_Lane::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_Additional::undoName(), GNEChange_Lane::undoName(), GNEChange_Connection::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_Additional::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), redo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), and undo().
|
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.