TuttleOFX  1
tuttle::plugin::warp::bezier Namespace Reference

Functions

double barycentre (const double a, const double b, const double c, const double d, const double t)
point2< double > barycentre (const std::vector< point2< double > > &pts, const double t)
void tracerPoint (const point2< double > &p)
void drawBezier (const std::vector< point2< double > > &tabPts, const std::size_t nbBezier, const double r, const double v, const double b)
void bezierSubdivide (const std::vector< point2< double > > &pts, const std::size_t subdivs, std::vector< point2< double > > &outputPts)

Function Documentation

double tuttle::plugin::warp::bezier::barycentre ( const double  a,
const double  b,
const double  c,
const double  d,
const double  t 
)

Definition at line 11 of file bezier.cpp.

Referenced by barycentre(), bezierSubdivide(), and drawBezier().

point2< double > tuttle::plugin::warp::bezier::barycentre ( const std::vector< point2< double > > &  pts,
const double  t 
)

Definition at line 18 of file bezier.cpp.

References barycentre(), and tuttle::plugin::av::pts.

Here is the call graph for this function:

void tuttle::plugin::warp::bezier::bezierSubdivide ( const std::vector< point2< double > > &  pts,
const std::size_t  subdivs,
std::vector< point2< double > > &  outputPts 
)
Parameters:
[in]ptsList of four points [A, A tangent, B tangent, B]
[in]subdivsNumber of subdivisions
[out]outputPtsOutput list of bezier points

Definition at line 51 of file bezier.cpp.

References barycentre(), and tuttle::plugin::av::pts.

Referenced by tuttle::plugin::warp::WarpPlugin::getProcessParams().

Here is the call graph for this function:

void tuttle::plugin::warp::bezier::drawBezier ( const std::vector< point2< double > > &  tabPts,
const std::size_t  nbBezier,
const double  r,
const double  v,
const double  b 
)

Definition at line 32 of file bezier.cpp.

References barycentre(), tuttle::plugin::warp::pointWidth, and tracerPoint().

Referenced by tuttle::plugin::warp::WarpOverlayInteract::draw().

Here is the call graph for this function:

void tuttle::plugin::warp::bezier::tracerPoint ( const point2< double > &  p)

Definition at line 26 of file bezier.cpp.

Referenced by drawBezier().