28FXIMPLEMENT_ABSTRACT(
GNEChange, FXObject,
nullptr, 0)
35 mySupermode(supermode),
37 mySelectedElement(selectedElement),
43 mySupermode(supermode),
45 mySelectedElement(selectedElement),
46 myOriginalHierarchicalContainer(hierarchicalElement->getHierarchicalContainer()),
51 for (
const auto& element : hierarchicalElements) {
88 mySelectedElement(false),
97 container.first->restoreHierarchicalContainer(container.second);
Supermode
@brie enum for supermodes
@ NETWORK
Network mode (Edges, junctions, etc..)
the function-object for an editing operation (abstract base)
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.
Supermode getSupermode() const
get supermode
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 Supermode mySupermode
supermode related with this change
void restoreHierarchicalContainers()
restore container (only use in undo() function)
bool canMerge() const
Return TRUE if this command can be merged with previous undo commands. This is useful to combine e....
std::vector< GNEHierarchicalElement * > getAllHierarchicalElements() const
get all parents and children