Tulip
5.2.0
Large graphs analysis and drawing

#include <GlOpenUniformCubicBSpline.h>
Inherits AbstractGlCurve.
Public Member Functions  
GlOpenUniformCubicBSpline ()  
GlOpenUniformCubicBSpline (const std::vector< Coord > &controlPoints, const Color &startColor, const Color &endColor, const float startSize, const float endSize, const unsigned int nbCurvePoints=200)  
void  drawCurve (std::vector< Coord > &controlPoints, const Color &startColor, const Color &endColor, const float startSize, const float endSize, const unsigned int nbCurvePoints=200) override 
A class to draw open uniform cubic Bsplines.
A Bspline is a convenient form for representing complicated, smooth curves. A cubic uniform Bspline is a piecewise collection of cubic Bezier curves, connected end to end. A cubic Bspline is C^2 continuous, meaning there is no discontinuities in curvature. Bsplines have local control : parameters of a Bspline only affect a small part of the entire spline. A Bspline is qualified as open when it passes through its first and last control points.
Definition at line 40 of file GlOpenUniformCubicBSpline.h.
tlp::GlOpenUniformCubicBSpline::GlOpenUniformCubicBSpline  (  ) 
Constructor.
tlp::GlOpenUniformCubicBSpline::GlOpenUniformCubicBSpline  (  const std::vector< Coord > &  controlPoints, 
const Color &  startColor,  
const Color &  endColor,  
const float  startSize,  
const float  endSize,  
const unsigned int  nbCurvePoints = 200 

) 
GlOpenUniformCubicBSpline constructor.
controlPoints  a vector of control points (size must be greater or equal to 4) 
startColor  the color at the start of the curve 
endColor  the color at the end of the curve 
startSize  the width at the start of the curve 
endSize  the width at the end of the curve 
nbCurvePoints  the number of curve points to generate 