]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/simple-spacer.hh
release: 1.5.29
[lilypond.git] / lily / include / simple-spacer.hh
index e0c9840924f8f3d01d88a2ec12252829a8ce4778..1b963650e07184f4abe07a1814800e24d58808b3 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
@@ -24,7 +24,7 @@ struct Spring_description
 
   Real length (Real force) const;
   Spring_description ();
-  Real energy_f (Real) const;
+
   bool sane_b () const;
 };
 
@@ -63,17 +63,18 @@ struct Spring_description
 struct Simple_spacer
 {
   Array<Spring_description> springs_;
-
+  Link_array<Grob> spaced_cols_;
+  Link_array<Grob> loose_cols_;
   Real force_f_;
   Real indent_f_;
   Real line_len_f_;
   Real default_space_f_;
-  Real compression_energy_factor_f_;
+  int active_count_;
 
   Simple_spacer ();
   
   void solve (Column_x_positions *) const;
-  void add_columns (Link_array<Paper_column>);
+  void add_columns (Link_array<Grob>);
   void my_solve_linelen ();
   void my_solve_natural_len ();
   Real active_springs_stiffness () const;
@@ -83,8 +84,6 @@ struct Simple_spacer
   Real active_blocking_force ()const;
   Real configuration_length ()const;
   void set_active_states ();
-  Real energy_f () const;
-
   bool active_b () const;
 };