2 axis-group-element.cc -- implement Axis_group_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "axis-group-element.hh"
10 #include "graphical-axis-group.hh"
14 Link_array<Score_element>
15 Axis_group_element::get_extra_dependencies() const
20 Link_array<Score_element>
21 Axis_group_element::elem_l_arr () const
26 Link_array<Score_element> r;
27 for (int i=0; i < elem_l_arr_.size (); i++)
28 r.push (dynamic_cast<Score_element*>(elem_l_arr_[i]));
33 Link_array<Score_element>
34 Axis_group_element::get_children ()
36 Link_array<Score_element> childs;
37 Link_array<Score_element> elems = elem_l_arr ();
38 for (int i=0; i < elems.size (); i++)
40 Score_element* e = elems[i];
42 Axis_group_element * axis_group= dynamic_cast <Axis_group_element *> (e);
44 childs.concat (axis_group->get_children ());
51 Axis_group_element::do_print() const
53 Graphical_axis_group::do_print();
56 Axis_group_element::Axis_group_element(Axis a1, Axis a2)
57 : Graphical_axis_group (a1,a2)
59 set_elt_property (transparent_scm_sym, SCM_BOOL_T);
62 Axis_group_element::Axis_group_element ()
63 : Graphical_axis_group (X_AXIS, Y_AXIS)
65 set_elt_property (transparent_scm_sym, SCM_BOOL_T);