]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
6f7ffbb4711be42f89158d5d09d9dcc988f3061a
[lilypond.git] / lily / include / collision.hh
1 /*
2   collision.hh -- declare Collision
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef COLLISION_HH
11 #define COLLISION_HH
12
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
15
16
17 /**
18   Resolve conflicts between various Note_columns (chords).
19   
20   TODO 
21
22   * multistaff support (see Chlapik: equal noteheads should be on the
23   same hpos.)  
24
25   * Make interface of this, similar to align-interface.
26   
27   Properties:
28
29   elements -- (see Axis_group_interface)
30
31   merge-differently-dotted -- merge black noteheads with differing dot count.
32
33   horizontal-shift -- integer that identifies ranking of note-column for horizontal shifting.
34   
35   force-hshift -- amount of collision_note_width that overides automatic collision settings.
36   Read and removed from elements.
37   
38 */
39 class Collision                 // interface
40 {
41 public:
42   Score_element*  elt_l_;
43   static SCM automatic_shift (Score_element*);
44   static SCM forced_shift (Score_element*);
45   static Real force_shift_callback (Score_element const*, Axis);
46   static void do_shifts (Score_element*);
47
48   void add_column (Note_column*ncol_l);
49   Collision(Score_element*);
50 };
51 #endif // COLLISION_HH