56 bool geo,
bool fill,
double lineWidth,
double layer = 0,
double angle = 0,
const std::string& imgFile =
"",
57 bool relativePath =
false,
const std::string& name =
DEFAULT_NAME);
123 const PositionVector shape,
const bool drawFill,
double layer,
bool disableSelectionColor,
int alphaOverride = -1);
A class that stores a 2D geometrical boundary.
A window containing a gl-object's parameter.
virtual void setShape(const PositionVector &shape)
set a new shape and update the tesselation
static bool checkDraw(const GUIVisualizationSettings &s, const SUMOPolygon *polygon, const GUIGlObject *o)
check if Polygon can be drawn
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
virtual void setShapeNaviDegree(const double angle)
Sets a new angle in navigational degrees.
static void drawInnerPolygon(const GUIVisualizationSettings &s, const SUMOPolygon *polygon, const GUIGlObject *o, const PositionVector shape, const bool drawFill, double layer, bool disableSelectionColor, int alphaOverride=-1)
draw inner Polygon (before pushName() )
void storeTesselation(const bool fill, const PositionVector &shape, double lineWidth) const
store the drawing commands in a display list
PositionVector * myRotatedShape
shape rotated on the centroid, if rotation is needed, nullptr otherwise
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, const std::string &name=DEFAULT_NAME)
Constructor.
GLuint myDisplayList
id of the display list for the cached tesselation
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
static void performTesselation(const bool fill, const PositionVector &shape, const double lineWidth)
FXMutex myLock
The mutex used to avoid concurrent updates of the shape.
static void setColor(const GUIVisualizationSettings &s, const SUMOPolygon *polygon, const GUIGlObject *o, bool disableSelectionColor, int alphaOverride)
set color
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
double getExaggeration(const GUIVisualizationSettings &s) const
return exaggeration asociated with this GLObject
virtual void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Stores the information about how to visualize structures.
PositionVector myShape
The positions of the polygon.
virtual void setShapeNaviDegree(const double angle)
Sets a new angle in navigational degrees.
static const std::string DEFAULT_NAME