59 #ifdef CHECK_MEMORY_LEAKS 71 myTimeThreshold(timeThreshold),
72 mySpeedThreshold(speedThreshold) {
168 glRotated(180, 0, 0, 1);
249 return (canParse<SUMOReal>(value) && parse<SUMOReal>(value) >= 0);
254 return canParse<int>(value);
256 return canParse<SUMOReal>(value);
276 myFreq = parse<SUMOReal>(value);
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
int getNumberOfAdditionalChilds() const
get number of additional childs of this additionalSet
GUIVisualizationTextSettings addName
const std::string & getParentName() const
Returns the name of the parent object (if any)
Stores the information about how to visualize structures.
bool isAdditionalSelected() const
Position getPositionInView() const
Returns position of detector E3 in view.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An Element wich group additionalSet elements.
SUMOReal x() const
Returns the x-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
#define WRITE_WARNING(msg)
SUMOReal scale
information about a lane's width (temporary, used for a single view)
bool isValid(SumoXMLAttr key, const std::string &value)
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
RGBColor myBaseColorSelected
base color selected (Default blue)
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.
void writeAdditional(OutputDevice &device, const std::string ¤tDirectory)
writte additionalSet element into a xml file
void updateConnections()
update connections.
static bool isValidFileValue(const std::string &value)
true if value is a valid file value
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
const std::string & getAdditionalID() const
returns the ID of additional
void updateGeometry()
update pre-computed geometry information
PositionVector myShape
The shape of the additional element.
A point in 2D or 3D with translation and scaling methods.
int myFreq
frequency of E3 detector
void setBlockIconRotation(GNELane *lane=NULL)
friend class GNEChange_Attribute
declare friend class
void drawLockIcon(SUMOReal size=0.5) const
draw lock icon
SUMOTime myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
void setAdditionalID(const std::string &id)
set the ID of additional
const std::string getID() const
function to support debugging
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
draw name of item
void moveAdditional(SUMOReal posx, SUMOReal posy, GNEUndoList *undoList)
change the position of the E3 geometry
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
void drawConnections() const
draw connections.
Position myBlockIconOffset
The offSet of the block icon.
std::vector< GNEAdditional * > myChildAdditionals
list of additional childs (Position and rotations is derived from additional)
GNEAdditional * getAdditional(SumoXMLTag type, const std::string &id) const
Returns the named additional.
bool myBlocked
boolean to check if additional element is blocked (i.e. cannot be moved with mouse) ...
SUMOReal mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting...
SUMOReal y() const
Returns the y-position.
RGBColor myBaseColor
base color (Default green)
std::string getAttribute(SumoXMLAttr key) const
GNENet * getNet() const
get the net object
~GNEDetectorE3()
GNEDetectorE3 6Destructor.
void writeAdditionalChildrens(OutputDevice &device, const std::string ¤tDirectory)
writte children of this additionalSet
GNEDetectorE3(const std::string &id, GNEViewNet *viewNet, Position pos, int freq, const std::string &filename, SUMOTime timeThreshold, SUMOReal speedThreshold, bool blocked)
GNEDetectorE3 Constructor.
SumoXMLTag getTag() const
get Tag assigned to this object
Static storage of an output device and its base (abstract) implementation.
Position myPosition
The position in which this additional element is located.
bool closeTag()
Closes the most recently opened tag.
static GUIGlID getGif(GUITexture which)
returns a texture Gif previously defined in the enum GUITexture
static void drawTexturedBox(int which, SUMOReal size)
Draws a named texture as a box with the given size.
static PositionVector parseShapeReporting(const std::string &shpdef, const std::string &objecttype, const char *objectid, bool &ok, bool allowEmpty, bool report=true)
Builds a PositionVector from a string representation, reporting occured errors.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
std::string myFilename
fielname of E3 detector
void append(const PositionVector &v, SUMOReal sameThreshold=2.0)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Position myBlockIconPosition
position of the block icon
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)