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