 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
53 const std::vector<GNEEdge*>& edgeParents,
54 const std::vector<GNELane*>& laneParents,
55 const std::vector<GNEShape*>& shapeParents,
56 const std::vector<GNEAdditional*>& additionalParents,
57 const std::vector<GNEDemandElement*>& demandElementParents,
58 const std::vector<GNEEdge*>& edgeChildren,
59 const std::vector<GNELane*>& laneChildren,
60 const std::vector<GNEShape*>& shapeChildren,
61 const std::vector<GNEAdditional*>& additionalChildren,
62 const std::vector<GNEDemandElement*>& demandElementChildren);
85 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.
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 setGenericParametersStr(const std::string &value)=0
set generic parameters in string format
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
An special type of Attribute carrier that owns hierarchical elements.
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.
GNEShape & operator=(const GNEShape &)=delete
Invalidated assignment operator.
virtual std::string getGenericParametersStr() const =0
return generic parameters in string format
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
virtual std::vector< std::pair< std::string, std::string > > getGenericParameters() const =0
return generic parameters as vector of pairs format
void draw(const Position &pos, double layer, double size=0.5) const
draw lock icon
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)
bool isAttributeEnabled(SumoXMLAttr key) const
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An special type of Attribute carrier that owns hierarchical elements.
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
GNEShape(GNENet *net, SumoXMLTag tag, bool movementBlocked, const std::vector< GNEEdge * > &edgeParents, const std::vector< GNELane * > &laneParents, const std::vector< GNEShape * > &shapeParents, const std::vector< GNEAdditional * > &additionalParents, const std::vector< GNEDemandElement * > &demandElementParents, const std::vector< GNEEdge * > &edgeChildren, const std::vector< GNELane * > &laneChildren, const std::vector< GNEShape * > &shapeChildren, const std::vector< GNEAdditional * > &additionalChildren, const std::vector< GNEDemandElement * > &demandElementChildren)
Constructor.