20 #ifndef GLREGULARPOLYGON_H 
   21 #define GLREGULARPOLYGON_H 
   23 #include <tulip/GlPolygon.h> 
   24 #include <tulip/Size.h> 
   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.);
 
   74   void computePolygon();
 
   78   unsigned int numberOfSides;
 
Class to create a polygon GlEntity.
 
class to create a regular polygon
 
void resizePoints(const unsigned int number) override
Set the number of sides (use setNumberOfSides)
 
unsigned int getNumberOfSides()
Get the number of Sides.
 
void setNumberOfSides(unsigned int number)
Set the number of sides.
 
void setStartAngle(float angle)
Set the start angle in radian.
 
~GlRegularPolygon() override
Destructor.
 
GlRegularPolygon(const Coord &position, const Size &size, unsigned int numberOfSides, const Color &outlineColor=Color(255, 0, 0, 255), const Color &fillColor=Color(0, 0, 255, 255), bool filled=true, bool outlined=true, const std::string &textureName="", float outlineSize=1.)
Constructor.