]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
64052db5e013f9415145a2ae5b5e0d0d47f6d11c
[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 #include "lily-proto.hh"
13 #include "item.hh"
14 #include "tuple.hh"
15
16 //junkme, use SCM conses.
17 typedef Tuple<Score_element*, Real> Shift_tup;
18
19 /**
20   Resolve conflicts between various Note_columns (chords).
21   
22   TODO 
23
24   multistaff support (see Chlapik: equal noteheads should be on the
25   same hpos.)  
26 */
27 class Collision : public Item
28 {
29 protected:
30   Array<Shift_tup> automatic_shift ();
31   Array<Shift_tup> forced_shift ();
32   
33   virtual void before_line_breaking ();
34 public:
35     
36   void add_column (Note_column*ncol_l);
37   Collision();
38 };
39 #endif // COLLISION_HH