2 rhythmic-head.cc -- implement Rhythmic_head
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "rhythmic-head.hh"
11 #include "molecule.hh"
12 #include "paper-def.hh"
16 #include "axis-group-element.hh"
17 #include "paper-score.hh"
22 Rhythmic_head::dots_l () const
24 SCM s = get_elt_property ("dot");
25 return dynamic_cast<Dots*> (unsmob_element (s));
29 Rhythmic_head::stem_l () const
31 SCM s = get_elt_property ("stem");
32 return dynamic_cast<Stem*> (unsmob_element (s));
36 Rhythmic_head::dots_i () const
38 return dots_l () ? dots_l ()->dots_i_ : 0;
42 Rhythmic_head::do_post_processing ()
46 dots_l ()->set_position(int (position_f ()));
52 Rhythmic_head::add_dots (Dots *dot_l)
54 set_elt_property ("dot", dot_l->self_scm_);
55 dot_l->add_dependency (this);
58 Rhythmic_head::Rhythmic_head ()
66 Rhythmic_head::do_print () const
69 DEBUG_OUT << "balltype = "<< balltype_i_ << "dots = " << dots_i ();