2 dots.cc -- implement Dots
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "molecule.hh"
11 #include "paper-def.hh"
22 Dots::do_post_processing ()
27 if (!(position_i_ % 2))
28 position_i_ += resolve_dir_;
32 set_elt_property (transparent_scm_sym, SCM_BOOL_T);
33 set_empty (true, X_AXIS, Y_AXIS);
38 Dots::do_brew_molecule_p () const
40 Molecule *out = new Molecule;
41 Molecule fill = lookup_l ()->fill (Box (Interval (0,0),
43 out->add_molecule (fill);
45 Molecule d = lookup_l ()->dots ();
47 Real dw = d.dim_[X_AXIS].length ();
48 d.translate_axis (-dw, X_AXIS);
49 for (int i=dots_i_; i--; )
51 d.translate_axis (2*dw,X_AXIS);
52 out->add_molecule (d);
54 out->translate_axis (staff_line_leading_f () * position_i_ /2., Y_AXIS);