void drawDetectorIcon(const unsigned int GNELogoID, SUMOReal sizex=0.5, SUMOReal sizey=0.5) const
SumoXMLTag
Numbers representing SUMO-XML - element names.
void changeLane(GNELane *newLane)
change lane of detector
void setFilename(std::string filename)
Set a new filename in detector.
Stores the information about how to visualize structures.
void setPosition(const Position &pos)
Invalidate set new position in the view.
GNEDetector(const std::string &id, GNEViewNet *viewNet, SumoXMLTag tag, GNELane *lane, SUMOReal posOverLane, int freq, const std::string &filename, bool blocked=false, GNEAdditionalSet *parent=NULL)
Constructor.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void setFrequency(int freq)
Set a new frequency in detector.
std::string getFilename() const
returns the path to the output file
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
~GNEDetector()
Destructor.
An Element wich group additionalSet elements.
void removeLaneReference()
Remove reference to Lane of stopping place.
void setPositionOverLane(SUMOReal pos)
Set a new position of detector over lane.
virtual std::string getAttribute(SumoXMLAttr key) const =0
GNELane * getLane() const
Returns pointer to Lane of detector.
A point in 2D or 3D with translation and scaling methods.
virtual void updateGeometry()=0
update pre-computed geometry information
int getFrequency() const
returns the aggregation period the values the detector collects shall be summed up.
Position myDetectorLogoOffset
The position of detector.
const std::string & getParentName() const
Returns the name of the parent object (if any)
void moveAdditional(SUMOReal posx, SUMOReal posy, GNEUndoList *undoList)
change the position of the additional geometry
std::string myFilename
The path to the output file.
virtual Position getPositionInView() const =0
Returns position of additional in view.
SUMOReal getPositionOverLane() const
Returns the position of the detector over lane.
An Element which don't belongs to GNENet but has influency in the simulation.
GNELane * myLane
The lane this detector belongs.
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
virtual void writeAdditional(OutputDevice &device, const std::string ¤tDirectory)=0
writte additional element into a xml file
int myFreq
The aggregation period the values the detector collects shall be summed up.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.