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 (dynamic_cast<Score_element*>(elem_l_arr_[i]));
44 Link_array<Score_element>
45 Axis_group_element::get_children ()
47 Link_array<Score_element> childs;
48 Link_array<Score_element> elems = elem_l_arr ();
49 for (int i=0; i < elems.size (); i++)
51 Score_element* e = elems[i];
53 Axis_group_element * axis_group= dynamic_cast <Axis_group_element *> (e);
55 childs.concat (axis_group->get_children ());
62 Axis_group_element::do_print() const
64 Graphical_axis_group::do_print();
67 Axis_group_element::Axis_group_element(Axis a1, Axis a2)
68 : Graphical_axis_group (a1,a2)
70 transparent_b_ = true;
73 Axis_group_element::Axis_group_element ()
74 : Graphical_axis_group (X_AXIS, Y_AXIS)
76 transparent_b_ = true;