2 tie-formatting-problem.hh -- declare
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #ifndef TIE_FORMATTING_PROBLEM_HH
11 #define TIE_FORMATTING_PROBLEM_HH
13 #include "drul-array.hh"
16 #include "lily-proto.hh"
27 Real between_length_limit_;
28 Grob *staff_symbol_referencer_;
31 void from_grob (Grob *);
35 typedef map< pair<int, int>, Tie_configuration *> Tie_configuration_map;
37 class Tie_formatting_problem
39 Drul_array< Array<Skyline_entry> > chord_outlines_;
40 set<int> dot_positions_;
43 Tie_configuration_map possibilities_;
45 Tie_configuration *get_configuration (int position, Direction dir);
46 Tie_configuration *generate_configuration (int position, Direction dir);
47 Real score_configuration (Tie_configuration const&);
48 Real score_aptitude (Tie_configuration const&, int);
57 Tie_formatting_problem ();
58 ~Tie_formatting_problem ();
60 Tie_configuration find_optimal_tie_configuration (int p, Direction d);
61 void from_ties (Link_array<Grob> const &ties);
62 void from_tie (Grob *tie);
63 void from_lv_ties (Link_array<Grob> const &);
64 void set_chord_outline (Link_array<Item>, Direction);
66 Interval get_attachment (Real) const;
67 Grob *common_x_refpoint () const;
70 #endif /* TIE_FORMATTING_PROBLEM_HH */