20 #ifndef GLBEZIERCURVE_H_ 21 #define GLBEZIERCURVE_H_ 23 #include <tulip/AbstractGlCurve.h> 57 GlBezierCurve(
const std::vector<Coord> &controlPoints,
const Color &startColor,
58 const Color &endColor,
const float &startSize,
const float &endSize,
59 const unsigned int nbCurvePoints = 200);
63 void drawCurve(std::vector<Coord> &controlPoints,
const Color &startColor,
const Color &endColor,
64 const float startSize,
const float endSize,
65 const unsigned int nbCurvePoints = 200)
override;
68 Coord computeCurvePointOnCPU(
const std::vector<Coord> &controlPoints,
float t)
override;
70 void computeCurvePointsOnCPU(
const std::vector<Coord> &controlPoints,
71 std::vector<Coord> &curvePoints,
72 unsigned int nbCurvePoints)
override;
74 std::string genCurveVertexShaderSpecificCode();
A class to draw Bezier curves.