35 double pos,
SUMOTime freq,
const std::string& filename,
const std::string& vehicleTypes,
36 const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& laneParents) :
37 GNEAdditional(id, viewNet, type, tag, name, blockMovement, {}, laneParents, {}, {}, {}, {}, {}, {}, {}, {}),
47 double pos,
SUMOTime freq,
const std::string& filename,
48 const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& laneParents) :
49 GNEAdditional(additionalParent, viewNet, type, tag, name, blockMovement,
50 {}, laneParents, {}, {additionalParent}, {}, {}, {}, {}, {}, {}),
SumoXMLTag
Numbers representing SUMO-XML - element names.
double getPositionOverLane() const
get position over lane
PositionVector shape
The shape of the netElement element.
PositionVector multiShapeUnified
multi shape unified
std::string getParentName() const
Returns the name of the parent object.
static bool checkAndFixDetectorPosition(double &pos, const double laneLength, const bool friendlyPos)
check if the position of a detector over a lane is valid
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
~GNEDetector()
Destructor.
A class that stores a 2D geometrical boundary.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
NBEdge * getNBEdge() const
returns the internal NBEdge
GNEDetector(const std::string &id, GNEViewNet *viewNet, GUIGlObjectType type, SumoXMLTag tag, double pos, SUMOTime freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement, const std::vector< GNELane *> &laneParents)
Constructor.
GNEEdge & getParentEdge()
Returns underlying parent edge.
double getGeometryPositionOverLane() const
get position over lane that is applicable to the shape
A point in 2D or 3D with translation and scaling methods.
PositionVector shape
The shape of the additional element.
Position getPositionInView() const
Returns position of additional in view.
const std::vector< GNELane * > & getLaneParents() const
get lanes of VSS
std::string myVehicleTypes
attribute vehicle types
double getLengthGeometryFactor() const
get length geometry factor
Boundary & grow(double by)
extends the boundary by the given amount
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
const NetElementGeometry & getGeometry() const
bool myFriendlyPosition
Flag for friendly position.
double getFinalLength() const
get length that will be assigned to the lanes in the final network
std::string myFilename
The path to the output file.
SUMOTime myFreq
The aggregation period the values the detector collects shall be summed up.
An Element which don't belongs to GNENet but has influency in the simulation.
AdditionalGeometry myGeometry
geometry to be precomputed in updateGeometry(...)
const std::string & getTagStr() const
get tag assigned to this object in string format
GNELane * getLane() const
get lane
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
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