]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-collision.hh
collision note head merge
[lilypond.git] / lily / include / note-collision.hh
1 /*
2   collision.hh -- declare Collision
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2002 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 */
28 class Note_collision_interface
29 {
30 public:
31   static SCM automatic_shift (Grob*, Drul_array< Link_array <Grob>  >);
32   static SCM forced_shift (Grob*);
33   
34   static Drul_array< Link_array <Grob>  > get_clash_groups (Grob *me);
35   DECLARE_SCHEME_CALLBACK (force_shift_callback, (SCM element, SCM axis));
36   static void do_shifts (Grob*);
37   static void add_column (Grob*me,Grob*ncol_l);
38   static bool has_interface(Grob*);
39 };
40 #endif // COLLISION_HH