57 GUIPolygon(
const std::string&
id,
const std::string& type,
59 double layer = 0,
double angle = 0,
const std::string& imgFile =
"",
bool relativePath =
false);
void drawInnerPolygon(const GUIVisualizationSettings &s, bool disableSelectionColor) const
draw inner Polygon (before pushName() )
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.
FXMutex myLock
The mutex used to avoid concurrent updates of the shape.
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.
bool checkDraw(const GUIVisualizationSettings &s) const
check if Polygon can be drawn
virtual void setShape(const PositionVector &shape)
set a new shape and update the tesselation
void setColor(const GUIVisualizationSettings &s, bool disableSelectionColor) const
set color
virtual void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIPolygon(const std::string &id, const std::string &type, const RGBColor &color, const PositionVector &shape, bool geo, bool fill, double lineWidth, double layer=0, double angle=0, const std::string &imgFile="", bool relativePath=false)
Constructor.
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.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.