55 const std::vector<GNEJunction*>& junctionParents,
56 const std::vector<GNEEdge*>& edgeParents,
57 const std::vector<GNELane*>& laneParents,
58 const std::vector<GNEAdditional*>& additionalParents,
59 const std::vector<GNEShape*>& shapeParents,
60 const std::vector<GNETAZElement*>& TAZElementParents,
61 const std::vector<GNEDemandElement*>& demandElementParents,
62 const std::vector<GNEGenericData*>& genericDataParents);
76 const std::string&
getID()
const;
88 virtual void setParameter(
const std::string& key,
const std::string& value) = 0;
102 void draw(
const Position& pos,
double layer,
double size = 0.5)
const;
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)
Position getPositionInView() const
Returns position of additional in view.
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.
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.
GNEShape(const std::string &id, GNENet *net, GUIGlObjectType type, SumoXMLTag tag, bool movementBlocked, 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 bool isValid(SumoXMLAttr key, const std::string &value)=0
virtual void updateCenteringBoundary(const bool updateGrid)=0
update centering boundary (implies change in RTREE)
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
virtual void setMoveShape(const GNEMoveResult &moveResult)=0
set move shape
bool isMovementBlocked() const
return true if movement is blocked
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)
void draw(const Position &pos, double layer, double size=0.5) const
draw lock icon
GNEShape & operator=(const GNEShape &)=delete
Invalidated assignment operator.
virtual ~GNEShape()
Destructor.
bool myBlockMovement
flag to block movement
void replaceShapeParentLanes(const std::string &value)
replace shape parent lanes
virtual std::string getAttribute(SumoXMLAttr key) const =0
virtual GNEMoveOperation * getMoveOperation(const double shapeOffset)=0
get move operation for the given shapeOffset
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.