95 virtual int size()
const;
Supermode
@brie enum for supermodes
the function-object for an editing operation (abstract base)
virtual void redo()=0
redo action/operation
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 in parents and children
GNEChange & operator=(const GNEChange &)=delete
Invalidated assignment operator.
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children
const Supermode mySupermode
supermode related with this change
const GNEHierarchicalStructureParents myParents
Hierarchical container with parents.
virtual std::string redoName() const =0
return redoName
virtual std::string undoName() const =0
return undoName
bool canMerge() const
Return TRUE if this command can be merged with previous undo commands. This is useful to combine e....
A road/street connecting two junctions (netedit-version)
static void insertChild(ElementType element, ChildType child)
insert child element
static void removeChild(ElementType element, ChildType child)
remove child element
Hierarchical structure used for keep parents.
const GNEHierarchicalContainerParents< ParentType > & get() 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.