 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
52 const std::vector<GNEEdge*>& parentEdges,
53 const std::vector<GNELane*>& parentLanes,
54 const std::vector<GNEShape*>& parentShapes,
55 const std::vector<GNEAdditional*>& parentAdditionals,
56 const std::vector<GNEDemandElement*>& parentDemandElements,
57 const std::vector<GNEEdge*>& childEdges,
58 const std::vector<GNELane*>& childLanes,
59 const std::vector<GNEShape*>& childShapes,
60 const std::vector<GNEAdditional*>& childAdditionals,
61 const std::vector<GNEDemandElement*>& childDemandElements);
84 void draw(
const Position& pos,
double layer,
double size = 0.5)
const;
Boundary myMovingGeometryBoundary
boundary used during moving of elements
virtual Position getPositionInView() const =0
Returns position of additional in view.
A window containing a gl-object's parameter.
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
Static storage of an output device and its base (abstract) implementation.
virtual const GUIGlObject * getGUIGlObject() const =0
get GUIGlObject associated to this GNEShape
virtual std::string generateChildID(SumoXMLTag childTag)=0
gererate a new ID for an element child
void selectAttributeCarrier(bool changeFlag=true)
A NBNetBuilder extended by visualisation and editing capabilities.
virtual Boundary getCenteringBoundary() const =0
Returns the boundary to which the view shall be centered in order to show the object.
virtual void writeShape(OutputDevice &device)=0
writte shape element into a xml file
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
virtual void startGeometryMoving()=0
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
bool isMovementBlocked() const
return true if movement is blocked
SumoXMLTag
Numbers representing SUMO-XML - element names.
An special type of Attribute carrier that owns hierarchical elements.
GNEShape & operator=(const GNEShape &)=delete
Invalidated assignment operator.
GNEShape(GNENet *net, SumoXMLTag tag, bool movementBlocked, const std::vector< GNEEdge * > &parentEdges, const std::vector< GNELane * > &parentLanes, const std::vector< GNEShape * > &parentShapes, const std::vector< GNEAdditional * > &parentAdditionals, const std::vector< GNEDemandElement * > &parentDemandElements, const std::vector< GNEEdge * > &childEdges, const std::vector< GNELane * > &childLanes, const std::vector< GNEShape * > &childShapes, const std::vector< GNEAdditional * > &childAdditionals, const std::vector< GNEDemandElement * > &childDemandElements)
Constructor.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
GNENet * myNet
the net to inform about updates
A class that stores a 2D geometrical boundary.
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
A point in 2D or 3D with translation and scaling methods.
GNENet * getNet() const
get Net in which this element is placed
bool myBlockMovement
flag to block movement
virtual GUIGlID getGlID() const =0
Returns the numerical id of the object.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
virtual void updateGeometry()=0
update pre-computed geometry information
An special type of Attribute carrier that owns hierarchical elements.
void draw(const Position &pos, double layer, double size=0.5) const
draw lock icon
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
virtual void endGeometryMoving()=0
begin movement (used when user click over edge to start a movement, to avoid problems with problems w...
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
virtual std::string getAttribute(SumoXMLAttr key) const =0
bool isAttributeCarrierSelected() const
check if attribute carrier is selected