48 const std::string& vehicleTypes,
const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& parentLanes);
64 const std::string& name,
bool friendlyPos,
bool blockMovement,
const std::vector<GNELane*>& parentLanes);
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An Element which don't belongs to GNENet but has influency in the simulation.
GNEMoveOperation * getMoveOperation(const double shapeOffset)
get move operation for the given shapeOffset
virtual std::string getAdditionalProblem() const =0
return a string with the current additional problem (must be reimplemented in all detector children)
virtual bool isAttributeEnabled(SumoXMLAttr key) const =0
GNEDetector(const std::string &id, GNENet *net, GUIGlObjectType type, SumoXMLTag tag, double pos, const std::string &freq, const std::string &filename, const std::string &vehicleTypes, const std::string &name, bool friendlyPos, bool blockMovement, const std::vector< GNELane * > &parentLanes)
Constructor.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
std::string myFilename
The path to the output file.
virtual void fixAdditionalProblem()=0
fix additional problem (must be reimplemented in all detector children)
std::string myFreq
The aggregation period the values the detector collects shall be summed up.
virtual void setAttribute(SumoXMLAttr key, const std::string &value)=0
set attribute after validation
double myPositionOverLane
position of detector over Lane
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
double getAttributeDouble(SumoXMLAttr key) const
~GNEDetector()
Destructor.
double getPositionOverLane() const
get position over lane
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
void drawE1Shape(const GUIVisualizationSettings &s, const double exaggeration, const double scaledWidth, const RGBColor &mainColor, const RGBColor &secondColor) const
draw E1 shape
const Position & getPosition() const =delete
Invalidate return position of additional.
double getGeometryPositionOverLane() const
get position over lane that is applicable to the shape
GNELane * getLane() const
get lane
virtual void updateGeometry()=0
update pre-computed geometry information
void setPosition(const Position &pos)=delete
Invalidate set new position in the view.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
std::string myVehicleTypes
attribute vehicle types
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList)
split geometry
bool myFriendlyPosition
Flag for friendly position.
void drawDetectorLogo(const GUIVisualizationSettings &s, const double exaggeration, const std::string &logo, const RGBColor &textColor) const
draw detector Logo
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
virtual std::string getAttribute(SumoXMLAttr key) const =0
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
virtual bool isAdditionalValid() const =0
check if current additional is valid to be writed into XML (by default true, can be reimplemented in ...
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 getParentName() const
Returns the name of the parent object.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
A NBNetBuilder extended by visualisation and editing capabilities.
Stores the information about how to visualize structures.
A point in 2D or 3D with translation and scaling methods.