25 #ifndef DOXYGEN_NOTFOR_DEVEL
29 #include <tulip/Color.h>
30 #include <tulip/Coord.h>
31 #include <tulip/tulipconf.h>
33 #include <tulip/GlSimpleEntity.h>
42 class TLP_GL_SCOPE GlLine :
public GlSimpleEntity {
47 GlLine():width(1.0),factor(1),pattern(0) {}
51 GlLine(
const std::vector<Coord> &points,
52 const std::vector<Color> &colors);
59 void draw(
float lod,Camera *camera);
64 virtual void resizePoints(
const unsigned int nbPoints);
68 virtual void resizeColors(
const unsigned int nbColors);
70 virtual const Coord& point(
const unsigned int i)
const;
74 virtual Coord& point(
const unsigned int i);
78 virtual void addPoint(
const Coord& point,
const Color& color);
83 virtual const Color& color(
const unsigned int i)
const;
87 virtual Color& color(
const unsigned int i);
91 virtual void setLineWidth(
float width);
95 virtual void setLineStipple(
unsigned char factor,
unsigned int pattern);
100 virtual void translate(
const Coord& vec);
105 virtual void getXML(std::string &outString);
110 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
113 std::vector<Coord> _points;
114 std::vector<Color> _colors;
116 unsigned char factor;
117 unsigned int pattern;
122 #endif // DOXYGEN_NOTFOR_DEVEL