2 stem.hh -- declare Stem
4 (c) 1996,97 Han-Wen Nienhuys
14 /**the rule attached to the ball.
20 \item up/down position.
23 should move beam_{left, right} into Beam
25 class Stem : public Item {
27 Real stem_bottom_f_, stem_top_f_;
30 /// needed for determining direction/length
33 /**extent of the stem (positions).
34 fractional, since Beam has to adapt them.
39 geen gedonder, jij gaat onder.
40 -1 stem points down, +1: stem points up
44 store the wholes (for vapourware tremolo)
46 Array<Notehead*> whole_l_arr_;
47 Array<Notehead*> head_l_arr_;
48 Array<Notehead*> rest_l_arr_;
51 /// flagtype? 4 none, 8 8th flag, 0 = beam.
64 Stem(int staff_size_i);
66 /// ensure that this Stem also encompasses the Notehead #n#
73 void do_print() const;
74 void set_stemend(Real);
75 int get_default_dir();
76 void set_default_dir();
77 void set_default_stemlen();
78 void set_default_extents();
81 Real stem_length_f()const;
82 Real stem_end_f()const;
83 Real stem_start_f() const;
85 bool invisible_b()const;
87 /// heads that the stem encompasses (positions)
88 int max_head_i() const;
89 int min_head_i() const;
91 void do_pre_processing();
92 virtual Interval do_width() const;
93 Molecule* brew_molecule_p() const;