20 #ifndef GLREGULARPOLYGON_H 21 #define GLREGULARPOLYGON_H 23 #include <tulip/GlPolygon.h> 24 #include <tulip/Size.h> 41 GlRegularPolygon(
const Coord &position,
const Size &size,
unsigned int numberOfSides,
42 const Color &outlineColor = Color(255, 0, 0, 255),
43 const Color &fillColor = Color(0, 0, 255, 255),
bool filled =
true,
44 bool outlined =
true,
const std::string &textureName =
"",
45 float outlineSize = 1.);
56 void setStartAngle(
float angle);
61 unsigned int getNumberOfSides();
66 void resizePoints(
const unsigned int number)
override;
71 void setNumberOfSides(
unsigned int number);
74 void computePolygon();
78 unsigned int numberOfSides;
class to create a regular polygon
Class to create a polygon GlEntity.