44 const std::string name,
const std::string& vTypes,
45 const std::string& nextEdges,
48 MEInductLoop(id, s, position, name, vTypes, nextEdges, detectPersons)
127 glPolygonOffset(0, -2);
128 double width = (double) 2.0 * s.
scale;
136 glScaled(exaggeration, exaggeration, exaggeration);
138 glVertex2d(0 - 1.0, 2);
139 glVertex2d(-1.0, -2);
146 glVertex2d(0, 2 - .1);
147 glVertex2d(0, -2 + .1);
151 if (width * exaggeration > 1) {
153 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
155 glVertex2d(0 - 1.0, 2);
156 glVertex2d(-1.0, -2);
160 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
164 if (width * exaggeration > 1) {
165 glRotated(90, 0, 0, -1);
@ GLO_E1DETECTOR_ME
a E1 detector
GUIIcon
An enumeration of icons used by the gui applications.
A class that stores a 2D geometrical boundary.
static void pushName(unsigned int name)
push Name
static void popMatrix()
pop matrix
static void popName()
pop Name
static void pushMatrix()
push matrix
GUIDetectorWrapper(GUIGlObjectType type, const std::string &id, FXIcon *icon)
Constructor.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual Position getCenter() const
GUIGlID getGlID() const
Returns the numerical id of the object.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const
draw name of item
GUIMEInductLoop & myDetector
The wrapped detector.
double getExaggeration(const GUIVisualizationSettings &s) const override
return exaggeration associated with this GLObject
Boundary myBoundary
The detector's boundary.
Position myFGPosition
The position in full-geometry mode.
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
double myPosition
The position on the lane.
GUIMEInductLoop & getLoop()
Returns the detector itself.
double myFGRotation
The rotation in full-geometry mode.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own parameter window.
MyWrapper(GUIMEInductLoop &detector, double pos)
Constructor.
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
GUIMEInductLoop(const std::string &id, MESegment *s, double position, const std::string name, const std::string &vTypes, const std::string &nextEdges, int detectPersons, bool show)
Construtor.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns this detector's visualisation-wrapper.
~GUIMEInductLoop()
Destructor.
A window containing a gl-object's parameter.
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
Stores the information about how to visualize structures.
GUIVisualizationTextSettings addName
GUIVisualizationSizeSettings addSize
double scale
information about a lane's width (temporary, used for a single view)
MESegment *const mySegment
mesoscopic edge segment the loop lies on
MEInductLoop(const std::string &id, MESegment *s, double positionInMeters, const std::string name, const std::string &vTypes, const std::string &nextEdges, int detectPersons)
const double myPosition
position from the start of the edge / lane
A single mesoscopic segment (cell).
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
Representation of a lane in the micro simulation.
virtual const PositionVector & getShape(bool) const
const Position geometryPositionAtOffset(double offset, double lateralOffset=0) const
const std::string & getID() const
Returns the id.
double rotationDegreeAtOffset(double pos) const
Returns the rotation at the given length.
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values