44 #ifdef CHECK_MEMORY_LEAKS
46 #endif // CHECK_MEMORY_LEAKS
74 myDetector(detector), myPosition(pos) {
101 ret->
mkItem(
"lane",
false, myDetector.getLane()->getID());
111 glPushName(getGlID());
117 glTranslated(0, 0, getType());
118 glTranslated(myFGPosition.x(), myFGPosition.y(), 0);
119 glRotated(myFGRotation, 0, 0, 1);
122 glVertex2d(0 - 1.0, 2);
123 glVertex2d(-1.0, -2);
127 glTranslated(0, 0, .01);
129 glVertex2d(0, 2 - .1);
130 glVertex2d(0, -2 + .1);
136 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
138 glVertex2f(0 - 1.0, 2);
139 glVertex2f(-1.0, -2);
143 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
148 glRotated(90, 0, 0, -1);
156 drawName(getCenteringBoundary().getCenter(), s.
scale, s.
addName);
MyWrapper(GUIInstantInductLoop &detector, SUMOReal pos)
Constructor.
GUIInstantInductLoop(const std::string &id, OutputDevice &od, MSLane *const lane, SUMOReal positionInMeters)
Constructor.
GUIVisualizationTextSettings addName
const Position geometryPositionAtOffset(SUMOReal offset) const
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Stores the information about how to visualize structures.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
An instantaneous induction loop.
Boundary myBoundary
The detector's boundary.
SUMOReal x() const
Returns the x-position.
A class that stores a 2D geometrical boundary.
const MSLane * getLane() const
Returns the lane the reminder works on.
const SUMOReal myPosition
Detector's position on lane [m].
SUMOReal scale
information about a lane's width (temporary, used for a single view)
SUMOReal myFGRotation
The rotation in full-geometry mode.
float addExaggeration
The additional structures exaggeration (upscale)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GUIInstantInductLoop & getLoop()
Returns the detector itself.
~GUIInstantInductLoop()
Destructor.
SUMOReal rotationDegreeAtOffset(SUMOReal pos) const
Returns the rotation at the given length.
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
Boundary & grow(SUMOReal by)
extends the boundary by the given amount
The gui-version of the MSInstantInductLoop.
A MSInductLoop-visualiser.
SUMOReal y() const
Returns the y-position.
const PositionVector & getShape() const
Returns this lane's shape.
Static storage of an output device and its base (abstract) implementation.
Position myFGPosition
The position in full-geometry mode.
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.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.