2 slur-scoring.hh -- declare Slur_score_parameters
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef SLUR_SCORING_HH
10 #define SLUR_SCORING_HH
13 #include "std-vector.hh"
14 #include "lily-guile.hh"
15 #include "slur-score-parameters.hh"
17 struct Extra_collision_info
25 Extra_collision_info (Grob *g, Real idx, Interval x, Interval y, Real p);
26 Extra_collision_info ();
41 Real get_point (Direction dir) const
59 Interval slur_head_x_extent_;
72 struct Slur_score_state
75 Grob *common_[NO_AXES];
82 vector<Grob*> columns_;
83 vector<Encompass_info> encompass_infos_;
84 vector<Extra_collision_info> extra_encompass_infos_;
87 Slur_score_parameters parameters_;
88 Drul_array<Bound_info> extremes_;
89 Drul_array<Offset> base_attachments_;
90 vector<Slur_configuration*> configurations_;
97 Bezier get_best_curve ();
99 void set_next_direction ();
101 vector<Offset> generate_avoid_offsets () const;
102 Drul_array<Bound_info> get_bound_info () const;
103 void generate_curves () const;
104 vector<Slur_configuration*> enumerate_attachments (Drul_array<Real> end_ys) const;
105 Drul_array<Offset> get_base_attachments () const;
106 Drul_array<Real> get_y_attachment_range () const;
107 Encompass_info get_encompass_info (Grob *col) const;
108 vector<Extra_collision_info> get_extra_encompass_infos () const;
109 Real move_away_from_staffline (Real y, Grob *on_staff) const;
110 int get_closest_index (SCM inspect_quants) const;
112 Grob *breakable_bound_item (Direction) const;
115 void set_slur_control_points (Grob *me);
117 #endif /* SLUR_SCORING_HH */