]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-column.hh
805b969bbc1f5d278474977b405109a0650f0c88
[lilypond.git] / lily / include / note-column.hh
1 /*
2   note-column.hh -- declare Note_column
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef NOTE_COLUMN_HH
11 #define NOTE_COLUMN_HH
12 #include "item.hh"
13 #include "script-column.hh"
14
15 /** a struct for treating a group of noteheads (noteheads, stem
16   (chord) and scripts ) as a single entity.  */
17 class Note_column : public Script_column {
18 protected:
19     virtual void do_pre_processing();
20     virtual void do_substitute_dependency(Score_elem*,Score_elem*);
21 public:
22         /// link to the stem. For setting default direction
23     Stem * stem_l_;
24
25     bool h_shift_b_;
26     
27     Link_array<Note_head> head_l_arr_;
28     Interval_t<int> head_positions_interval()const;
29
30     /** The relative position of the "voice" containing this
31       chord. Normally this would be the same as the stem direction,
32       but rests do not have stems.  */
33     int dir_i_;
34    
35         
36     NAME_MEMBERS();
37     Note_column();
38     void add(Note_head *);
39     void add(Stem *);
40     void sort();
41     void add(Script* s) { Script_column::add(s);}
42 };
43
44 #endif // NOTE_COLUMN_HH