2 simple-spacer.hh -- declare Simple_spacer
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef SIMPLE_SPACER_HH
10 #define SIMPLE_SPACER_HH
12 #include "std-vector.hh"
13 #include "lily-proto.hh"
22 void solve (Real line_len, bool ragged);
23 void add_rod (int l, int r, Real dist);
24 void add_spring (Spring const&);
25 Real range_ideal_len (int l, int r) const;
26 Real range_stiffness (int l, int r, bool stretch) const;
27 Real configuration_length (Real) const;
28 vector<Real> spring_positions () const;
31 Real force_penalty (bool ragged) const;
34 DECLARE_SIMPLE_SMOBS (Simple_spacer);
38 Real compress_line ();
39 Real rod_force (int l, int r, Real dist);
41 vector<Spring> springs_;
48 /* returns a vector of dimensions breaks.size () * breaks.size () */
49 vector<Real> get_line_forces (vector<Grob*> const &columns,
54 Column_x_positions get_line_configuration (vector<Grob*> const &columns,
59 #endif /* SIMPLE_SPACER_HH */