本文整理汇总了C++中Alignment::GetGraceAligner方法的典型用法代码示例。如果您正苦于以下问题:C++ Alignment::GetGraceAligner方法的具体用法?C++ Alignment::GetGraceAligner怎么用?C++ Alignment::GetGraceAligner使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Alignment
的用法示例。
在下文中一共展示了Alignment::GetGraceAligner方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AlignHorizontallyEnd
int Layer::AlignHorizontallyEnd(FunctorParams *functorParams)
{
AlignHorizontallyParams *params = dynamic_cast<AlignHorizontallyParams *>(functorParams);
assert(params);
params->m_scoreDefRole = SCOREDEF_CAUTIONARY;
params->m_time = params->m_measureAligner->GetMaxTime();
if (this->GetCautionStaffDefClef()) {
GetCautionStaffDefClef()->AlignHorizontally(params);
}
if (this->GetCautionStaffDefKeySig()) {
GetCautionStaffDefKeySig()->AlignHorizontally(params);
}
if (this->GetCautionStaffDefMensur()) {
GetCautionStaffDefMensur()->AlignHorizontally(params);
}
if (this->GetCautionStaffDefMeterSig()) {
GetCautionStaffDefMeterSig()->AlignHorizontally(params);
}
params->m_scoreDefRole = SCOREDEF_NONE;
Staff *staff = dynamic_cast<Staff *>(this->GetFirstParent(STAFF));
assert(staff);
int graceAlignerId = params->m_doc->GetOptions()->m_graceRhythmAlign.GetValue() ? 0 : staff->GetN();
int i;
for (i = 0; i < params->m_measureAligner->GetChildCount(); ++i) {
Alignment *alignment = dynamic_cast<Alignment *>(params->m_measureAligner->GetChild(i));
assert(alignment);
if (alignment->HasGraceAligner(graceAlignerId)) {
alignment->GetGraceAligner(graceAlignerId)->AlignStack();
}
}
return FUNCTOR_CONTINUE;
}