52 MSLane*
const lane,
double positionInMeters,
53 const std::string& vTypes)
109 double width = (double) 2.0 * s.
scale;
118 glScaled(exaggeration, exaggeration, 1);
120 glVertex2d(0 - 1.0, 2);
121 glVertex2d(-1.0, -2);
125 glTranslated(0, 0, .01);
127 glVertex2d(0, 2 - .1);
128 glVertex2d(0, -2 + .1);
132 if (width * exaggeration > 1) {
134 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
136 glVertex2f(0 - 1.0, 2);
137 glVertex2f(-1.0, -2);
141 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
145 if (width * exaggeration > 1) {
146 glRotated(90, 0, 0, -1);
const MSLane * getLane() const
Returns the lane the reminder works on.
double rotationDegreeAtOffset(double pos) const
Returns the rotation at the given length.
double scale
information about a lane's width (temporary, used for a single view)
double myFGRotation
The rotation in full-geometry mode.
GUIVisualizationTextSettings addName
Stores the information about how to visualize structures.
double y() const
Returns the y-position.
double x() const
Returns the x-position.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
An instantaneous induction loop.
const PositionVector & getShape() const
Returns this lane's shape.
Boundary myBoundary
The detector's boundary.
const std::string & getID() const
Returns the id.
A class that stores a 2D geometrical boundary.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIInstantInductLoop & myDetector
The wrapped detector.
GUIVisualizationSizeSettings addSize
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
GUIInstantInductLoop(const std::string &id, OutputDevice &od, MSLane *const lane, double positionInMeters, const std::string &vTypes)
Constructor.
GUIInstantInductLoop & getLoop()
Returns the detector itself.
~GUIInstantInductLoop()
Destructor.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
Boundary & grow(double by)
extends the boundary by the given amount
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
const double myPosition
Detector's position on lane [m].
The gui-version of the MSInstantInductLoop.
double myPosition
The position on the lane.
A MSInductLoop-visualiser.
const Position geometryPositionAtOffset(double offset, double lateralOffset=0) const
GUIGlID getGlID() const
Returns the numerical id of the object.
double getExaggeration(const GUIVisualizationSettings &s, double factor=20) const
return the drawing size including exaggeration and constantSize values
MyWrapper(GUIInstantInductLoop &detector, double pos)
Constructor.
Static storage of an output device and its base (abstract) implementation.
Position myFGPosition
The position in full-geometry mode.
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
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.