55 edge->incRef(
"GNEChange_Edge");
57 myAdditionalChilds = myEdge->getAdditionalChilds();
59 myGNERerouters = myEdge->getGNERerouters();
91 (*i)->removeEdgeChild(
myEdge);
106 (*i)->addEdgeChild(
myEdge);
127 (*i)->addEdgeChild(
myEdge);
142 (*i)->removeEdgeChild(
myEdge);
the function-object for an editing operation (abstract base)
GNENet * getNet() const
get Net in which this element is placed
void insertEdge(GNEEdge *edge)
inserts a single edge into the net and into the underlying netbuild-container
std::vector< GNEAdditional * > myAdditionalChilds
we need to preserve the list of additionals vinculated with this edge
FXString undoName() const
return undoName
#define WRITE_WARNING(msg)
bool isTestingModeEnabled() const
check if netedit is running in testing mode
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
begin/end of the description of an edge
A road/street connecting two junctions (netedit-version)
FXString redoName() const
get Redo name
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
void deleteAdditional(GNEAdditional *additional)
delete additional element previously inserted
void deleteSingleEdge(GNEEdge *edge)
deletes a single edge
std::vector< GNERerouter * > myGNERerouters
we need to preserve the list of rerouters in which this edge is a child
void insertAdditional(GNEAdditional *additional, bool hardFail=true)
Insert a additional element previously created in GNEAdditionalHandler.
~GNEChange_Edge()
Destructor.
GNEViewNet * getViewNet() const
get view net
SumoXMLTag getTag() const
get XML Tag assigned to this object