]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
release: 0.1.61
[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--1998 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef COLLISION_HH
11 #define COLLISION_HH
12 #include "lily-proto.hh"
13 #include "horizontal-vertical-group-item.hh"
14
15 /**
16   Resolve conflicts between various Note_columns (chords).
17   
18   TODO 
19
20   multistaff support (see Chlapik: equal noteheads should be on the
21   same hpos.)  
22 */
23 class Collision : public Horizontal_vertical_group_item {
24 protected:
25     virtual void do_substitute_dependency (Score_elem*,Score_elem*);
26     virtual void do_pre_processing();
27 public:
28     Link_array<Note_column> clash_l_arr_;
29     DECLARE_MY_RUNTIME_TYPEINFO;
30     void add (Note_column*ncol_l);
31     Collision();
32 };
33 #endif // COLLISION_HH