]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/beam.hh
patch::: 1.3.124.jcn2
[lilypond.git] / lily / include / beam.hh
1 /*
2   beam.hh -- part of GNU LilyPond
3
4   (c) 1996--2000 Han-Wen Nienhuys
5 */
6
7 #ifndef BEAM_HH
8 #define BEAM_HH
9
10 #include "lily-proto.hh"
11 #include "lily-guile.hh"
12
13
14
15 class Beam
16 {
17 public:
18   static int visible_stem_count (Grob*);
19   static Item* first_visible_stem (Grob*);
20   static Item* last_visible_stem (Grob*);
21   static bool has_interface (Grob*);
22   static void set_interface (Grob*);  
23   DECLARE_SCHEME_CALLBACK(rest_collision_callback, (SCM element, SCM axis));
24   Beam (SCM);
25   static void add_stem (Grob*,Grob*);
26   static void set_beaming (Grob*,Beaming_info_list *);
27   static void set_stemlens (Grob*);
28   static int get_multiplicity (Grob*me);
29   DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
30   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
31   DECLARE_SCHEME_CALLBACK(after_line_breaking, (SCM ));
32   static Molecule stem_beams (Grob*,Item *here, Item *next, Item *prev);
33
34 private:
35   static Direction get_default_dir (Grob*);
36   static void set_stem_directions (Grob*);
37   static void consider_auto_knees (Grob*);
38   static void set_stem_shorten (Grob*);
39   static void calc_default_position_and_height (Grob*,Real* y, Real* dy);
40   static bool suspect_slope_b (Grob*, Real y, Real dy);
41   static Real calc_slope_damping_f (Grob*, Real dy);
42   static Real calc_stem_y_f (Grob*, Item* s, Real y, Real dy);
43   static Real check_stem_length_f (Grob*, Real y, Real dy);
44   static void set_stem_length (Grob*, Real y, Real dy);
45   static Real quantise_dy_f (Grob*, Real dy);
46   static Real quantise_y_f (Grob*, Real y, Real dy, int quant_dir);
47   static int forced_stem_count (Grob*);
48 };
49
50 #endif /* BEAM_HH */
51