 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
47 myLaneAttrs(laneAttrs),
48 myRecomputeConnections(recomputeConnections) {
50 myEdge->incRef(
"GNEChange_Lane");
53 myLane->incRef(
"GNEChange_Lane");
55 myParentShapes = myLane->getParentShapes();
56 myParentAdditionals = myLane->getParentAdditionals();
57 myParentDemandElements = myLane->getParentDemandElements();
58 myChildShapes = myLane->getChildShapes();
59 myChildAdditionals = myLane->getChildAdditionals();
60 myChildDemandElements = myLane->getChildDemandElements();
99 i->removeChildLane(
myLane);
102 i->removeChildLane(
myLane);
105 i->removeChildLane(
myLane);
109 i->removeParentLane(
myLane);
112 i->removeParentLane(
myLane);
115 i->removeParentLane(
myLane);
193 i->removeChildLane(
myLane);
196 i->removeChildLane(
myLane);
199 i->removeChildLane(
myLane);
203 i->removeParentLane(
myLane);
206 i->removeParentLane(
myLane);
209 i->removeParentLane(
myLane);
void requireSaveNet(bool value)
inform that net has to be saved
std::vector< GNEAdditional * > myChildAdditionals
vector of child additional
void addLane(GNELane *lane, const NBEdge::Lane &laneAttrs, bool recomputeConnections)
increase number of lanes by one use the given attributes and restore the GNELane
bool unreferenced()
check if object ins't referenced
const std::string getID() const
function to support debugging
~GNEChange_Lane()
Destructor.
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
std::vector< GNEShape * > myChildShapes
vector of child shapes
begin/end of the description of a single lane
void removeLane(GNELane *lane, bool recomputeConnections)
@briefdecrease the number of lanes by one. argument is only used to increase robustness (assertions)
FXString redoName() const
get Redo name
The representation of a single edge during network building.
const NBEdge::Lane myLaneAttrs
we need to preserve the attributes explicitly because they are not contained withing GNELane itself
A road/street connecting two junctions (netedit-version)
begin/end of the description of an edge
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.
GNELane * myLane
we need to preserve the lane because it maybe the target of GNEChange_Attribute commands
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
std::vector< GNEDemandElement * > myChildDemandElements
vector of child demand elements
FXString undoName() const
return undoName
C++ TraCI client API implementation.
const std::string & getTagStr() const
get tag assigned to this object in string format
GNEEdge * myEdge
we need the edge because it is the target of our change commands
std::vector< GNEShape * > myParentShapes
vector of parent shapes
bool myRecomputeConnections
@bried whether to recompute connection when adding a new lane
the function-object for an editing operation (abstract base)
std::vector< GNEAdditional * > myParentAdditionals
vector of parent additionals
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
std::vector< GNEDemandElement * > myParentDemandElements
vector of parent demand elements