source file of the GNU LilyPond music typesetter
- (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#ifndef COLLISION_HH
#define COLLISION_HH
+
#include "lily-proto.hh"
-#include "horizontal-vertical-group-item.hh"
+#include "lily-guile.hh"
+
/**
Resolve conflicts between various Note_columns (chords).
TODO
- multistaff support (see Chlapik: equal noteheads should be on the
+ * multistaff support (see Chlapik: equal noteheads should be on the
same hpos.)
+
+ * Make interface of this, similar to align-interface.
+
*/
-class Collision : public Horizontal_vertical_group_item {
-protected:
- virtual void do_substitute_dependency (Score_element*,Score_element*);
- virtual void do_pre_processing();
+class Collision // interface
+{
public:
- Link_array<Note_column> clash_l_arr_;
- DECLARE_MY_RUNTIME_TYPEINFO;
- void add_column (Note_column*ncol_l);
- Collision();
+ static SCM automatic_shift (Score_element*);
+ static SCM forced_shift (Score_element*);
+ DECLARE_SCHEME_CALLBACK(force_shift_callback, (SCM element, SCM axis));
+ static void do_shifts (Score_element*);
+ static void add_column (Score_element*me,Score_element*ncol_l);
};
#endif // COLLISION_HH