/*
bezier.hh -- declare Bezier and Bezier_bow
- (c) 1998 Jan Nieuwenhuizen <jan@digicash.com>
+ (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#ifndef BEZIER_HH
class Bezier
{
public:
- Bezier (int steps_i);
+ Bezier ();
/**
Calculate bezier curve into Offset (x,y) array.
*/
- void calc ();
+ void calc (int steps);
void set (Array<Offset> points);
Bezier_bow (Paper_def* paper_l);
/**
- Calculate bezier curve for bow from bow parameters.
+ Calculate bezier curve for bow from bow paratime_signatures.
*/
void blow_fit ();
- Real calc_f (Real height);
void calc ();
+ Real calc_f (Real height);
+ void calc_bezier ();
+ bool calc_clipping ();
void calc_controls ();
void calc_default (Real h);
void calc_return (Real begin_alpha, Real end_alpha);
+ void calc_tangent_controls ();
bool check_fit_bo ();
Real check_fit_f ();
void set (Array<Offset> points, int dir);
void transform ();
- void transform_controls_back ();
+ void transform_back ();
Paper_def* paper_l_;
Curve encompass_;