2 stem.hh -- declare Stem
4 (c) 1996,97 Han-Wen Nienhuys
12 #include "molecule.hh"
15 /**the rule attached to the ball.
21 \item up/down position.
24 should move beam_{left, right} into Beam
28 Stem size depends on flag.
30 class Stem : public Item {
32 Molecule abbrev_mol () const;
34 Real stem_bottom_f_, stem_top_f_;
37 /// needed for determining direction/length
40 /**extent of the stem (positions).
41 fractional, since Beam has to adapt them.
46 geen gedonder, jij gaat onder.
47 -1 stem points down, +1: stem points up
51 Link_array<Note_head> head_l_arr_;
52 Link_array<Rest> rest_l_arr_;
55 /// abbrev flag? + count
58 /// flagtype? 4 none, 8 8th flag, 0 = beam.
62 don't print flag when in beam.
63 our beam, for aligning abbrev flags
75 /// ensure that this Stem also encompasses the Notehead #n#
76 void add (Note_head*n);
79 DECLARE_MY_RUNTIME_TYPEINFO;
83 void do_print() const;
84 void set_stemend (Real);
85 Direction get_default_dir();
86 int get_center_distance_from_top();
87 int get_center_distance_from_bottom();
88 void set_default_dir();
89 void set_default_stemlen();
90 void set_default_extents();
93 Real stem_length_f() const;
94 Real stem_end_f() const;
95 Real stem_start_f() const;
97 bool invisible_b() const;
99 /// heads that the stem encompasses (positions)
100 int max_head_i() const;
101 int min_head_i() const;
103 virtual void do_substitute_dependency (Score_elem*,Score_elem*);
104 virtual void do_pre_processing();
105 virtual Interval do_width() const;
106 Molecule* brew_molecule_p() const;