22 #ifndef Tulip_GLCURVE_H
23 #define Tulip_GLCURVE_H
25 #include <tulip/Color.h>
26 #include <tulip/Coord.h>
28 #include <tulip/GlSimpleEntity.h>
34 class TLP_GL_SCOPE GlCurve :
public GlSimpleEntity {
39 GlCurve(
const std::vector<tlp::Coord> &points,
40 const Color &beginFColor,
41 const Color &endFColor,
42 const float &beginSize=0.,
43 const float &endSize=0.);
48 GlCurve(
const unsigned int nbPoints = 3u);
54 void draw(
float lod,Camera *camera);
59 void setTexture(
const std::string &texture);
64 virtual void resizePoints(
const unsigned int nbPoints);
69 virtual const tlp::Coord& point(
const unsigned int i)
const;
73 virtual tlp::Coord& point(
const unsigned int i);
78 virtual void translate(
const Coord& mouvement);
83 virtual void getXML(std::string &outString);
88 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
91 std::vector<tlp::Coord> _points;
92 Color _beginFillColor;