 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef GUIInductLoop_h
20 #define GUIInductLoop_h
56 GUIInductLoop(
const std::string&
id,
MSLane*
const lane,
double position,
const std::string& vTypes,
bool show);
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void leaveDetectorByLaneChange(SUMOTrafficObject &veh, double lastPos)
Removes a vehicle from the detector's map myVehiclesOnDet.
Representation of a vehicle or person.
A window containing a gl-object's parameter.
Representation of a lane in the micro simulation.
void setVisible(bool show)
toggle visibility
void setSpecialColor(const RGBColor *color)
set (outline) color for extra visualiaztion
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
An unextended detector measuring at a fixed position on a fixed lane.
double myPosition
The position on the lane.
bool isVisible() const
whether the induction loop shall be visible
Position myFGPosition
The position in full-geometry mode.
void leaveDetectorByMove(SUMOTrafficObject &veh, double leaveTimestep)
Processes a vehicle that leaves the detector.
~GUIInductLoop()
Destructor.
bool myShow
whether this induction loop shall be visible in the gui
GUIInductLoop(const std::string &id, MSLane *const lane, double position, const std::string &vTypes, bool show)
Constructor.
FXMutex myLock
Mutex preventing parallel read/write access to internal MSInductLoop state.
A class that stores a 2D geometrical boundary.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.
double myFGRotation
The rotation in full-geometry mode.
A point in 2D or 3D with translation and scaling methods.
const RGBColor * mySpecialColor
color for extra visualization
MyWrapper & operator=(const MyWrapper &)
Invalidated assignment operator.
void reset()
Resets all generated values to allow computation of next interval.
Boundary myBoundary
The detector's boundary.
The gui-version of the MSInductLoop.
MyWrapper * myWrapper
the glObject wrapper for this induction loop
GUIInductLoop & myDetector
The wrapped detector.
void setSpecialColor(const RGBColor *color)
sets special caller for myWrapper
MyWrapper(GUIInductLoop &detector, double pos)
Constructor.
Stores the information about how to visualize structures.
A MSInductLoop-visualiser.
void enterDetectorByMove(SUMOTrafficObject &veh, double entryTimestep)
Introduces a vehicle to the detector's map myVehiclesOnDet.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
std::vector< VehicleData > collectVehiclesOnDet(SUMOTime t, bool leaveTime=false) const
Returns vehicle data for vehicles that have been on the detector starting at the given time.