]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/slur.hh
release: 1.3.69
[lilypond.git] / lily / include / slur.hh
1 /*
2   slur.hh -- declare Slur
3
4   (c) 1996--2000 Han-Wen Nienhuys
5 */
6
7 #ifndef SLUR_HH
8 #define SLUR_HH
9
10 #include "spanner.hh"
11 #include "rod.hh"
12
13 /**
14   A #Bow# which tries to drape itself around the stems too.
15  */
16 class Slur : public Spanner
17 {
18 public:
19   Slur (SCM);
20   VIRTUAL_COPY_CONS(Score_element);
21
22   void add_column (Note_column*);
23  static SCM brew_molecule (SCM);
24   
25   Array<Offset> get_encompass_offset_arr () const;
26   Bezier get_curve () const;
27
28   Direction get_default_dir () const;
29   static SCM after_line_breaking (SCM);
30   Array<Rod> get_rods () const;
31   Offset get_attachment (Direction dir, Score_element**common) const;
32
33 private:  
34   void de_uglyfy (Slur_bezier_bow* bb, Real default_height);
35   void set_extremities ();
36   void set_control_points ();
37   Offset encompass_offset (Score_element *col,Score_element**common)const;
38 };
39
40 #endif // SLUR_HH
41
42