52 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);
67 GNEDetector(
GNEAdditional* additionalParent,
GNEViewNet* viewNet,
GUIGlObjectType type,
SumoXMLTag tag,
GNELane* lane,
double pos,
double freq,
const std::string& filename,
const std::string& name,
bool friendlyPos,
bool 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.
Stores the information about how to visualize structures.
const Position & getPosition() const =delete
Invalidate return position of additional.
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.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes ...
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
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 setPosition(const Position &pos)=delete
Invalidate set new position in the view.
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.
virtual bool isDetectorPositionFixed() const =0
check if Position of detector is fixed
A point in 2D or 3D with translation and scaling methods.
Position getPositionInView() const
Returns position of additional in view.
std::string myVehicleTypes
attribute vehicle types
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
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
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)
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
void moveGeometry(const Position &oldPos, const Position &offset)
change the position of the element geometry without saving in undoList
double myPositionOverLane
position of detector over Lane
virtual std::string getAttribute(SumoXMLAttr key) const =0