25 #ifndef DOXYGEN_NOTFOR_DEVEL
27 #include <tulip/Color.h>
28 #include <tulip/Coord.h>
29 #include <tulip/tulipconf.h>
30 #include <tulip/GlSimpleEntity.h>
39 class TLP_GL_SCOPE GlLine :
public GlSimpleEntity {
44 GlLine():width(1.0),factor(1),pattern(0) {}
48 GlLine(
const std::vector<Coord> &points,
49 const std::vector<Color> &colors);
56 void draw(
float lod,Camera *camera);
61 virtual void resizePoints(
const unsigned int nbPoints);
65 virtual void resizeColors(
const unsigned int nbColors);
67 virtual const Coord& point(
const unsigned int i)
const;
71 virtual Coord& point(
const unsigned int i);
75 virtual void addPoint(
const Coord& point,
const Color& color);
80 virtual const Color& color(
const unsigned int i)
const;
84 virtual Color& color(
const unsigned int i);
88 virtual void setLineWidth(
float width);
92 virtual void setLineStipple(
unsigned char factor,
unsigned int pattern);
97 virtual void translate(
const Coord& vec);
102 virtual void getXML(std::string &outString);
107 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
110 std::vector<Coord> _points;
111 std::vector<Color> _colors;
113 unsigned char factor;
114 unsigned int pattern;
119 #endif // DOXYGEN_NOTFOR_DEVEL