IMPLEMENT_IS_TYPE_B1(Note_column,Head_column);
-void
-Note_column::set (Stem*s)
-{
- stem_l_ = s;
- add_support (s);
-}
-
Note_column::Note_column()
{
h_shift_b_ =false;
}
Interval_t<int>
-Note_column::head_positions_interval()const
+Note_column::head_positions_interval() const
{
((Note_column*)this)->sort();
- return Interval_t<int> ( head_l_arr_[0]->position_i_,
+ return Interval_t<int> (head_l_arr_[0]->position_i_,
head_l_arr_.top()->position_i_);
}
void
Note_column::do_pre_processing()
{
- if (!dir_i_&& !stem_l_)
+ if (!dir_&& !stem_l_)
{
- dir_i_ = (head_positions_interval().center () >= 5) ? -1 : 1;
+ dir_ = (head_positions_interval().center () >= 5) ? DOWN:UP;
}
Head_column::do_pre_processing();
}