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


Public Member Functions | |
| GNEChange_Shape (GNEShape *shape, bool forward) | |
| Constructor. More... | |
| virtual FXuint | size () const |
| return actual size More... | |
| ~GNEChange_Shape () | |
| 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 | |
| GNEShape * | myShape |
| pointer to shape More... | |
A network change in which a single poly is created or deleted
Definition at line 43 of file GNEChange_Shape.h.
| GNEChange_Shape::GNEChange_Shape | ( | GNEShape * | shape, |
| bool | forward | ||
| ) |
Constructor.
| [in] | shape | the shape to be changed |
| [in] | forward | Whether to create/delete (true/false) |
Definition at line 43 of file GNEChange_Shape.cpp.
| GNEChange_Shape::~GNEChange_Shape | ( | ) |
Destructor.
Definition at line 51 of file GNEChange_Shape.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTag(), GNEChange::myNet, ShapeContainer::myPOIs, ShapeContainer::myPolygons, myShape, NamedObjectCont< T >::remove(), GNENet::removeGLObjectFromGrid(), GNENet::retrievePOI(), GNENet::retrievePolygon(), toString(), GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 95 of file GNEChange_Shape.cpp.
References GNEInspectorFrame::getACHierarchy(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNENet::insertShape(), GNEChange::myForward, GNEChange::myNet, myShape, GNEFrame::ACHierarchy::refreshACHierarchy(), GNENet::removeShape(), toString(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 125 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getTag(), GNEChange::myForward, myShape, and toString().
|
virtualinherited |
return actual size
Definition at line 46 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 75 of file GNEChange_Shape.cpp.
References GNEInspectorFrame::getACHierarchy(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::getTag(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNENet::insertShape(), GNEChange::myForward, GNEChange::myNet, myShape, GNEFrame::ACHierarchy::refreshACHierarchy(), GNENet::removeShape(), toString(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 115 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getTag(), GNEChange::myForward, myShape, and toString().
|
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(), redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Additional::redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), undoName(), GNEChange_Junction::undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Additional::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::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 75 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Crossing::~GNEChange_Crossing(), and ~GNEChange_Shape().
|
private |
pointer to shape
Definition at line 73 of file GNEChange_Shape.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Shape().