33 double pos,
double freq,
const std::string& filename,
const std::string& vehicleTypes,
const std::string& name,
bool friendlyPos,
bool blockMovement) :
35 myPositionOverLane(pos),
38 myVehicleTypes(vehicleTypes),
39 myFriendlyPosition(friendlyPos) {
44 double pos,
double freq,
const std::string& filename,
const std::string& name,
bool friendlyPos,
bool blockMovement) :
45 GNEAdditional(additionalParent, viewNet, type, tag, name, blockMovement),
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.
virtual GNELane * getLane() const =0
get lane
PositionVector getShape() const
Returns additional element's shape.
double myFreq
The aggregation period the values the detector collects shall be summed up.
~GNEDetector()
Destructor.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
A point in 2D or 3D with translation and scaling methods.
Position getPositionInView() const
Returns position of additional in view.
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.
const PositionVector & getShape() const
returns the shape of the lane
GNEDetector(const std::string &id, GNEViewNet *viewNet, GUIGlObjectType type, SumoXMLTag tag, double pos, double freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement)
Constructor.
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string & getTagStr() const
get tag assigned to this object in string format
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
double myPositionOverLane
position of detector over Lane