![]() |
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... | |
GNEDetectorE3 * | myE3Parent |
pointer to E3 parent (used by Entry/exits) 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... | |
std::vector< GNEDetectorEntry * > | myEntryChilds |
list of Entry detectors child (used by E3 Detector) More... | |
std::vector< GNEDetectorExit * > | myExitChilds |
list of Exit detectors child used (used by E3 Detector) More... | |
GNELane * | myLaneParent |
pointer to lane (used by additionals with lane parent) More... | |
A network change in which a additional element is created or deleted
Definition at line 55 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 54 of file GNEChange_Additional.cpp.
References GNEDetectorE3::myGNEDetectorEntrys, GNEDetectorE3::myGNEDetectorExits, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, and SUMO_TAG_REROUTER.
GNEChange_Additional::~GNEChange_Additional | ( | ) |
Destructor.
Definition at line 87 of file GNEChange_Additional.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::isTestingModeEnabled(), myAdditional, GNEChange::myNet, toString(), GNEReferenceCounter::unreferenced(), and WRITE_WARNING.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 209 of file GNEChange_Additional.cpp.
References GNELane::addAdditionalChild(), GNEEdge::addAdditionalChild(), GNEDetectorE3::addEntryChild(), GNEDetectorE3::addExitChild(), GNENet::deleteAdditional(), GNEAdditional::getEdge(), GNEAttributeCarrier::getID(), GNEAdditional::getLane(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNENet::insertAdditional(), GNEViewNet::isTestingModeEnabled(), myAdditional, myE3Parent, myEdgeChilds, myEdgeParent, myEntryChilds, myExitChilds, GNEChange::myForward, myLaneParent, GNEChange::myNet, GNELane::removeAdditionalChild(), GNEEdge::removeAdditionalChild(), GNEDetectorE3::removeEntryChild(), GNEDetectorE3::removeExitChild(), SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, SUMO_TAG_REROUTER, toString(), GNEDetectorE3::updateGeometry(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 326 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTag(), myAdditional, GNEChange::myForward, and toString().
|
virtualinherited |
return actual size
Definition at line 53 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 101 of file GNEChange_Additional.cpp.
References GNELane::addAdditionalChild(), GNEEdge::addAdditionalChild(), GNEDetectorE3::addEntryChild(), GNEDetectorE3::addExitChild(), GNENet::deleteAdditional(), GNEAdditional::getEdge(), GNEAttributeCarrier::getID(), GNEAdditional::getLane(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNENet::insertAdditional(), GNEViewNet::isTestingModeEnabled(), myAdditional, myE3Parent, myEdgeChilds, myEdgeParent, myEntryChilds, myExitChilds, GNEChange::myForward, myLaneParent, GNEChange::myNet, GNELane::removeAdditionalChild(), GNEEdge::removeAdditionalChild(), GNEDetectorE3::removeEntryChild(), GNEDetectorE3::removeExitChild(), SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, SUMO_TAG_REROUTER, toString(), GNEDetectorE3::updateGeometry(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 316 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 87 of file GNEChange_Additional.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Additional().
|
private |
pointer to E3 parent (used by Entry/exits)
Definition at line 96 of file GNEChange_Additional.h.
|
private |
list of Edge childs (used by Rerouters)
Definition at line 105 of file GNEChange_Additional.h.
|
private |
pointer to edge (used by additionals with edge parent)
Definition at line 93 of file GNEChange_Additional.h.
|
private |
list of Entry detectors child (used by E3 Detector)
Definition at line 99 of file GNEChange_Additional.h.
|
private |
list of Exit detectors child used (used by E3 Detector)
Definition at line 102 of file GNEChange_Additional.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(), redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Selection::undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::undoName(), undoName(), GNEChange_Edge::undoName(), and GNEChange_Crossing::undoName().
|
private |
pointer to lane (used by additionals with lane parent)
Definition at line 90 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 82 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Selection::redo(), GNEChange_Lane::redo(), redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_Lane::undo(), undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), ~GNEChange_Additional(), GNEChange_Lane::~GNEChange_Lane(), and GNEChange_TLS::~GNEChange_TLS().