44 #ifdef CHECK_MEMORY_LEAKS 46 #endif // CHECK_MEMORY_LEAKS 58 SUMOReal jamDistThreshold,
const std::string& vTypes)
59 :
MSE2Collector(id, usage, lane, startPos, detLength, haltingTimeThreshold,
60 haltingSpeedThreshold, jamDistThreshold, vTypes) {}
66 SUMOReal jamDistThreshold,
const std::set<std::string>& vTypes)
67 :
MSE2Collector(id, usage, lane, startPos, detLength, haltingTimeThreshold,
68 haltingSpeedThreshold, jamDistThreshold, vTypes) {}
86 myDetector(detector) {
94 for (
int i = 0; i < e; ++i) {
127 ret->
mkItem(
"vehicles [#]",
true,
129 ret->
mkItem(
"occupancy [%]",
true,
131 ret->
mkItem(
"mean speed [m/s]",
true,
133 ret->
mkItem(
"mean vehicle length [m]",
true,
135 ret->
mkItem(
"jam number [#]",
true,
137 ret->
mkItem(
"max jam length [veh]",
true,
139 ret->
mkItem(
"max jam length [m]",
true,
141 ret->
mkItem(
"jam length sum [veh]",
true,
143 ret->
mkItem(
"jam length sum [m]",
true,
145 ret->
mkItem(
"started halts [#]",
true,
160 if (exaggeration > 0) {
168 if (width * exaggeration > 1.0) {
172 for (
int i = 0; i < e; ++i) {
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
draw name of item
SUMOReal getCurrentMeanSpeed() const
Returns the mean vehicle speed of vehicles currently on the detector.
const MSLane * getLane() const
Returns the lane the reminder works on.
Boundary myBoundary
The detector's boundary.
SUMOReal getCurrentJamLengthInMeters() const
Returns the length of all jams in meters.
GUIVisualizationTextSettings addName
int getCurrentJamLengthInVehicles() const
Returns the length of all jams in vehicles.
An areal (along a single lane) detector.
SUMOReal distanceTo(const Position &p2) const
returns the euclidean distance in 3 dimension
Stores the information about how to visualize structures.
~GUI_E2_ZS_Collector()
Destructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
static void drawBoxLines(const PositionVector &geom, const std::vector< SUMOReal > &rots, const std::vector< SUMOReal > &lengths, SUMOReal width, int cornerDetail=0, SUMOReal offset=0)
Draws thick lines.
std::vector< SUMOReal > myShapeRotations
A sequence of rotations in full-geometry mode.
PositionVector myFullGeometry
A sequence of positions in full-geometry mode.
const PositionVector & getShape() const
Returns this lane's shape.
GUI_E2_ZS_Collector & getDetector()
Returns the detector itself.
const std::string & getID() const
Returns the id.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns the wrapper for this detector.
A class that stores a 2D geometrical boundary.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
SUMOReal scale
information about a lane's width (temporary, used for a single view)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
SUMOReal getCurrentMaxJamLengthInMeters() const
Returns the length in meters of the currently largest jam.
SUMOReal getEndPos() const
Returns the end position of the detector.
GUI_E2_ZS_Collector & myDetector
The wrapped detector.
GUIVisualizationSizeSettings addSize
int getCurrentMaxJamLengthInVehicles() const
Returns the length in vehicles of the currently largest jam.
MyWrapper(GUI_E2_ZS_Collector &detector)
Constructor.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
A point in 2D or 3D with translation and scaling methods.
int getCurrentJamNumber() const
Returns the current number of jams.
SUMOReal getCurrentOccupancy() const
Returns the curent detector occupancy.
std::vector< SUMOReal > myShapeLengths
A sequence of lengths in full-geometry mode.
PositionVector getSubpart(SUMOReal beginOffset, SUMOReal endOffset) const
get subpart of a position vector
SUMOReal x() const
Returns the x-position.
SUMOReal getStartPos() const
Returns the begin position of the detector.
GUI_E2_ZS_Collector(const std::string &id, DetectorUsage usage, MSLane *const lane, SUMOReal startPos, SUMOReal detLength, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold, const std::string &vTypes)
Constructor.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
int getCurrentStartedHalts() const
Returns the length of all jams in meters.
virtual DetectorUsage getUsageType() const
Returns the detector's usage type.
The gui-version of the MS_E2_ZS_Collector.
GUIGlID getGlID() const
Returns the numerical id of the object.
static void drawLine(const Position &beg, SUMOReal rot, SUMOReal visLength)
Draws a thin line.
SUMOReal getExaggeration(const GUIVisualizationSettings &s, SUMOReal factor=20) const
return the drawing size including exaggeration and constantSize values
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
SUMOReal y() const
Returns the y-position.
void mkItem(const char *name, bool dynamic, ValueSource< unsigned > *src)
Adds a row which obtains its value from an unsigned-ValueSource.
void closeBuilding()
Closes the building of the table.
Representation of a lane in the micro simulation.
A window containing a gl-object's parameter.
SUMOReal getCurrentMeanLength() const
Returns the mean vehicle length of vehicles currently on the detector.
int getCurrentVehicleNumber() const
Returns the number of vehicles currently on the detector.