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
27 Stem size depends on flag.
29 class Stem : public Item {
31 Real stem_bottom_f_, stem_top_f_;
34 /// needed for determining direction/length
37 /**extent of the stem (positions).
38 fractional, since Beam has to adapt them.
43 geen gedonder, jij gaat onder.
44 -1 stem points down, +1: stem points up
48 store the wholes (for vapourware tremolo)
50 Link_array<Note_head> whole_l_arr_;
51 Link_array<Note_head> head_l_arr_;
52 Link_array<Note_head> rest_l_arr_;
55 /// flagtype? 4 none, 8 8th flag, 0 = beam.
70 /// ensure that this Stem also encompasses the Notehead #n#
71 void add (Note_head*n);
73 DECLARE_MY_RUNTIME_TYPEINFO;
77 void do_print() const;
78 void set_stemend (Real);
79 Direction get_default_dir();
80 int get_center_distance_from_top();
81 int get_center_distance_from_bottom();
82 void set_default_dir();
83 void set_default_stemlen();
84 void set_default_extents();
87 Real stem_length_f() const;
88 Real stem_end_f() const;
89 Real stem_start_f() const;
91 bool invisible_b() const;
93 /// heads that the stem encompasses (positions)
94 int max_head_i() const;
95 int min_head_i() const;
97 virtual void do_substitute_dependency (Score_elem*,Score_elem*);
98 virtual void do_pre_processing();
99 virtual Interval do_width() const;
100 Molecule* brew_molecule_p() const;