43 edge->incRef(
"GNEChange_Edge");
45 for (
const auto& lane : edge->getLanes()) {
46 myLaneParentAdditionals.push_back(lane->getParentAdditionals());
47 myLaneParentDemandElements.push_back(lane->getParentDemandElements());
48 myLaneParentGenericData.push_back(lane->getParentGenericDatas());
49 myChildLaneAdditionals.push_back(lane->getChildAdditionals());
50 myChildLaneDemandElements.push_back(lane->getChildDemandElements());
51 myChildLaneGenericData.push_back(lane->getChildGenericDatas());
Supermode
@brie enum for supermodes
@ NETWORK
Network mode (Edges, junctions, etc..)
@ SUMO_TAG_NET
root element of a network file
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
bool isUndoRedoAllowed() const
const std::string getID() const
get ID (all Attribute Carriers have one)
void selectAttributeCarrier()
select attribute carrier using GUIGlobalSelection
void unselectAttributeCarrier()
unselect attribute carrier using GUIGlobalSelection
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * getNet() const
get pointer to net
std::string redoName() const
get Redo name
void addEdgeLanes()
add given lane into parents and children
std::vector< std::vector< GNEDemandElement * > > myLaneParentDemandElements
vector of references to vector of parent demand elements (used by edge lanes)
void removeEdgeLanes()
remove given lane from parents and children
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted
std::vector< std::vector< GNEAdditional * > > myLaneParentAdditionals
vector of references to vector of parent additionals (used by edge lanes)
~GNEChange_Edge()
Destructor.
std::vector< std::vector< GNEGenericData * > > myChildLaneGenericData
vector of references to vector of child generic datas (used by edge lanes)
std::vector< std::vector< GNEDemandElement * > > myChildLaneDemandElements
vector of references to vector of child demand elements (used by edge lanes)
std::vector< std::vector< GNEGenericData * > > myLaneParentGenericData
vector of references to vector of parent generic datas (used by edge lanes)
std::vector< std::vector< GNEAdditional * > > myChildLaneAdditionals
vector of references to vector of child additional (used by edge lanes)
std::string undoName() const
return undoName
the function-object for an editing operation (abstract base)
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
const bool mySelectedElement
flag for check if element is selected
void addElementInParentsAndChildren(T *element)
add given element into parents and children (only use in redo() function)
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children (only use in redo() function)
void restoreHierarchicalContainers()
restore container (only use in undo() function)
A road/street connecting two junctions (netedit-version)
const std::vector< GNELane * > & getLanes() const
returns a reference to the lane vector
void deleteSingleEdge(GNEEdge *edge)
delete edge from container
void insertEdge(GNEEdge *edge)
void requireSaveNetwork()
inform that network has to be saved
GNENetHelper::SavingStatus * getSavingStatus() const
get saving status
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEViewNet * getViewNet() const
get view net
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced
GNEViewParent * getViewParent() const
get the net object
GNEApplicationWindow * getGNEAppWindows() const
get GNE Application Windows