- /**
- The beams should be prevented to conflict with the stafflines,
- especially at small slopes.
- */
- enum Quantisation { NONE, NORMAL, TRADITIONAL, TEST };
- enum Dir_algorithm { /* DOWN=-1, UP=1, */ MAJORITY=2, MEAN, MEDIAN };
-
- Link_array<Stem> stems_;
- /// the slope of the beam in posns / point (dimension)
- Real slope_f_;
- /// the slope as solved; not quantised or damped
- Real solved_slope_f_;
-
- /// position of leftmost end of beam
- Real left_y_;
- /// should beam slope be damped? 0: no, 1: yes, 100000: horizontal beams
- int damping_i_;
- /// should beam pos / slope be quantised? 0: no, 1: yes, 2: traditional
- Quantisation quantisation_;
- /// maximum number of beams (for opening-up of beam-spacing)
- int multiple_i_;
+ static int visible_stem_count (Grob*);
+ static Grob* first_visible_stem (Grob*);
+ static Grob* last_visible_stem (Grob*);
+ static bool has_interface (Grob*);
+ DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM axis));
+ Beam (SCM);
+ static void add_stem (Grob*,Grob*);
+ static bool is_knee (Grob*);
+ static void set_beaming (Grob*,Beaming_info_list *);
+ static void set_stemlens (Grob*);
+ static int get_beam_count (Grob*me);
+ static void position_beam (Grob* me);
+ static Real get_beam_translation (Grob*me);
+ static Real get_thickness (Grob*me);