 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNENetElement_h
17 #define GNENetElement_h
An Element which don't belongs to GNENet but has influency in the simulation.
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
An Element which don't belongs to GNENet but has influency in the simulation.
A window containing a gl-object's parameter.
GNENetElement & operator=(const GNENetElement &)=delete
Invalidated assignment operator.
A NBNetBuilder extended by visualisation and editing capabilities.
virtual void updateGeometry()=0
update pre-computed geometry information
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
~GNENetElement()
Destructor.
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
SumoXMLTag
Numbers representing SUMO-XML - element names.
An special type of Attribute carrier that owns hierarchical elements.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
virtual Boundary getCenteringBoundary() const =0
Returns the boundary to which the view shall be centered in order to show the object.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
A class that stores a 2D geometrical boundary.
virtual std::string getAttribute(SumoXMLAttr key) const =0
A point in 2D or 3D with translation and scaling methods.
virtual std::string generateChildID(SumoXMLTag childTag)=0
gererate a new ID for an element child
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
GNENet * getNet() const
get Net in which this element is placed
GNENetElement(GNENet *net, const std::string &id, GUIGlObjectType type, SumoXMLTag tag)
Constructor.
An special type of Attribute carrier that owns hierarchical elements.
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
GNENet * myNet
the net to inform about updates
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
void selectAttributeCarrier(bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Boundary myMovingGeometryBoundary
boundary used during moving of elements
virtual Position getPositionInView() const =0
Returns position of hierarchical element in view.