本文整理汇总了C++中EFXFixture::copyFrom方法的典型用法代码示例。如果您正苦于以下问题:C++ EFXFixture::copyFrom方法的具体用法?C++ EFXFixture::copyFrom怎么用?C++ EFXFixture::copyFrom使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFXFixture
的用法示例。
在下文中一共展示了EFXFixture::copyFrom方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: copyFrom
bool EFX::copyFrom(const Function* function)
{
const EFX* efx = qobject_cast<const EFX*> (function);
if (efx == NULL)
return false;
while (m_fixtures.isEmpty() == false)
delete m_fixtures.takeFirst();
QListIterator <EFXFixture*> it(efx->m_fixtures);
while (it.hasNext() == true)
{
EFXFixture* ef = new EFXFixture(this);
ef->copyFrom(it.next());
m_fixtures.append(ef);
}
m_propagationMode = efx->m_propagationMode;
for (int i = 0; i < efx->attributes().count(); i++)
adjustAttribute(efx->attributes().at(i).m_value, i);
m_isRelative = efx->m_isRelative;
updateRotationCache();
m_xFrequency = efx->m_xFrequency;
m_yFrequency = efx->m_yFrequency;
m_xPhase = efx->m_xPhase;
m_yPhase = efx->m_yPhase;
m_algorithm = efx->m_algorithm;
return Function::copyFrom(function);
}
示例2: copyFrom
bool EFX::copyFrom(const Function* function)
{
const EFX* efx = qobject_cast<const EFX*> (function);
if (efx == NULL)
return false;
while (m_fixtures.isEmpty() == false)
delete m_fixtures.takeFirst();
QListIterator <EFXFixture*> it(efx->m_fixtures);
while (it.hasNext() == true)
{
EFXFixture* ef = new EFXFixture(this);
ef->copyFrom(it.next());
m_fixtures.append(ef);
}
m_propagationMode = efx->m_propagationMode;
m_width = efx->m_width;
m_height = efx->m_height;
m_xOffset = efx->m_xOffset;
m_yOffset = efx->m_yOffset;
m_rotation = efx->m_rotation;
m_xFrequency = efx->m_xFrequency;
m_yFrequency = efx->m_yFrequency;
m_xPhase = efx->m_xPhase;
m_yPhase = efx->m_yPhase;
m_algorithm = efx->m_algorithm;
return Function::copyFrom(function);
}