 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
46 myEdgeParentShapes(edge->getParentShapes()),
47 myEdgeParentAdditionals(edge->getParentAdditionals()),
48 myEdgeParentDemandElements(edge->getParentDemandElements()),
49 myChildEdgeShapes(edge->getChildShapes()),
50 myChildEdgeAdditionals(edge->getChildAdditionals()),
51 myChildEdgeDemandElements(edge->getChildDemandElements()) {
53 for (
const auto& i : edge->getLanes()) {
54 myLaneParentShapes.push_back(i->getParentShapes());
55 myLaneParentAdditionals.push_back(i->getParentAdditionals());
56 myLaneParentDemandElements.push_back(i->getParentDemandElements());
57 myChildLaneShapes.push_back(i->getChildShapes());
58 myChildLaneAdditionals.push_back(i->getChildAdditionals());
59 myChildLaneDemandElements.push_back(i->getChildDemandElements());
62 edge->incRef(
"GNEChange_Edge");
84 i->removeChildEdge(
myEdge);
87 i->removeChildEdge(
myEdge);
90 i->removeChildEdge(
myEdge);
94 i->removeParentEdge(
myEdge);
97 i->removeParentEdge(
myEdge);
100 i->removeParentEdge(
myEdge);
236 i->removeChildEdge(
myEdge);
239 i->removeChildEdge(
myEdge);
242 i->removeChildEdge(
myEdge);
246 i->removeParentEdge(
myEdge);
249 i->removeParentEdge(
myEdge);
252 i->removeParentEdge(
myEdge);
void requireSaveNet(bool value)
inform that net has to be saved
bool unreferenced()
check if object ins't referenced
const std::vector< GNEDemandElement * > & myChildEdgeDemandElements
vector of references to vector of child demand elements (used by lanes)
const std::string getID() const
function to support debugging
const std::vector< GNEShape * > & myEdgeParentShapes
reference to vector of parent shapes
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
void insertEdge(GNEEdge *edge)
inserts a single edge into the net and into the underlying netbuild-container
std::vector< std::vector< GNEShape * > > myLaneParentShapes
vector of references to vector of parent shapes (used by lanes)
void deleteSingleEdge(GNEEdge *edge, bool updateViewAfterDeleting)
deletes a single edge
std::vector< std::vector< GNEShape * > > myChildLaneShapes
vector of references to vector of child shapes (used by lanes)
FXString undoName() const
return undoName
A road/street connecting two junctions (netedit-version)
std::vector< std::vector< GNEAdditional * > > myLaneParentAdditionals
vector of references to vector of parent additionals (used by lanes)
begin/end of the description of an edge
std::vector< std::vector< GNEDemandElement * > > myLaneParentDemandElements
vector of references to vector of parent demand elements (used by lanes)
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
void decRef(const std::string &debugMsg="")
Decrease reference.
const std::vector< GNELane * > & getLanes() const
returns a reference to the lane vector
std::vector< std::vector< GNEAdditional * > > myChildLaneAdditionals
vector of references to vector of child additional (used by lanes)
const std::vector< GNEAdditional * > & myEdgeParentAdditionals
reference to vector of parent additionals
std::vector< std::vector< GNEDemandElement * > > myChildLaneDemandElements
vector of references to vector of child demand elements (used by lanes)
FXString redoName() const
get Redo name
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
root element of a network file
const std::vector< GNEShape * > & myChildEdgeShapes
reference to vector of child shapes
const std::string & getTagStr() const
get tag assigned to this object in string format
const std::vector< GNEAdditional * > & myChildEdgeAdditionals
reference to vector of child additional
the function-object for an editing operation (abstract base)
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted
~GNEChange_Edge()
Destructor.
const std::vector< GNEDemandElement * > & myEdgeParentDemandElements
reference to vector of parent demand elements