95 virtual int size()
const;
127 junction->addChildElement(element);
130 edge->addChildElement(element);
133 lane->addChildElement(element);
136 additional->addChildElement(element);
139 demandElement->addChildElement(element);
142 genericData->addChildElement(element);
146 junction->addParentElement(element);
149 edge->addParentElement(element);
152 lane->addParentElement(element);
155 additional->addParentElement(element);
158 demandElement->addParentElement(element);
161 genericData->addParentElement(element);
170 junction->removeChildElement(element);
173 edge->removeChildElement(element);
176 lane->removeChildElement(element);
179 additional->removeChildElement(element);
182 demandElement->removeChildElement(element);
185 genericData->removeChildElement(element);
189 junction->removeParentElement(element);
192 edge->removeParentElement(element);
195 lane->removeParentElement(element);
198 additional->removeParentElement(element);
201 demandElement->removeParentElement(element);
204 genericData->removeParentElement(element);
Supermode
@brie enum for supermodes
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 redoName
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.
Hierarchical container (used for keep myParent and myChildren.
const T & getChildren() const
get children
const T & getParents() const
get parents
An Element which don't belong to GNENet but has influence in the simulation.
A NBNetBuilder extended by visualisation and editing capabilities.