69 myTimeThreshold(timeThreshold),
70 mySpeedThreshold(speedThreshold) {
144 i->writeAdditional(device);
190 glRotated(180, 0, 0, 1);
280 return canParse<double>(value);
282 return canParse<double>(value);
284 return canParse<double>(value) && (parse<double>(value) >= 0);
288 return canParse<double>(value) && (parse<double>(value) >= 0);
290 return canParse<double>(value) && (parse<double>(value) >= 0);
292 return canParse<bool>(value);
312 myFreq = parse<double>(value);
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
double mySpeedThreshold
The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting...
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
const std::string & getParentName() const
Returns the name of the parent object (if any)
double scale
information about a lane's width (temporary, used for a single view)
GNEDetectorE3(const std::string &id, GNEViewNet *viewNet, Position pos, double freq, const std::string &filename, const double timeThreshold, double speedThreshold)
GNEDetectorE3 Constructor.
void moveGeometry(const Position &oldPos, const Position &offset)
change the position of the element geometry without saving in undoList
GUIVisualizationTextSettings addName
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
Position myPosition
position of E3 in view
void add(const Position &pos)
Adds the given position to this one.
void refreshElement(GUIGlObject *o)
refreshes boundary information for o and update
const std::string & getAdditionalID() const
returns Additional ID
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
GNEAdditional * getAdditional(SumoXMLTag type, const std::string &id) const
Returns the named additional.
Position getPositionInView() const
Returns position of additional in view.
Stores the information about how to visualize structures.
double y() const
Returns the y-position.
double myTimeThreshold
The time-based threshold that describes how much time has to pass until a vehicle is recognized as ha...
double x() const
Returns the x-position.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
static bool isValidFilename(const std::string &value)
true if value is a valid file value
void changeAdditionalID(const std::string &newID)
change ID of additional
#define WRITE_WARNING(msg)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
void drawChildConnections() const
draw connections between Parent and childrens
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
void drawLockIcon(double size=0.5) const
draw lock icon
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void updateGeometry()
update pre-computed geometry information
PositionVector myShape
The shape of the additional element.
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise, the sub-group will be added as a new command into parent group. A matching begin() must have been called previously.
A point in 2D or 3D with translation and scaling methods.
void setx(double x)
set position x
friend class GNEChange_Attribute
declare friend class
block movement of a graphic element
std::string generateEntryID()
gererate a new ID for an Entry detector child
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
void updateChildConnections()
update Connection's geometry
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
const std::string getID() const
function to support debugging
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file
Position myBlockIconOffset
The offSet of the block icon.
std::vector< GNEAdditional * > myAdditionalChilds
vector with the Additional childs
double myFreq
frequency of E3 detector
bool myBlocked
boolean to check if additional element is blocked (i.e. cannot be moved with mouse) ...
void commitGeometryMoving(const Position &oldPos, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
An Element which don't belongs to GNENet but has influency in the simulation.
void setBlockIconRotation(GNELane *additionalLane=NULL)
void sety(double y)
set position y
~GNEDetectorE3()
GNEDetectorE3 6Destructor.
GNENet * getNet() const
get the net object
GUIGlID getGlID() const
Returns the numerical id of the object.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
bool isAdditionalSelected() const
std::string generateExitID()
gererate a new ID for an Exit detector child
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
std::string myFilename
fielname of E3 detector
Position myBlockIconPosition
position of the block icon
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
SumoXMLTag getTag() const
get XML Tag assigned to this object