if (isdir_b (al))
{
Direction d = to_dir (al);
- directional_element (align_item_p_).set (d);
+ Directional_element_interface (align_item_p_).set (d);
}
typeset_element (align_item_p_);
Breathing_sign::member_after_line_breaking ()
{
Real space = staff_symbol_referencer (this).staff_space();
- Direction d = directional_element (this). get ();
+ Direction d = Directional_element_interface (this). get ();
if (!d)
{
d = UP;
- directional_element(this).set (d);
+ Directional_element_interface (this).set (d);
}
translate_axis(2.0 * space * d, Y_AXIS);
It's amazing Mike:
Stem:: type_i () ->first_head ()->get_direction () ->
- directional_element (me).set (d);
+ Directional_element_interface (me).set (d);
don't understand this comment.
{
Pointer_group_interface gi (this, "dots");
gi.set_interface ();
- directional_element (this).set (RIGHT);
+ Directional_element_interface (this).set (RIGHT);
Axis_group_interface (this).set_interface ();
Axis_group_interface (this).set_axes(X_AXIS,X_AXIS);
SCM d= get_elt_property ("dot-count");
if (gh_number_p (d) && gh_scm2int (d))
{
- if (!directional_element (this).get ())
- directional_element (this).set (UP);
+ if (!Directional_element_interface (this).get ())
+ Directional_element_interface (this).set (UP);
Staff_symbol_referencer_interface si (this);
int p = int (si.position_f ());
if (!(p % 2))
- si.set_position (p + directional_element (this).get ());
+ si.set_position (p + Directional_element_interface (this).get ());
}
return SCM_UNDEFINED;
int beams_i = stem->beam_count(RIGHT) >? stem->beam_count (LEFT);
mol.translate (Offset(stem->relative_coordinate (0, X_AXIS) - relative_coordinate (0, X_AXIS),
stem->stem_end_position () * ss / 2 -
- directional_element (beam).get () * beams_i * interbeam_f));
+ Directional_element_interface (beam).get () * beams_i * interbeam_f));
}
else
{
Direction
Stem::get_direction () const
{
- Direction d = directional_element (this).get ();
+ Direction d = Directional_element_interface (this).get ();
if (!d)
{
Stem * me = (Stem*) this;
d = get_default_dir ();
// urg, AAARGH!
- directional_element (me).set (d);
+ Directional_element_interface (me).set (d);
}
return d ;
}
if (!dir)
{
dir = get_default_dir ();
- directional_element (this).set (dir);
+ Directional_element_interface (this).set (dir);
}
/*
{
assert (beam_l ());
- Direction beam_dir = directional_element (beam_l ()).get ();
+ Direction beam_dir = Directional_element_interface (beam_l ()).get ();
if (!beam_dir)
{
programming_error ("Beam dir not set.");
Real stem_length = a[multiplicity <? (a.size () - 1)] * staff_space;
- if (!beam_dir || (beam_dir == directional_element (this).get ()))
+ if (!beam_dir || (beam_dir == Directional_element_interface (this).get ()))
/* normal beamed stem */
{
if (multiplicity)
void
Tie_column::set_directions ()
{
- Link_array<Tie> s =
+ Link_array<Tie> ties =
Pointer_group_interface__extract_elements (this, (Tie*)0, "ties");
- Direction d = directional_element (this).get ();
+ Direction d = Directional_element_interface (this).get ();
if (d)
{
- for (int i = s.size (); i--;)
- directional_element (s[i]).set (d);
+ for (int i = ties.size (); i--;)
+ {
+ Tie * t = ties[i];
+ Directional_element_interface (t).set (d);
+ }
return;
}
- if (s.size () == 1)
+ if (ties.size () == 1)
{
- directional_element (s[0]).set (s[0]->get_default_dir ());
+ Tie * t = ties[0];
+ Directional_element_interface (t).set (t->get_default_dir ());
return;
}
- s.sort (tie_compare);
- directional_element (s[0]).set (DOWN);
- s.del (0);
- directional_element (s.pop ()).set (UP);
+ ties.sort (tie_compare);
+ Directional_element_interface tie0(ties[0]);
+ tie0.set (DOWN);
+ ties.del (0);
+
+ Directional_element_interface tietop(ties.pop ());
+ tietop.set (UP);
- for (int i=s.size(); i--; )
+ for (int i=ties.size(); i--; )
{
- Real p = s[i]->position_f ();
+ Tie * t = ties[i];
+ Real p = t->position_f ();
Direction d = (Direction) sign (p);
if (!d)
d = UP;
- directional_element (s[i]).set (d);
+ Directional_element_interface (t).set (d);
}
}