48 myLaneAttrs(laneAttrs),
49 myRecomputeConnections(recomputeConnections) {
51 myEdge->incRef(
"GNEChange_Lane");
54 myLane->incRef(
"GNEChange_Lane");
56 myShapeParents = myLane->getShapeParents();
57 myAdditionalParents = myLane->getAdditionalParents();
58 myDemandElementParents = myLane->getDemandElementParents();
59 myShapeChildren = myLane->getShapeChildren();
60 myAdditionalChildren = myLane->getAdditionalChildren();
61 myDemandElementChildren = myLane->getDemandElementChildren();
100 i->removeLaneChild(
myLane);
103 i->removeLaneChild(
myLane);
106 i->removeLaneChild(
myLane);
110 i->removeLaneParent(
myLane);
113 i->removeLaneParent(
myLane);
116 i->removeLaneParent(
myLane);
194 i->removeLaneChild(
myLane);
197 i->removeLaneChild(
myLane);
200 i->removeLaneChild(
myLane);
204 i->removeLaneParent(
myLane);
207 i->removeLaneParent(
myLane);
210 i->removeLaneParent(
myLane);
const NBEdge::Lane myLaneAttrs
we need to preserve the attributes explicitly because they are not contained withing GNELane itself ...
~GNEChange_Lane()
Destructor.
std::vector< GNEShape * > myShapeParents
vector of shape parents
the function-object for an editing operation (abstract base)
void addLane(GNELane *lane, const NBEdge::Lane &laneAttrs, bool recomputeConnections)
increase number of lanes by one use the given attributes and restore the GNELane
begin/end of the description of a single lane
FXString redoName() const
get Redo name
FXString undoName() const
return undoName
The representation of a single edge during network building.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
std::vector< GNEAdditional * > myAdditionalChildren
vector of additional children
std::vector< GNEAdditional * > myAdditionalParents
vector of additional parents
void removeLane(GNELane *lane, bool recomputeConnections)
the number of lanes by one. argument is only used to increase robustness (assertions) ...
std::vector< GNEShape * > myShapeChildren
vector of shape children
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
C++ TraCI client API implementation.
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
Decrease reference.
begin/end of the description of an edge
A road/street connecting two junctions (netedit-version)
GNEEdge * myEdge
we need the edge because it is the target of our change commands
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
GNELane * myLane
we need to preserve the lane because it maybe the target of GNEChange_Attribute commands ...
bool myRecomputeConnections
whether to recompute connection when adding a new lane
std::vector< GNEDemandElement * > myDemandElementParents
vector of demand element parents
const std::string & getTagStr() const
get tag assigned to this object in string format
void requiereSaveNet(bool value)
inform that net has to be saved
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
std::vector< GNEDemandElement * > myDemandElementChildren
vector of demand element children
bool unreferenced()
check if object ins't referenced