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


Public Member Functions | |
| GNEChange_Additional (GNEAdditional *additional, bool forward) | |
| Constructor for creating/deleting an additional element. More... | |
| virtual FXuint | size () const |
| return actual size More... | |
| ~GNEChange_Additional () | |
| 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 | |
| GNEAdditional * | myAdditional |
| full information regarding the additional element that is to be created/deleted More... | |
| std::vector< GNEEdge * > | myEdgeChilds |
| list of Edge childs (used by Rerouters) More... | |
| GNEEdge * | myEdgeParent |
| pointer to edge (used by additionals with edge parent) More... | |
| GNEAdditional * | myFirstAdditionalParent |
| pointer to first additional parent (used by additional with parents, for example Entry/exits) More... | |
| std::vector< GNELane * > | myLaneChilds |
| list of Edge childs (used by VSS) More... | |
| GNELane * | myLaneParent |
| pointer to lane (used by additionals with lane parent) More... | |
| GNEAdditional * | mySecondAdditionalParent |
| pointer to second additional parent (used by additional with parents, for example Entry/exits) More... | |
A network change in which a additional element is created or deleted
Definition at line 48 of file GNEChange_Additional.h.
| GNEChange_Additional::GNEChange_Additional | ( | GNEAdditional * | additional, |
| bool | forward | ||
| ) |
Constructor for creating/deleting an additional element.
| [in] | additional | The additional element to be created/deleted |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 49 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTagProperties(), SUMO_ATTR_EDGE, SUMO_ATTR_ID, SUMO_ATTR_LANE, and SUMO_TAG_VAPORIZER.
| GNEChange_Additional::~GNEChange_Additional | ( | ) |
Destructor.
Definition at line 75 of file GNEChange_Additional.cpp.
References GNEReferenceCounter::decRef(), GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), myAdditional, GNEChange::myNet, GNENet::retrieveAdditional(), toString(), GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 161 of file GNEChange_Additional.cpp.
References GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENet::deleteAdditional(), GNEInspectorFrame::getACHierarchy(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNENet::insertAdditional(), myAdditional, myEdgeChilds, myEdgeParent, myFirstAdditionalParent, GNEChange::myForward, myLaneChilds, myLaneParent, GNEChange::myNet, mySecondAdditionalParent, GNEFrame::ACHierarchy::refreshACHierarchy(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENet::requiereSaveAdditionals(), toString(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 241 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTag(), myAdditional, GNEChange::myForward, and toString().
|
virtualinherited |
return actual size
Definition at line 46 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 91 of file GNEChange_Additional.cpp.
References GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENet::deleteAdditional(), GNEInspectorFrame::getACHierarchy(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNENet::insertAdditional(), myAdditional, myEdgeChilds, myEdgeParent, myFirstAdditionalParent, GNEChange::myForward, myLaneChilds, myLaneParent, GNEChange::myNet, mySecondAdditionalParent, GNEFrame::ACHierarchy::refreshACHierarchy(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENet::requiereSaveAdditionals(), toString(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 231 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTag(), myAdditional, GNEChange::myForward, and toString().
|
private |
full information regarding the additional element that is to be created/deleted
Definition at line 80 of file GNEChange_Additional.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Additional().
|
private |
list of Edge childs (used by Rerouters)
Definition at line 95 of file GNEChange_Additional.h.
|
private |
pointer to edge (used by additionals with edge parent)
Definition at line 86 of file GNEChange_Additional.h.
|
private |
pointer to first additional parent (used by additional with parents, for example Entry/exits)
Definition at line 89 of file GNEChange_Additional.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_TLS::redo(), redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), GNEChange_Shape::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), undoName(), GNEChange_Connection::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::undoName(), and GNEChange_Crossing::undoName().
|
private |
list of Edge childs (used by VSS)
Definition at line 98 of file GNEChange_Additional.h.
|
private |
pointer to lane (used by additionals with lane parent)
Definition at line 83 of file GNEChange_Additional.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_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), ~GNEChange_Additional(), GNEChange_Crossing::~GNEChange_Crossing(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
pointer to second additional parent (used by additional with parents, for example Entry/exits)
Definition at line 92 of file GNEChange_Additional.h.