73 GNEChange(
bool forward,
const bool selectedElement);
86 virtual FXuint
size()
const;
109 junction->addChildElement(element);
112 edge->addChildElement(element);
115 lane->addChildElement(element);
118 additional->addChildElement(element);
121 shape->addChildElement(element);
124 TAZElement->addChildElement(element);
127 demandElement->addChildElement(element);
130 genericData->addChildElement(element);
134 junction->addParentElement(element);
137 edge->addParentElement(element);
140 lane->addParentElement(element);
143 additional->addParentElement(element);
146 shape->addParentElement(element);
149 TAZElement->addParentElement(element);
152 demandElement->addParentElement(element);
155 genericData->addParentElement(element);
164 junction->removeChildElement(element);
167 edge->removeChildElement(element);
170 lane->removeChildElement(element);
173 additional->removeChildElement(element);
176 shape->removeChildElement(element);
179 TAZElement->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 shape->removeParentElement(element);
204 TAZElement->removeParentElement(element);
207 demandElement->removeParentElement(element);
210 genericData->removeParentElement(element);
An Element which don't belongs to GNENet but has influency in the simulation.
the function-object for an editing operation (abstract base)
virtual FXString redoName() const
return rendoName
virtual void undo()
undo action/operation
std::map< GNEHierarchicalElement *, GNEHierarchicalContainer > myHierarchicalContainers
map with hierarchical container of all parent and children elements
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
virtual FXuint size() const
return actual size
virtual FXString undoName() const
return undoName
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(bool forward, const bool selectedElement)
Constructor.
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children (only use in redo() function)
virtual void redo()
redo action/operation
void restoreHierarchicalContainers()
restore container (only use in undo() function)
const GNEHierarchicalContainer myOriginalHierarchicalContainer
Hierarchical container with parent and children.
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.