103 virtual int size()
const;
135 junction->addChildElement(element);
138 edge->addChildElement(element);
141 lane->addChildElement(element);
144 additional->addChildElement(element);
147 shape->addChildElement(element);
150 TAZElement->addChildElement(element);
153 demandElement->addChildElement(element);
156 genericData->addChildElement(element);
160 junction->addParentElement(element);
163 edge->addParentElement(element);
166 lane->addParentElement(element);
169 additional->addParentElement(element);
172 shape->addParentElement(element);
175 TAZElement->addParentElement(element);
178 demandElement->addParentElement(element);
181 genericData->addParentElement(element);
190 junction->removeChildElement(element);
193 edge->removeChildElement(element);
196 lane->removeChildElement(element);
199 additional->removeChildElement(element);
202 shape->removeChildElement(element);
205 TAZElement->removeChildElement(element);
208 demandElement->removeChildElement(element);
211 genericData->removeChildElement(element);
215 junction->removeParentElement(element);
218 edge->removeParentElement(element);
221 lane->removeParentElement(element);
224 additional->removeParentElement(element);
227 shape->removeParentElement(element);
230 TAZElement->removeParentElement(element);
233 demandElement->removeParentElement(element);
236 genericData->removeParentElement(element);
Supermode
@brie enum for supermodes
An Element which don't belongs to GNENet but has influency 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)
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)
GNEChange & operator=(const GNEChange &)=delete
Invalidated assignment operator.
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 belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
A road/street connecting two junctions (netedit-version)
An Element which don't belongs to GNENet but has influency in the simulation.
Hierarchical container (used for keep myParent and myChildren.
const T & getParents() const
get parents
const T & getChildren() const
get children
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
A NBNetBuilder extended by visualisation and editing capabilities.
An Element which don't belongs to GNENet but has influency in the simulation.