2 stem.hh -- declare Stem
4 (c) 1996--2000 Han-Wen Nienhuys
13 #include "molecule.hh"
14 #include "stem-info.hh"
16 /**the rule attached to the ball.
22 \item up/down position.
25 should move beam_{left, right} into Beam
29 Stem size depends on flag.
33 beam_dir: direction of the beam (int)
35 dir_force: is direction explicitely specified? (bool)
37 /// how many abbrev beam don't reach stem?
43 class Stem : public Item
46 /// log of the duration. Eg. 4 -> 16th note -> 2 flags
49 int beam_count (Direction) const;
50 void set_beaming (int, Direction d);
52 don't print flag when in beam.
53 our beam, for aligning abbrev flags
55 Beam* beam_l () const;
56 Note_head * first_head () const;
57 Drul_array<Note_head*> extremal_heads () const;
59 Score_element * support_head () const;
62 /// ensure that this Stem also encompasses the Notehead #n#
63 void add_head (Rhythmic_head*n);
65 Stem_info calc_stem_info () const;
67 Real chord_start_f () const;
68 Direction get_direction () const;
70 void set_stemend (Real);
71 Direction get_default_dir() const;
73 int get_center_distance(Direction) const;
76 bool invisible_b() const;
78 /// heads that the stem encompasses (positions)
79 Interval head_positions() const;
82 friend class Stem_tremolo; // ugh.
83 Real get_default_stem_end_position () const;
84 void position_noteheads();
87 Real stem_end_position () const;
88 static Real off_callback (Dimension_cache const*);
90 Molecule flag () const;
92 virtual void before_line_breaking();
93 static Interval dim_callback (Dimension_cache const*);
94 virtual Molecule do_brew_molecule() const;
96 void set_spacing_hints () ;