2 stem.hh -- declare Stem
4 (c) 1996--1999 Han-Wen Nienhuys
13 #include "molecule.hh"
14 #include "directional-element.hh"
15 #include "stem-info.hh"
17 /**the rule attached to the ball.
23 \item up/down position.
26 should move beam_{left, right} into Beam
30 Stem size depends on flag.
34 beam_dir: direction of the beam (int)
36 dir_force: is direction explicitely specified? (bool)
38 /// how many abbrev beam don't reach stem?
44 class Stem : public Item,
45 public Directional_element
48 /**extent of the stem (positions).
49 fractional, since Beam has to adapt them.
54 /// log of the duration. Eg. 4 -> 16th note -> 2 flags
57 int beam_count (Direction) const;
58 void set_beaming (int, Direction d);
60 don't print flag when in beam.
61 our beam, for aligning abbrev flags
63 Beam* beam_l () const;
64 Note_head * first_head () const;
65 Score_element * support_head () const;
67 /// ensure that this Stem also encompasses the Notehead #n#
68 void add_head (Rhythmic_head*n);
71 Stem_info calc_stem_info () const;
73 Real chord_start_f () const;
76 void set_stemend (Real);
77 Direction get_default_dir() const;
79 int get_center_distance(Direction) const;
81 void set_default_stemlen();
82 void set_default_extents();
85 Real stem_end_f() const;
86 Real stem_begin_f() const;
87 Real note_delta_f () const;
89 bool invisible_b() const;
91 /// heads that the stem encompasses (positions)
92 Interval_t<int> head_positions() const;
95 Molecule flag () const;
97 virtual void do_pre_processing();
98 static Interval dim_callback (Dimension_cache const*);
99 virtual Molecule* do_brew_molecule_p() const;
101 void set_spacing_hints () ;