43 GNEChange(additional->getViewNet()->getNet(), forward),
44 myAdditional(additional),
45 myEdgeParents(myAdditional->getEdgeParents()),
46 myLaneParents(myAdditional->getLaneParents()),
47 myShapeParents(myAdditional->getShapeParents()),
48 myAdditionalParents(myAdditional->getAdditionalParents()),
49 myDemandElementParents(myAdditional->getDemandElementParents()),
50 myEdgeChildren(myAdditional->getEdgeChildren()),
51 myLaneChildren(myAdditional->getLaneChildren()),
52 myShapeChildren(myAdditional->getShapeChildren()),
53 myAdditionalChildren(myAdditional->getAdditionalChildren()),
54 myDemandElementChildren(myAdditional->getDemandElementChildren()) {
55 myAdditional->incRef(
"GNEChange_Additional");
void insertAdditional(GNEAdditional *additional)
Insert a additional element int GNENet container.
const std::vector< GNEShape * > & myShapeParents
reference to vector of shape parents
the function-object for an editing operation (abstract base)
const std::vector< GNEDemandElement * > & myDemandElementChildren
reference to vector of demand element children
const std::vector< GNEEdge * > & myEdgeChildren
reference to vector of edge children
const std::vector< GNELane * > & myLaneParents
reference to vector of lane parents
FXString redoName() const
get Redo name
const std::vector< GNELane * > & myLaneChildren
reference to vector of lane children
const std::vector< GNEAdditional * > & myAdditionalChildren
reference to vector of additional children
~GNEChange_Additional()
Destructor.
const std::vector< GNEShape * > & myShapeChildren
reference to vector of shape children
FXString undoName() const
return undoName
GNEAdditional * myAdditional
full information regarding the additional element that is to be created/deleted
const std::vector< GNEEdge * > & myEdgeParents
reference to vector of edge parents
void deleteAdditional(GNEAdditional *additional, GNEUndoList *undoList)
remove additional
bool additionalExist(GNEAdditional *additional) const
return true if additional exist (use pointer instead ID)
void requiereSaveAdditionals(bool value)
inform that additionals has to be saved
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
Decrease reference.
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string & getTagStr() const
get tag assigned to this object in string format
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
const std::vector< GNEDemandElement * > & myDemandElementParents
reference to vector of demand element parents
const std::vector< GNEAdditional * > & myAdditionalParents
reference to vector of additional parents
bool unreferenced()
check if object ins't referenced