22 #ifndef Tulip_GLCURVE_H
23 #define Tulip_GLCURVE_H
25 #include <tulip/GlSimpleEntity.h>
31 class TLP_GL_SCOPE GlCurve :
public GlSimpleEntity {
36 GlCurve(
const std::vector<tlp::Coord> &points,
37 const Color &beginFColor,
38 const Color &endFColor,
39 const float &beginSize=0.,
40 const float &endSize=0.);
45 GlCurve(
const unsigned int nbPoints = 3u);
51 void draw(
float lod,Camera *camera);
56 void setTexture(
const std::string &texture);
61 virtual void resizePoints(
const unsigned int nbPoints);
66 virtual const tlp::Coord& point(
const unsigned int i)
const;
70 virtual tlp::Coord& point(
const unsigned int i);
75 virtual void translate(
const Coord& mouvement);
80 virtual void getXML(std::string &outString);
85 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
88 std::vector<tlp::Coord> _points;
89 Color _beginFillColor;