lilypond-1.4.4
[lilypond.git] / lily / spring.cc
blob476007d1228bff4bce2aa2de3a2c99ffeb51080d
1 /*
2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "spring.hh"
11 #include "debug.hh"
12 #include "item.hh"
13 #include "spaceable-element.hh"
14 #include "paper-column.hh"
16 Spring::Spring ()
18 item_l_drul_[LEFT] =item_l_drul_[RIGHT] =0;
19 distance_f_ =0.;
20 strength_f_ =1.0;
23 void
24 Spring::add_to_cols ()
26 Spaceable_grob::add_spring (item_l_drul_[LEFT]->column_l (),
27 item_l_drul_[RIGHT]->column_l (),
28 distance_f_, strength_f_);
32 Column_spring::Column_spring ()
34 other_l_ = 0;
35 distance_f_ =0;
36 strength_f_ =1.0;