54 myLaneAttrs(laneAttrs) {
56 myEdge->incRef(
"GNEChange_Lane");
59 myLane->incRef(
"GNEChange_Lane");
61 myAdditionalChilds = myLane->getAdditionalChilds();
void addLane(GNELane *lane, const NBEdge::Lane &laneAttrs)
increase number of lanes by one use the given attributes and restore the GNELane
const NBEdge::Lane myLaneAttrs
we need to preserve the attributes explicitly because they are not contained withing GNELane itself ...
~GNEChange_Lane()
Destructor.
the function-object for an editing operation (abstract base)
begin/end of the description of a single lane
FXString redoName() const
get Redo name
GNENet * getNet() const
get Net in which this element is placed
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.
#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 removeLane(GNELane *lane)
the number of lanes by one. argument is only used to increase robustness (assertions) ...
void decRef(const std::string &debugMsg="")
std::vector< GNEAdditional * > myAdditionalChilds
we need to preserve the list of additionals vinculated with this lane
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 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 insertAdditional(GNEAdditional *additional, bool hardFail=true)
Insert a additional element previously created in GNEAdditionalHandler.
GNEViewNet * getViewNet() const
get view net
SumoXMLTag getTag() const
get XML Tag assigned to this object