![]() |
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 * > & | myChildAdditionals |
reference to vector of child additional More... | |
const std::vector< GNEDemandElement * > & | myChildDemandElements |
reference to vector of child demand elements More... | |
const std::vector< GNEEdge * > & | myChildEdges |
reference to vector of child edges More... | |
const std::vector< GNELane * > & | myChildLanes |
reference to vector of child lanes More... | |
const std::vector< GNEShape * > & | myChildShapes |
reference to vector of child shapes More... | |
const std::vector< GNEAdditional * > & | myParentAdditionals |
reference to vector of parent additionals More... | |
const std::vector< GNEDemandElement * > & | myParentDemandElements |
reference to vector of parent demand elements More... | |
const std::vector< GNEEdge * > & | myParentEdges |
reference to vector of parent edges More... | |
const std::vector< GNELane * > & | myParentLanes |
reference to vector of parent lanes More... | |
const std::vector< GNEShape * > & | myParentShapes |
reference to vector of parent shapes More... | |
GNEShape * | myShape |
pointer to shape More... | |
A network change in which a single poly is created or deleted
Definition at line 42 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 40 of file GNEChange_Shape.cpp.
GNEChange_Shape::~GNEChange_Shape | ( | ) |
Destructor.
Definition at line 57 of file GNEChange_Shape.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myChildAdditionals, myChildDemandElements, myChildEdges, myChildLanes, myChildShapes, GNEChange::myNet, myParentAdditionals, myParentDemandElements, myParentEdges, myParentLanes, myParentShapes, ShapeContainer::myPOIs, ShapeContainer::myPolygons, myShape, NamedObjectCont< T >::remove(), GNENet::removeGLObjectFromGrid(), GNENet::retrievePOI(), GNENet::retrievePolygon(), GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 231 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertShape(), myChildAdditionals, myChildDemandElements, myChildEdges, myChildLanes, myChildShapes, GNEChange::myForward, GNEChange::myNet, myParentAdditionals, myParentDemandElements, myParentEdges, myParentLanes, myParentShapes, myShape, GNENet::removeShape(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 321 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getTagStr(), GNEChange::myForward, and myShape.
|
virtualinherited |
return actual size
Definition at line 44 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 151 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertShape(), myChildAdditionals, myChildDemandElements, myChildEdges, myChildLanes, myChildShapes, GNEChange::myForward, GNEChange::myNet, myParentAdditionals, myParentDemandElements, myParentEdges, myParentLanes, myParentShapes, myShape, GNENet::removeShape(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 311 of file GNEChange_Shape.cpp.
References GNEAttributeCarrier::getTagStr(), GNEChange::myForward, and myShape.
|
private |
reference to vector of child additional
Definition at line 99 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of child demand elements
Definition at line 102 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of child edges
Definition at line 90 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of child lanes
Definition at line 93 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of child shapes
Definition at line 96 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 80 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().
|
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_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 |
reference to vector of parent additionals
Definition at line 84 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of parent demand elements
Definition at line 87 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of parent edges
Definition at line 75 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of parent lanes
Definition at line 78 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
reference to vector of parent shapes
Definition at line 81 of file GNEChange_Shape.h.
Referenced by redo(), undo(), and ~GNEChange_Shape().
|
private |
pointer to shape
Definition at line 72 of file GNEChange_Shape.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Shape().