19 #ifndef GNENetElement_h 20 #define GNENetElement_h
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::vector< GNEAdditional * > myAdditionalParents
list of Additional parents of this NetElement
GNENet * myNet
the net to inform about updates
GNENet * getNet() const
get Net in which this element is placed
GUIIcon
An enumeration of icons used by the gui applications.
Stores the information about how to visualize structures.
A NBNetBuilder extended by visualisation and editing capabilities.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
virtual const std::string & getParentName() const
Returns the name of the parent object.
virtual Boundary getCenteringBoundary() const =0
Returns the boundary to which the view shall be centered in order to show the object.
A class that stores a 2D geometrical boundary.
~GNENetElement()
Destructor.
const std::vector< GNEAdditional * > & getAdditionalParents() const
return vector of additionals that have as Parameter this edge (For example, Rerouters) ...
void addAdditionalParent(GNEAdditional *additional)
add additional child to this edge
void addAdditionalChild(GNEAdditional *additional)
add additional child to this edge
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
void removeAdditionalChild(GNEAdditional *additional)
remove additional child from this edge
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
virtual void updateGeometry()=0
update pre-computed geometry information
An Element which don't belongs to GNENet but has influency in the simulation.
virtual std::string getAttribute(SumoXMLAttr key) const =0
This functions has to be implemented in all GNEAttributeCarriers.
std::vector< GNEAdditional * > myAdditionalChilds
list of Additional Childs of this NetElement
GNENetElement & operator=(const GNENetElement &)=delete
Invalidated assignment operator.
void removeAdditionalParent(GNEAdditional *additional)
remove additional child from this edge
const std::vector< GNEAdditional * > & getAdditionalChilds() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
GNENetElement(GNENet *net, const std::string &id, GUIGlObjectType type, SumoXMLTag tag, GUIIcon icon)
Constructor.
A window containing a gl-object's parameter.