53 double pos,
double freq,
const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
bool friendlyPos,
bool blockMovement) :
56 myPositionOverLane(pos),
59 myVehicleTypes(vehicleTypes),
60 myFriendlyPosition(friendlyPos) {
65 double pos,
double freq,
const std::string& filename,
const std::string& name,
bool friendlyPos,
bool blockMovement) :
66 GNEAdditional(additionalParent, viewNet, type, tag, name, blockMovement),
94 newPosition.
add(offset);
SumoXMLTag
Numbers representing SUMO-XML - element names.
double getPositionOverLane() const
get position over lane
std::string getParentName() const
Returns the name of the parent object.
void add(const Position &pos)
Adds the given position to this one.
double myFreq
The aggregation period the values the detector collects shall be summed up.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
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...
void commitGeometryMoving(const Position &oldPos, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
~GNEDetector()
Destructor.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
GNEDetector(const std::string &id, GNEViewNet *viewNet, GUIGlObjectType type, SumoXMLTag tag, GNELane *lane, double pos, double freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement)
Constructor.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
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.
Position getPositionInView() const
Returns position of additional in view.
friend class GNEChange_Attribute
declare friend class
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
bool myFriendlyPosition
Flag for friendly position.
std::string myFilename
The path to the output file.
virtual void updateGeometry(bool updateGrid)=0
update pre-computed geometry information
const PositionVector & getShape() const
returns the shape of the lane
double length() const
Returns the length.
An Element which don't belongs to GNENet but has influency in the simulation.
GNELane * myLane
The lane in which this detector is placed.
GNELane * getLane() const
get lane
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
void moveGeometry(const Position &oldPos, const Position &offset)
change the position of the element geometry without saving in undoList
double nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
double myPositionOverLane
position of detector over Lane
SumoXMLTag getTag() const
get XML Tag assigned to this object