X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspring.cc;h=8b137891791fe96927ad78e64b0aad7bded08bdc;hb=5cee1f33692a248c1e8439e6629003735c9c24c1;hp=e63fee0891b0d1fab26bc63031b9015dd89b1721;hpb=f25fce62a31762d6621272fa7b703cf38d481b3a;p=lilypond.git diff --git a/lily/spring.cc b/lily/spring.cc index e63fee0891..8b13789179 100644 --- a/lily/spring.cc +++ b/lily/spring.cc @@ -1,56 +1 @@ -/* - spring.cc -- implement Spring - - source file of the GNU LilyPond music typesetter - - (c) 1999--2001 Han-Wen Nienhuys - - */ - -#include "spring.hh" -#include "debug.hh" -#include "item.hh" -#include "spaceable-grob.hh" -#include "paper-column.hh" - -Spring::Spring () -{ - item_l_drul_[LEFT] =item_l_drul_[RIGHT] =0; - distance_f_ =0.; - strength_f_ =1.0; -} - -/* - - ugh : if we go from items to cols, we should adjust distance and strength. - */ - -void -Spring::add_to_cols () -{ - Spaceable_grob::add_spring (item_l_drul_[LEFT]->column_l (), - item_l_drul_[RIGHT]->column_l (), - distance_f_, strength_f_); -} - -void -Spring::set_to_cols( ) -{ - Direction d = LEFT; - do - { - item_l_drul_[d] = item_l_drul_[d]->column_l (); - } - while (flip (&d) != LEFT); - -} - -Column_spring::Column_spring () -{ - other_l_ = 0; - distance_f_ =0; - strength_f_ =1.0; -} - -