62 GUIPolygon(
const std::string&
id,
const std::string& type,
64 double layer = 0,
double angle = 0,
const std::string& imgFile =
"");
void performTesselation(double lineWidth) const
void storeTesselation(double lineWidth) const
store the drawing commands in a display list
Stores the information about how to visualize structures.
void setLineWidth(double lineWidth)
set a new shape and update the tesselation
A class that stores a 2D geometrical boundary.
GLuint myDisplayList
id of the display list for the cached tesselation
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
virtual void setShape(const PositionVector &shape)
set a new shape and update the tesselation
virtual void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
MFXMutex myLock
The mutex used to avoid concurrent updates of the shape.
double myLineWidth
the previous line width for deciding whether the display list must be refreshed
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
A window containing a gl-object's parameter.
GUIPolygon(const std::string &id, const std::string &type, const RGBColor &color, const PositionVector &shape, bool geo, bool fill, double layer=0, double angle=0, const std::string &imgFile="")
Constructor.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.