99 virtual int size()
const;
131 junction->addChildElement(element);
134 edge->addChildElement(element);
137 lane->addChildElement(element);
140 additional->addChildElement(element);
143 demandElement->addChildElement(element);
146 genericData->addChildElement(element);
150 junction->addParentElement(element);
153 edge->addParentElement(element);
156 lane->addParentElement(element);
159 additional->addParentElement(element);
162 demandElement->addParentElement(element);
165 genericData->addParentElement(element);
174 junction->removeChildElement(element);
177 edge->removeChildElement(element);
180 lane->removeChildElement(element);
183 additional->removeChildElement(element);
186 demandElement->removeChildElement(element);
189 genericData->removeChildElement(element);
193 junction->removeParentElement(element);
196 edge->removeParentElement(element);
199 lane->removeParentElement(element);
202 additional->removeParentElement(element);
205 demandElement->removeParentElement(element);
208 genericData->removeParentElement(element);
Supermode
@brie enum for supermodes
An Element which don't belong to GNENet but has influence in the simulation.
the function-object for an editing operation (abstract base)
virtual void redo()=0
redo action/operation
std::map< GNEHierarchicalElement *, GNEHierarchicalContainer > myHierarchicalContainers
map with hierarchical container of all parent and children elements
virtual int size() const
Return the size of the command group.
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
virtual void undo()=0
undo action/operation
Supermode getSupermode() const
get supermode
GNEChange(const GNEChange &)=delete
Invalidated copy constructor.
GNEChange()
FOX need this.
bool mergeWith(GNEChange *command)
Called by the undo system to try and merge the new incoming command with this command; should return ...
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)
GNEChange & operator=(const GNEChange &)=delete
Invalidated assignment operator.
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children (only use in redo() function)
const Supermode mySupermode
supermode related with this change
virtual std::string redoName() const =0
return rendoName
virtual std::string undoName() const =0
return undoName
void restoreHierarchicalContainers()
restore container (only use in undo() function)
const GNEHierarchicalContainer myOriginalHierarchicalContainer
Hierarchical container with parent and children.
bool canMerge() const
Return TRUE if this command can be merged with previous undo commands. This is useful to combine e....
An Element which don't belong to GNENet but has influence in the simulation.
An Element which don't belong to GNENet but has influence in the simulation.
A road/street connecting two junctions (netedit-version)
An Element which don't belong to GNENet but has influence in the simulation.
Hierarchical container (used for keep myParent and myChildren.
const T & getChildren() const
get children
const T & getParents() const
get parents
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
A NBNetBuilder extended by visualisation and editing capabilities.