25 #include <tulip/Color.h>
26 #include <tulip/Coord.h>
27 #include <tulip/tulipconf.h>
28 #include <tulip/GlAbstractPolygon.h>
42 GlPolygon(
const bool filled =
true,
const bool outlined =
true,
43 const std::string &textureName =
"",
const float outlineSize = 1);
48 GlPolygon(
const std::vector<Coord> &points,
const std::vector<Color> &fillColors,
49 const std::vector<Color> &outlineColors,
const bool filled,
const bool outlined,
50 const std::string &textureName =
"",
const float outlineSize = 1);
55 GlPolygon(
const unsigned int nbPoints,
const unsigned int nbFillColors,
56 const unsigned int nbOutlineColors,
const bool filled =
true,
57 const bool outlined =
true,
const std::string &textureName =
"",
58 const float outlineSize = 1);
73 virtual const Coord &
point(
const unsigned int i)
const;
77 virtual Coord &
point(
const unsigned int i);
class to create a abstract polygon
Class to create a polygon GlEntity.
virtual void resizeColors(const unsigned int nbColors)
Change number of colors of the polygon.
GlPolygon(const bool filled=true, const bool outlined=true, const std::string &textureName="", const float outlineSize=1)
Constructor where specify if the polygon is filled, is outlines the texture name and the outline size...
virtual Coord & point(const unsigned int i)
return the ith point
virtual const Coord & point(const unsigned int i) const
return the ith point
GlPolygon(const std::vector< Coord > &points, const std::vector< Color > &fillColors, const std::vector< Color > &outlineColors, const bool filled, const bool outlined, const std::string &textureName="", const float outlineSize=1)
Constructor with a vector of point, a vector of fill color, a vector of outline color and if the poly...
virtual void resizePoints(const unsigned int nbPoints)
Change number of point of the polygon.
GlPolygon(const unsigned int nbPoints, const unsigned int nbFillColors, const unsigned int nbOutlineColors, const bool filled=true, const bool outlined=true, const std::string &textureName="", const float outlineSize=1)
Constructor with a number of point, a number of fill color, a number of outline color and if the poly...