 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
34 double pos,
SUMOTime freq,
const std::string& filename,
const std::string& vehicleTypes,
35 const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& parentLanes) :
36 GNEAdditional(id, viewNet, type, tag, name, blockMovement, {}, parentLanes, {}, {}, {}, {}, {}, {}, {}, {}),
37 myPositionOverLane(pos),
40 myVehicleTypes(vehicleTypes),
41 myFriendlyPosition(friendlyPos) {
46 double pos,
SUMOTime freq,
const std::string& filename,
const std::string& name,
bool friendlyPos,
47 bool blockMovement,
const std::vector<GNELane*>& parentLanes) :
48 GNEAdditional(additionalParent, viewNet, type, tag, name, blockMovement, {}, parentLanes, {}, {additionalParent}, {}, {}, {}, {}, {}, {}),
49 myPositionOverLane(pos),
52 myFriendlyPosition(friendlyPos) {
96 if (newE2Lanes.size() > 0) {
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string getID() const
function to support debugging
GNEEdge * getParentEdge() const
Returns underlying parent edge.
~GNEDetector()
Destructor.
Position getPositionInView() const
Returns position of additional in view.
double getPositionOverLane() const
get position over lane
begin/end of the description of a single lane
const std::vector< GNELane * > & getParentLanes() const
get parent lanes
double myPositionOverLane
position of detector over Lane
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
SumoXMLTag
Numbers representing SUMO-XML - element names.
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
double getGeometryPositionOverLane() const
get position over lane that is applicable to the shape
std::string getParentName() const
Returns the name of the parent object.
const TagProperties & getTagProperty() const
get Tag Property assigned to this object
const PositionVector & getShape() const
The shape of the additional element.
const PositionVector & getLaneShape() const
NBEdge * getNBEdge() const
returns the internal NBEdge
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
double getLengthGeometryFactor() const
get length geometry factor
A class that stores a 2D geometrical boundary.
GNELane * getLane() const
get lane
A point in 2D or 3D with translation and scaling methods.
const TagProperties & myTagProperty
the xml tag to which this attribute carrier corresponds
GNEGeometry::Geometry myAdditionalGeometry
geometry to be precomputed in updateGeometry(...)
Boundary getBoxBoundary() const
Returns a boundary enclosing all segments.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes
std::string getNewListOfParents(const GNENetElement *currentElement, const GNENetElement *newNextElement) const
if use edge/parent lanes as a list of consecutive elements, obtain a list of IDs of elements after in...
an e2 detector over multiple lanes (used by Netedit)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
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.
double getAttributeDouble(SumoXMLAttr key) const
double getFinalLength() const
get length that will be assigned to the lanes in the final network
Boundary & grow(double by)
extends the boundary by the given amount
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 * > &parentLanes)
Constructor.
const std::string & getTagStr() const
get tag assigned to this object in string format
GNEGeometry::SegmentGeometry mySegmentGeometry
segment geometry to be precomputed in updateGeometry(...) (used by E2Multilane)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
static bool checkAndFixDetectorPosition(double &pos, const double laneLength, const bool friendlyPos)
check if the position of a detector over a lane is valid
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)