47 myLaneAttrs(laneAttrs),
48 myRecomputeConnections(recomputeConnections) {
50 myEdge->incRef(
"GNEChange_Lane");
53 myLane->incRef(
"GNEChange_Lane");
55 myAdditionalChilds = myLane->getAdditionalChilds();
57 myShapeChilds = myLane->getShapeChilds();
void insertAdditional(GNEAdditional *additional)
Insert a additional element int GNENet container.
const NBEdge::Lane myLaneAttrs
we need to preserve the attributes explicitly because they are not contained withing GNELane itself ...
~GNEChange_Lane()
Destructor.
GNEInspectorFrame * getInspectorFrame() const
get frame for GNE_MODE_INSPECT
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
void removeShape(GNEShape *shape)
remove created shape (but NOT delete)
GNEViewParent * getViewParent() const
get the net object
The representation of a single edge during network building.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void removeLane(GNELane *lane, bool recomputeConnections)
the number of lanes by one. argument is only used to increase robustness (assertions) ...
bool deleteAdditional(GNEAdditional *additional)
delete additional element of GNENet container
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
GNEFrame::ACHierarchy * getACHierarchy() const
get ACHierarchy
void refreshACHierarchy()
refresh ACHierarchy
C++ TraCI client API implementation.
std::vector< GNEShape * > myShapeChilds
we need to preserve the list of shapes vinculated with this lane
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
Decrease reference.
std::vector< GNEAdditional * > myAdditionalChilds
we need to preserve the list of additionals vinculated with this lane
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
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 ...
bool unreferenced()
check if object ins't referenced
GNEViewNet * getViewNet() const
get view net