 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
51 const std::string& vehicleTypes,
const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& parentLanes);
67 const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& parentLanes);
An Element which don't belongs to GNENet but has influency in the simulation.
virtual void commitGeometryMoving(GNEUndoList *undoList)=0
commit geometry changes in the attributes of an element after use of moveGeometry(....
virtual void setAttribute(SumoXMLAttr key, const std::string &value)=0
set attribute after validation
~GNEDetector()
Destructor.
Position getPositionInView() const
Returns position of additional in view.
double getPositionOverLane() const
get position over lane
virtual bool isAdditionalValid() const =0
check if current additional is valid to be writed into XML (by default true, can be reimplemented in ...
virtual void moveGeometry(const Position &offset)=0
change the position of the element geometry without saving in undoList
double myPositionOverLane
position of detector over Lane
virtual void fixAdditionalProblem()=0
fix additional problem (must be reimplemented in all detector children)
bool myFriendlyPosition
Flag for friendly position.
SumoXMLTag
Numbers representing SUMO-XML - element names.
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
const Position & getPosition() const =delete
Invalidate return position of additional.
double getGeometryPositionOverLane() const
get position over lane that is applicable to the shape
virtual void updateGeometry()=0
update pre-computed geometry information
std::string getParentName() const
Returns the name of the parent object.
std::string myVehicleTypes
attribute vehicle types
A class that stores a 2D geometrical boundary.
GNELane * getLane() const
get lane
A point in 2D or 3D with translation and scaling methods.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes
virtual std::string getAttribute(SumoXMLAttr key) const =0
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void setPosition(const Position &pos)=delete
Invalidate set new position in the view.
double getAttributeDouble(SumoXMLAttr key) const
std::string myFilename
The path to the output file.
SUMOTime myFreq
The aggregation period the values the detector collects shall be summed up.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
GNEDetector(const std::string &id, GNEViewNet *viewNet, GUIGlObjectType type, SumoXMLTag tag, double pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement, const std::vector< GNELane * > &parentLanes)
Constructor.
Stores the information about how to visualize structures.
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
virtual std::string getAdditionalProblem() const =0
return a string with the current additional problem (must be reimplemented in all detector children)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)