155 void drawDetectorIcon(
const int GNELogoID,
double sizex = 0.5,
double sizey = 0.5)
const;
void commmitAdditionalGeometryMoved(double oldPosx, double, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
SumoXMLTag
Numbers representing SUMO-XML - element names.
virtual void writeAdditional(OutputDevice &device) const =0
writte additional element into a xml file
double getPositionOverLane() const
Returns the position of the detector over lane.
std::string getFilename() const
returns the path to the output file
void setFilename(std::string filename)
Set a new filename in detector.
GUIIcon
An enumeration of icons used by the gui applications.
Stores the information about how to visualize structures.
double myFreq
The aggregation period the values the detector collects shall be summed up.
void setPosition(const Position &pos)
Invalidate set new position in the view.
const std::string & getParentName() const
Returns the name of the parent object (if any)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes ...
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
virtual Position getPositionInView() const =0
Returns position of additional in view.
~GNEDetector()
Destructor.
GNEDetector(const std::string &id, GNEViewNet *viewNet, SumoXMLTag tag, GUIIcon icon, GNELane *lane, double posOverLane, double freq, const std::string &filename)
Constructor.
void setPositionOverLane(double pos)
Set a new position of detector over lane.
A point in 2D or 3D with translation and scaling methods.
virtual void updateGeometry()=0
update pre-computed geometry information
Position myDetectorLogoOffset
The position of detector.
std::string myFilename
The path to the output file.
void drawDetectorIcon(const int GNELogoID, double sizex=0.5, double sizey=0.5) const
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
double getFrequency() const
returns the aggregation period the values the detector collects shall be summed up.
void setFrequency(const double freq)
Set a new frequency in detector.
An Element which don't belongs to GNENet but has influency in the simulation.
void moveAdditionalGeometry(double offsetx, double offsety)
change the position of the additional geometry
const Position & getPosition() const
Invalidate return position of additional.
Static storage of an output device and its base (abstract) implementation.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
virtual std::string getAttribute(SumoXMLAttr key) const =0