58 #ifdef CHECK_MEMORY_LEAKS 70 myFilename(filename) {
182 glRotated(180, 0, 0, 1);
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.
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
~GNEDetector()
Destructor.
An Element wich group additionalSet elements.
SUMOReal x() const
Returns the x-position.
#define UNUSED_PARAMETER(x)
void removeLaneReference()
Remove reference to Lane of stopping place.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
void setPositionOverLane(SUMOReal pos)
Set a new position of detector over lane.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
GNELane * getLane() const
Returns pointer to Lane of detector.
SUMOReal myBlockIconRotation
The rotation of the block icon.
void drawDetectorIcon(const int GNELogoID, SUMOReal sizex=0.5, SUMOReal sizey=0.5) const
PositionVector myShape
The shape of the additional element.
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.
friend class GNEChange_Attribute
declare friend class
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
bool removeAdditional(GNEAdditional *additional)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
std::string myFilename
The path to the output file.
SUMOReal getPositionOverLane() const
Returns the position of the detector over lane.
SUMOReal getLaneShapeLenght() const
returns the length of the lane's shape
bool myBlocked
boolean to check if additional element is blocked (i.e. cannot be moved with mouse) ...
An Element which don't belongs to GNENet but has influency in the simulation.
SUMOReal y() const
Returns the y-position.
GNELane * myLane
The lane this detector belongs.
Position getLineCenter() const
get line center
Position myPosition
The position in which this additional element is located.
void addAdditional(GNEAdditional *additional)
static void drawTexturedBox(int which, SUMOReal size)
Draws a named texture as a box with the given size.
int myFreq
The aggregation period the values the detector collects shall be summed up.