71 const std::map<std::string, std::string>& parameters,
72 const std::vector<GNEJunction*>& junctionParents,
73 const std::vector<GNEEdge*>& edgeParents,
74 const std::vector<GNELane*>& laneParents,
75 const std::vector<GNEAdditional*>& additionalParents,
76 const std::vector<GNEShape*>& shapeParents,
77 const std::vector<GNETAZElement*>& TAZElementParents,
78 const std::vector<GNEDemandElement*>& demandElementParents,
79 const std::vector<GNEGenericData*>& genericDataParents);
91 const std::string&
getID()
const;
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
GNEGenericData(const SumoXMLTag tag, const GUIGlObjectType type, GNEDataInterval *dataIntervalParent, const std::map< std::string, std::string > ¶meters, 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 drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
virtual const RGBColor & getColor() const =0
get generic data color
GUIGlObject * getGUIGlObject()
get GUIGlObject associated with this AttributeCarrier
virtual void writeGenericData(OutputDevice &device) const =0
writte data set element into a xml file
GNEGenericData(const GNEGenericData &)=delete
Invalidated copy constructor.
virtual bool isGenericDataVisible() const =0
check if current generic data is visible
virtual void fixGenericDataProblem()
fix data set problem (by default throw an exception, has to be reimplemented in children)
virtual void drawPartialGL(const GUIVisualizationSettings &s, const GNELane *lane, const double offsetFront) const =0
Draws partial object (lane)
void drawAttribute(const PositionVector &shape) const
virtual void updateGeometry()=0
update pre-computed geometry information
void drawFilteredAttribute(const GUIVisualizationSettings &s, const PositionVector &laneShape, const std::string &attribute) const
draw filtered attribute
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform data set changes
virtual std::string getGenericDataProblem() const
return a string with the current data set problem (by default empty, can be reimplemented in children...
const std::map< std::string, std::string > & getACParametersMap() const
get parameters map
virtual ~GNEGenericData()
Destructor.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
virtual Position getPositionInView() const =0
Returns element position in view.
void replaceFirstParentTAZElement(SumoXMLTag tag, const std::string &value)
replace the first parent TAZElement
virtual void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)=0
virtual std::string getAttribute(SumoXMLAttr key) const =0
GNEDataInterval * myDataIntervalParent
dataInterval Parent
virtual void drawPartialGL(const GUIVisualizationSettings &s, const GNELane *fromLane, const GNELane *toLane, const double offsetFront) const =0
Draws partial object (junction)
virtual Boundary getCenteringBoundary() const =0
void replaceLastParentTAZElement(SumoXMLTag tag, const std::string &value)
replace the last parent TAZElement
virtual bool isGenericDataValid() const
check if current data set is valid to be writed into XML (by default true, can be reimplemented in ch...
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
virtual std::string getPopUpID() const =0
get PopPup ID (Used in AC Hierarchy)
bool isVisibleInspectDeleteSelect() const
check if attribute is visible in inspect, delete or select mode
GNEDataInterval * getDataIntervalParent() const
get data interval parent
virtual double getAttributeDouble(SumoXMLAttr key) const =0
const std::string & getID() const
get ID
virtual void setAttribute(SumoXMLAttr key, const std::string &value)=0
method for setting the attribute and nothing else (used in GNEChange_Attribute)
void replaceFirstParentEdge(const std::string &value)
replace the first parent edge
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
virtual std::string getHierarchyName() const =0
get Hierarchy Name (Used in AC Hierarchy)
GNEGenericData & operator=(const GNEGenericData &)=delete
Invalidated assignment operator.
virtual void setEnabledAttribute(const int enabledAttributes)=0
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
virtual void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)=0
void replaceLastParentEdge(const std::string &value)
replace the last parent edge
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
An special type of Attribute carrier that owns hierarchical elements.
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.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.