 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GNENetElement_h
18 #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
~GNENetElement()
Destructor.
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
An special type of Attribute carrier that owns hierarchical elements.
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.
PositionVector shape
The shape of the netElement element.
bool isAttributeEnabled(SumoXMLAttr key) const
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
virtual std::vector< std::pair< std::string, std::string > > getGenericParameters() const =0
return generic parameters as vector of pairs format
std::vector< double > shapeRotations
The rotations of the single shape parts.
NetElementGeometry myGeometry
netElement geometry
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.
void calculateShapeRotationsAndLengths()
calculate shape rotations and lengths
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 void setGenericParametersStr(const std::string &value)=0
set generic parameters in string format
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.
void clearGeometry()
reset geometry
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
const NetElementGeometry & getGeometry() const
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
GNENet * getNet() const
get Net in which this element is placed
virtual std::string getGenericParametersStr() const =0
return generic parameters in string format
GNENetElement(GNENet *net, const std::string &id, GUIGlObjectType type, SumoXMLTag tag)
Constructor.
NetElementGeometry()
constructor
GNENet * myNet
the net to inform about updates
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
struct for pack all variables related with geometry of elemement
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.
An special type of Attribute carrier that owns hierarchical elements.
std::vector< double > shapeLengths
The lengths of the single shape parts.
Boundary myMovingGeometryBoundary
boundary used during moving of elements
virtual Position getPositionInView() const =0
Returns position of hierarchical element in view.