2 simple-spacer.hh -- declare Simple_spacer
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 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
24 Real length (Real force) const;
25 Spring_description ();
27 bool is_sane () const;
32 Array<Spring_description> springs_;
33 Link_array<Grob> spaced_cols_;
34 Link_array<Grob> loose_cols_;
43 void solve (Column_x_positions *, bool);
44 void add_columns (Link_array<Grob> const &);
45 void my_solve_linelen ();
46 void my_solve_natural_len ();
47 Real active_springs_stiffness () const;
48 Real range_stiffness (int, int) const;
49 void add_rod (int l, int r, Real dist);
50 Real range_ideal_len (int l, int r) const;
51 Real is_activelocking_force ()const;
52 Real configuration_length ()const;
53 void set_active_states ();
54 bool is_active () const;
57 #endif /* SIMPLE_SPACER_HH */