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