]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/slur.hh
release: 1.3.19
[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   int cross_staff_count () const;
19   Offset encompass_offset (Note_column const* )const;
20 public:
21   Slur ();
22   VIRTUAL_COPY_CONS(Score_element);
23
24   void add_column (Note_column*);
25
26
27 protected:
28   virtual Molecule* do_brew_molecule_p () const;
29   virtual Array<Offset> get_encompass_offset_arr () const;
30   Bezier get_curve () const;
31   Drul_array<Real> dy_f_drul_;
32   Drul_array<Real> dx_f_drul_;
33
34   virtual Direction get_default_dir () const;
35   virtual void do_post_processing ();
36   virtual void do_add_processing ();
37   Array<Rod> get_rods () const;
38 };
39
40 #endif // SLUR_HH
41
42