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_;
41 Tie_configuration_map possibilities_;
43 Tie_configuration *get_configuration (int position, Direction dir);
44 Tie_configuration *generate_configuration (int position, Direction dir);
45 Real score_configuration (Tie_configuration const&);
46 Real score_aptitude (Tie_configuration const&, int);
55 Tie_formatting_problem ();
56 ~Tie_formatting_problem ();
58 Tie_configuration find_optimal_tie_configuration (int p, Direction d);
59 void from_ties (Link_array<Grob> const &ties);
60 void from_tie (Grob *tie);
61 void from_lv_ties (Link_array<Grob> const &);
62 void set_chord_outline (Link_array<Item>, Direction);
64 Interval get_attachment (Real) const;
65 Grob *common_x_refpoint () const;
68 #endif /* TIE_FORMATTING_PROBLEM_HH */