]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/bezier-bow.hh
release: 1.3.29
[lilypond.git] / lily / include / bezier-bow.hh
1 /*   
2   bezier-bow.hh -- declare Bezier_bow
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef BEZIER_BOW_HH
11 #define BEZIER_BOW_HH
12
13 #include "bezier.hh"
14 #include "lily-proto.hh"
15 #include "lily-guile.hh"
16
17 /**
18   Implement bow specific bezier curve. Calculate bezier curve for bow
19   from bow paratime_signatures.  */
20 class Bezier_bow
21 {
22 public:
23   Bezier_bow (Array<Offset> encompass, Direction dir);
24
25   Bezier get_bezier () const;
26   Bezier get_default_bezier (Real h_inf, Real r_0) const;
27   Real get_default_height (Real h_inf, Real r_0, Real length) const;
28   void set_default_bezier (Real h_inf, Real r_0);
29
30   /**
31      The canonical bezier.
32    */
33   Bezier curve_;
34
35 protected:
36   Array<Offset> encompass_;
37
38 private:
39   void to_canonical_form ();
40   Direction dir_;
41   Real alpha_;
42   Offset origin_;
43 };
44
45
46 #endif /* BEZIER_BOW_HH */
47