49 const std::vector<GNELane*>& parentLanes,
const std::string& filename,
const std::vector<std::string>& vehicleTypes,
50 const std::string& name,
const bool friendlyPos,
const std::map<std::string, std::string>& parameters);
66 const std::vector<GNELane*>& parentLanes,
const std::string& filename,
const std::string& name,
const bool friendlyPos,
67 const std::map<std::string, std::string>& parameters);
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.
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
virtual void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)=0
commit move shape
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
virtual void setMoveShape(const GNEMoveResult &moveResult)=0
set move shape
GNEDetector(const std::string &id, GNENet *net, GUIGlObjectType type, SumoXMLTag tag, const double pos, const SUMOTime freq, const std::vector< GNELane * > &parentLanes, const std::string &filename, const std::vector< std::string > &vehicleTypes, const std::string &name, const bool friendlyPos, const std::map< std::string, std::string > ¶meters)
Constructor.
std::string myFilename
The path to the output file.
virtual void fixAdditionalProblem()=0
fix additional problem (must be reimplemented in all detector children)
virtual void setAttribute(SumoXMLAttr key, const std::string &value)=0
set attribute after validation
double myPositionOverLane
position of detector over Lane
Position getPositionInView() const
Returns position of additional in view.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
~GNEDetector()
Destructor.
SUMOTime myFreq
The aggregation period the values the detector collects shall be summed up.
double getPositionOverLane() const
get position over lane
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
virtual double getAttributeDouble(SumoXMLAttr key) const =0
void setPosition(const Position &pos)=delete
Invalidate set new position in the view.
GNEMoveOperation * getMoveOperationE2MultiLane()
get moveOperation for E2 multi lane
GNEMoveOperation * getMoveOperation()
get move operation
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
virtual void writeAdditional(OutputDevice &device) const =0
writte additional element into a xml file
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 (must be reimplemented in all detector chi...
GNEMoveOperation * getMoveOperationE2SingleLane()
get moveOperation for E2 single lane
std::vector< std::string > myVehicleTypes
attribute vehicle types
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.
Static storage of an output device and its base (abstract) implementation.
A point in 2D or 3D with translation and scaling methods.