![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEChange_Crossing.h>
Public Member Functions | |
GNEChange_Crossing (GNEJunction *junctionParent, const NBNode::Crossing &crossing, bool forward) | |
Constructor for creating/deleting an crossing based on an existing object. More... | |
GNEChange_Crossing (GNEJunction *junctionParent, const std::vector< NBEdge * > &edges, double width, bool priority, int customTLIndex, int customTLIndex2, const PositionVector &customShape, bool selected, 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 | |
PositionVector | myCustomShape |
priority of GNECrossing More... | |
int | myCustomTLIndex |
custom index of GNECrossing More... | |
int | myCustomTLIndex2 |
custom index of GNECrossing (reverse direction) More... | |
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... | |
bool | mySelected |
flag to check if crossing is selected More... | |
double | myWidth |
width of GNECrossing More... | |
A network change in which a single crossing is created or deleted
Definition at line 48 of file GNEChange_Crossing.h.
GNEChange_Crossing::GNEChange_Crossing | ( | GNEJunction * | junctionParent, |
const std::vector< NBEdge * > & | edges, | ||
double | width, | ||
bool | priority, | ||
int | customTLIndex, | ||
int | customTLIndex2, | ||
const PositionVector & | customShape, | ||
bool | selected, | ||
bool | forward | ||
) |
Constructor for creating/deleting 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] | check | if in the moment of change connection was selected |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 41 of file GNEChange_Crossing.cpp.
GNEChange_Crossing::GNEChange_Crossing | ( | GNEJunction * | junctionParent, |
const NBNode::Crossing & | crossing, | ||
bool | forward | ||
) |
Constructor for creating/deleting an crossing based on an existing object.
Definition at line 56 of file GNEChange_Crossing.cpp.
References GNEChange::myNet.
GNEChange_Crossing::~GNEChange_Crossing | ( | ) |
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 117 of file GNEChange_Crossing.cpp.
References NBNode::addCrossing(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNENet::getNetBuilder(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), NBNetBuilder::haveNetworkCrossings(), myCustomShape, myCustomTLIndex, myCustomTLIndex2, myEdges, GNEChange::myForward, myJunctionParent, GNEChange::myNet, myPriority, mySelected, myWidth, GNENet::netHasGNECrossings(), GNEJunction::rebuildGNECrossings(), NBNode::removeCrossing(), GNENet::requireSaveNet(), GNEJunction::retrieveGNECrossing(), GNENetElement::selectAttributeCarrier(), NBNetBuilder::setHaveNetworkCrossings(), SUMO_TAG_CROSSING, toString(), GNEViewNet::update(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 170 of file GNEChange_Crossing.cpp.
References GNEChange::myForward, SUMO_TAG_CROSSING, and toString().
|
virtualinherited |
return actual size
Definition at line 44 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 75 of file GNEChange_Crossing.cpp.
References NBNode::addCrossing(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNENet::getNetBuilder(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), NBNetBuilder::haveNetworkCrossings(), myCustomShape, myCustomTLIndex, myCustomTLIndex2, myEdges, GNEChange::myForward, myJunctionParent, GNEChange::myNet, myPriority, mySelected, myWidth, GNENet::netHasGNECrossings(), GNEJunction::rebuildGNECrossings(), NBNode::removeCrossing(), GNENet::requireSaveNet(), GNEJunction::retrieveGNECrossing(), GNENetElement::selectAttributeCarrier(), NBNetBuilder::setHaveNetworkCrossings(), SUMO_TAG_CROSSING, toString(), GNEViewNet::update(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 160 of file GNEChange_Crossing.cpp.
References GNEChange::myForward, SUMO_TAG_CROSSING, and toString().
|
private |
priority of GNECrossing
Definition at line 106 of file GNEChange_Crossing.h.
|
private |
custom index of GNECrossing
Definition at line 100 of file GNEChange_Crossing.h.
|
private |
custom index of GNECrossing (reverse direction)
Definition at line 103 of file GNEChange_Crossing.h.
|
private |
vector to save all edges of GNECrossing
Definition at line 91 of file GNEChange_Crossing.h.
|
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_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_DemandElement::redoName(), GNEChange_Children::redoName(), GNEChange_Connection::redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), redoName(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_DemandElement::undoName(), GNEChange_Children::undoName(), GNEChange_Connection::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::undoName(), and undoName().
|
private |
full information regarding the Junction in which GNECRossing is created
Definition at line 88 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 75 of file GNEChange.h.
Referenced by GNEChange_Crossing(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Children::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), redo(), GNEChange_Attribute::redo(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), GNEChange_EnableAttribute::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), undo(), GNEChange_Attribute::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), ~GNEChange_Crossing(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_EnableAttribute::~GNEChange_EnableAttribute(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
priority of GNECrossing
Definition at line 97 of file GNEChange_Crossing.h.
|
private |
flag to check if crossing is selected
Definition at line 109 of file GNEChange_Crossing.h.
|
private |
width of GNECrossing
Definition at line 94 of file GNEChange_Crossing.h.