2 simple-spacer.hh -- declare Simple_spacer
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SIMPLE_SPACER_HH
11 #define SIMPLE_SPACER_HH
14 #include "lily-proto.hh"
17 struct Spring_description
25 Real length (Real force) const;
26 Spring_description ();
33 Array<Spring_description> springs_;
34 Link_array<Grob> spaced_cols_;
35 Link_array<Grob> loose_cols_;
41 bool compression_penalty_b_;
45 void solve (Column_x_positions *, bool) const;
46 void add_columns (Link_array<Grob>const &);
47 void my_solve_linelen ();
48 void my_solve_natural_len ();
49 Real active_springs_stiffness () const;
50 Real range_stiffness (int, int) const;
51 void add_rod (int l, int r, Real dist);
52 Real range_ideal_len (int l, int r)const;
53 Real active_blocking_force ()const;
54 Real configuration_length ()const;
55 void set_active_states ();
56 bool active_b () const;
59 #endif /* SIMPLE_SPACER_HH */