21 #ifndef Tulip_GLCURVE_H 22 #define Tulip_GLCURVE_H 24 #include <tulip/GlSimpleEntity.h> 30 class TLP_GL_SCOPE GlCurve :
public GlSimpleEntity {
35 GlCurve(
const std::vector<tlp::Coord> &points,
const Color &beginFColor,
const Color &endFColor,
36 const float &beginSize = 0.,
const float &endSize = 0.);
41 GlCurve(
const unsigned int nbPoints = 3u);
47 void draw(
float lod, Camera *camera)
override;
52 void setTexture(
const std::string &texture);
57 virtual void resizePoints(
const unsigned int nbPoints);
62 virtual const tlp::Coord &point(
const unsigned int i)
const;
66 virtual tlp::Coord &point(
const unsigned int i);
71 void translate(
const Coord &mouvement)
override;
76 void getXML(std::string &outString)
override;
81 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
84 std::vector<tlp::Coord> _points;
85 Color _beginFillColor;