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


Public Member Functions | |
| GNEChange_POI (GNENet *net, GNEPOI *POI, bool forward) | |
| Constructor. More... | |
| virtual FXuint | size () const |
| return actual size More... | |
| ~GNEChange_POI () | |
| 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 | |
| GNEPOI * | myPOI |
| pointer to POI More... | |
A network change in which a single POI is created or deleted
Definition at line 50 of file GNEChange_POI.h.
Constructor.
constructor for creating a POI
| [in] | net | net in which POIgon will be inserted |
| [in] | POI | The name of the POIgon |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 51 of file GNEChange_POI.cpp.
| GNEChange_POI::~GNEChange_POI | ( | ) |
Destructor.
Definition at line 59 of file GNEChange_POI.cpp.
References GNEReferenceCounter::decRef(), OptionsCont::getBool(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNEChange::myNet, myPOI, GNENet::removePOI(), SUMO_TAG_POI, toString(), GNEReferenceCounter::unreferenced(), WRITE_ERROR, and WRITE_WARNING.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 98 of file GNEChange_POI.cpp.
References GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNENet::insertPOIInView(), GNEChange::myForward, GNEChange::myNet, myPOI, GNENet::removePOIOfView(), GNENet::requiereSaveShapes(), SUMO_TAG_POI, toString(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 130 of file GNEChange_POI.cpp.
References GNEChange::myForward, SUMO_TAG_POI, and toString().
|
virtualinherited |
return actual size
Definition at line 53 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 76 of file GNEChange_POI.cpp.
References GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNENet::insertPOIInView(), GNEChange::myForward, GNEChange::myNet, myPOI, GNENet::removePOIOfView(), GNENet::requiereSaveShapes(), SUMO_TAG_POI, toString(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 120 of file GNEChange_POI.cpp.
References GNEChange::myForward, SUMO_TAG_POI, and toString().
|
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(), redo(), GNEChange_Poly::redo(), GNEChange_TLS::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), GNEChange_Poly::redoName(), GNEChange_Selection::redoName(), redoName(), GNEChange_TLS::redoName(), GNEChange_Lane::redoName(), GNEChange_Connection::redoName(), GNEChange_Additional::redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), undo(), GNEChange_Poly::undo(), GNEChange_TLS::undo(), GNEChange_Lane::undo(), GNEChange_Connection::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), undoName(), GNEChange_Selection::undoName(), GNEChange_Poly::undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), GNEChange_Connection::undoName(), GNEChange_Additional::undoName(), GNEChange_Edge::undoName(), and GNEChange_Crossing::undoName().
|
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_Poly::redo(), GNEChange_Selection::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), undo(), GNEChange_Poly::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Crossing::~GNEChange_Crossing(), ~GNEChange_POI(), and GNEChange_Poly::~GNEChange_Poly().
|
private |
pointer to POI
Definition at line 83 of file GNEChange_POI.h.
Referenced by redo(), undo(), and ~GNEChange_POI().