![]() |
Eclipse 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 | |
const std::vector< GNEAdditional * > & | myAdditionalChildren |
reference to vector of additional children More... | |
const std::vector< GNEAdditional * > & | myAdditionalParents |
reference to vector of additional parents More... | |
const std::vector< GNEDemandElement * > & | myDemandElementChildren |
reference to vector of demand element children More... | |
const std::vector< GNEDemandElement * > & | myDemandElementParents |
reference to vector of demand element parents More... | |
const std::vector< GNEEdge * > & | myEdgeChildren |
reference to vector of edge children More... | |
const std::vector< GNEEdge * > & | myEdgeParents |
reference to vector of edge parents More... | |
const std::vector< GNELane * > & | myLaneChildren |
reference to vector of lane children More... | |
const std::vector< GNELane * > & | myLaneParents |
reference to vector of lane parents More... | |
GNEShape * | myShape |
pointer to shape More... | |
const std::vector< GNEShape * > & | myShapeChildren |
reference to vector of shape children More... | |
const std::vector< GNEShape * > & | myShapeParents |
reference to vector of shape parents 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 41 of file GNEChange_Shape.cpp.
GNEChange_Shape::~GNEChange_Shape | ( | ) |
Destructor.
Definition at line 58 of file GNEChange_Shape.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myAdditionalChildren, myAdditionalParents, myDemandElementChildren, myDemandElementParents, myEdgeChildren, myEdgeParents, myLaneChildren, myLaneParents, GNEChange::myNet, ShapeContainer::myPOIs, ShapeContainer::myPolygons, myShape, myShapeChildren, myShapeParents, NamedObjectCont< T >::remove(), GNENet::removeGLObjectFromGrid(), GNENet::retrievePOI(), GNENet::retrievePolygon(), GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 232 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertShape(), myAdditionalChildren, myAdditionalParents, myDemandElementChildren, myDemandElementParents, myEdgeChildren, myEdgeParents, GNEChange::myForward, myLaneChildren, myLaneParents, GNEChange::myNet, myShape, myShapeChildren, myShapeParents, GNENet::removeShape(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 322 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getTagStr(), GNEChange::myForward, and myShape.
|
virtualinherited |
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 152 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertShape(), myAdditionalChildren, myAdditionalParents, myDemandElementChildren, myDemandElementParents, myEdgeChildren, myEdgeParents, GNEChange::myForward, myLaneChildren, myLaneParents, GNEChange::myNet, myShape, myShapeChildren, myShapeParents, GNENet::removeShape(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 312 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getTagStr(), GNEChange::myForward, and myShape.
|
private |
reference to vector of additional children
Definition at line 100 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of additional parents
Definition at line 85 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of demand element children
Definition at line 103 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of demand element parents
Definition at line 88 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of edge children
Definition at line 91 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of edge parents
Definition at line 76 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 81 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), 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(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_DemandElement::undoName(), GNEChange_Children::undoName(), GNEChange_Connection::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::undoName(), and GNEChange_Crossing::undoName().
|
private |
reference to vector of lane children
Definition at line 94 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of lane parents
Definition at line 79 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
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 76 of file GNEChange.h.
Referenced by GNEChange_Crossing::GNEChange_Crossing(), GNEChange_Junction::redo(), 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(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Junction::undo(), 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(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Crossing::~GNEChange_Crossing(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_EnableAttribute::~GNEChange_EnableAttribute(), 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().
|
private |
reference to vector of shape children
Definition at line 97 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of shape parents
Definition at line 82 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().