24 #ifndef DOXYGEN_NOTFOR_DEVEL 26 #include <tulip/Color.h> 27 #include <tulip/Coord.h> 28 #include <tulip/tulipconf.h> 29 #include <tulip/GlSimpleEntity.h> 38 class TLP_GL_SCOPE GlLine :
public GlSimpleEntity {
43 GlLine() : width(1.0), factor(1), pattern(0) {}
47 GlLine(
const std::vector<Coord> &points,
const std::vector<Color> &colors);
54 void draw(
float lod, Camera *camera)
override;
59 virtual void resizePoints(
const unsigned int nbPoints);
63 virtual void resizeColors(
const unsigned int nbColors);
65 virtual const Coord &point(
const unsigned int i)
const;
69 virtual Coord &point(
const unsigned int i);
73 virtual void addPoint(
const Coord &point,
const Color &color);
78 virtual const Color &color(
const unsigned int i)
const;
82 virtual Color &color(
const unsigned int i);
86 virtual void setLineWidth(
float width);
91 virtual void setLineStipple(
unsigned char factor,
unsigned int pattern);
96 void translate(
const Coord &vec)
override;
101 void getXML(std::string &outString)
override;
106 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
109 std::vector<Coord> _points;
110 std::vector<Color> _colors;
112 unsigned char factor;
113 unsigned int pattern;
117 #endif // DOXYGEN_NOTFOR_DEVEL