56 const std::vector<GNEJunction*>& junctionParents,
57 const std::vector<GNEEdge*>& edgeParents,
58 const std::vector<GNELane*>& laneParents,
59 const std::vector<GNEAdditional*>& additionalParents,
60 const std::vector<GNEShape*>& shapeParents,
61 const std::vector<GNETAZElement*>& TAZElementParents,
62 const std::vector<GNEDemandElement*>& demandElementParents,
63 const std::vector<GNEGenericData*>& genericDataParents);
77 const std::string&
getID()
const;
89 virtual void setParameter(
const std::string& key,
const std::string& value) = 0;
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
A NBNetBuilder extended by visualisation and editing capabilities.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
GNEShape(const GNEShape &)=delete
Invalidated copy constructor.
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
virtual void setAttribute(SumoXMLAttr key, const std::string &value)=0
set attribute after validation
virtual std::string generateChildID(SumoXMLTag childTag)=0
gererate a new ID for an element child
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
Boundary myBoundary
object boundary
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
virtual void setParameter(const std::string &key, const std::string &value)=0
Sets a parameter.
virtual void writeShape(OutputDevice &device)=0
writte shape element into a xml file
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
void shiftLaneIndex()
shift lane index
virtual void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)=0
commit move shape
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
virtual void updateGeometry()=0
update pre-computed geometry information
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
virtual void updateCenteringBoundary(const bool updateGrid)=0
update centering boundary (implies change in RTREE)
GNEShape(const std::string &id, GNENet *net, GUIGlObjectType type, SumoXMLTag tag, const std::vector< GNEJunction * > &junctionParents, const std::vector< GNEEdge * > &edgeParents, const std::vector< GNELane * > &laneParents, const std::vector< GNEAdditional * > &additionalParents, const std::vector< GNEShape * > &shapeParents, const std::vector< GNETAZElement * > &TAZElementParents, const std::vector< GNEDemandElement * > &demandElementParents, const std::vector< GNEGenericData * > &genericDataParents)
Constructor.
virtual void setMoveShape(const GNEMoveResult &moveResult)=0
set move shape
virtual GNEMoveOperation * getMoveOperation()=0
get move operation
void toogleAttribute(SumoXMLAttr key, const bool value, const int previousParameters)
method for enable or disable the attribute and nothing else (used in GNEChange_EnableAttribute)
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
virtual GUIGlID getGlID() const =0
Returns the numerical id of the object.
virtual void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)=0
remove geometry point in the clicked position
GUIGlObject * getGUIGlObject()
get GUIGlObject associated with this AttributeCarrier
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
virtual const std::map< std::string, std::string > & getACParametersMap() const =0
get parameters map
const std::string & getID() const
get ID (all shapes have one)
virtual double getExaggeration(const GUIVisualizationSettings &s) const =0
return exaggeration asociated with this GLObject
GNEShape & operator=(const GNEShape &)=delete
Invalidated assignment operator.
bool isAttributeComputed(SumoXMLAttr key) const
void replaceShapeParentLanes(const std::string &value)
replace shape parent lanes
virtual std::string getAttribute(SumoXMLAttr key) const =0
virtual Position getPositionInView() const =0
Returns position of shape in view.
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
Static storage of an output device and its base (abstract) implementation.
A point in 2D or 3D with translation and scaling methods.