2 axis-group-element.cc -- implement Axis_group_element
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "axis-group-element.hh"
10 #include "graphical-axis-group.hh"
13 Axis_group_element::do_unlink()
19 Axis_group_element::do_junk_links()
21 elem_l_arr_.set_size (0);
25 Link_array<Score_element>
26 Axis_group_element::get_extra_dependencies() const
31 Link_array<Score_element>
32 Axis_group_element::elem_l_arr () const
37 Link_array<Score_element> r;
38 for (int i=0; i < elem_l_arr_.size (); i++)
39 r.push (elem_l_arr_[i]->access_Score_element());
43 Link_array<Score_element>
44 Axis_group_element::get_children ()
46 Link_array<Score_element> childs;
47 Link_array<Score_element> elems = elem_l_arr ();
48 for (int i=0; i < elems.size (); i++)
50 Score_element* e = elems[i];
52 Axis_group_element * axis_group= e->access_Axis_group_element ();
54 childs.concat (axis_group->get_children ());
61 Axis_group_element::do_print() const
63 Graphical_axis_group::do_print();
66 Axis_group_element::Axis_group_element(Axis a1, Axis a2)
67 : Graphical_axis_group (a1,a2)
69 transparent_b_ = true;
72 Axis_group_element::Axis_group_element ()
73 : Graphical_axis_group (X_AXIS, Y_AXIS)
75 transparent_b_ = true;
79 Axis_group_element::access_Axis_group_element ()
86 IMPLEMENT_IS_TYPE_B2(Axis_group_element, Score_element, Graphical_axis_group);