void TupItemTweener::setRotationAt(int index, double angle) { VERIFY_STEP(index); // tError() << "TupItemTweener::setRotationAt() - Index: " << index << " - Angle: " << angle; k->step(index)->setRotation(angle); }
void TupItemTweener::addStep(const TupTweenerStep &step) { int counter = step.index(); #ifdef K_DEBUG #ifdef Q_OS_WIN qWarning() << "TupItemTweener::addStep() - counter: " << counter; #else VERIFY_STEP(counter); #endif #endif if (step.has(TupTweenerStep::Position)) setPosAt(counter, step.position()); if (step.has(TupTweenerStep::Rotation)) setRotationAt(counter, step.rotation()); if (step.has(TupTweenerStep::Scale)) setScaleAt(counter, step.horizontalScale(), step.verticalScale()); if (step.has(TupTweenerStep::Shear)) setShearAt(counter, step.horizontalShear(), step.verticalShear()); if (step.has(TupTweenerStep::Opacity)) setOpacityAt(counter, step.opacity()); if (step.has(TupTweenerStep::Coloring)) setColorAt(counter, step.color()); }
void TupItemTweener::setColorAt(int index, const QColor &color) { #ifdef K_DEBUG #ifdef Q_OS_WIN qWarning() << "TupItemTweener::setColorAt() - index: " << index; #else VERIFY_STEP(index); #endif #endif k->step(index)->setColor(color); }
void TupItemTweener::setOpacityAt(int index, double opacity) { #ifdef K_DEBUG #ifdef Q_OS_WIN qWarning() << "TupItemTweener::setOpacityAt() - index: " << index; #else VERIFY_STEP(index); #endif #endif k->step(index)->setOpacity(opacity); }
void TupItemTweener::setShearAt(int index, double sx, double sy) { #ifdef K_DEBUG #ifdef Q_OS_WIN qWarning() << "TupItemTweener::setShearAt() - index: " << index; #else VERIFY_STEP(index); #endif #endif k->step(index)->setShear(sx, sy); }
void TupItemTweener::setRotationAt(int index, double angle) { #ifdef K_DEBUG #ifdef Q_OS_WIN qWarning() << "TupItemTweener::setRotationAt() - index: " << index; #else VERIFY_STEP(index); #endif #endif k->step(index)->setRotation(angle); }
void TupItemTweener::setPosAt(int index, const QPointF &pos) { #ifdef K_DEBUG #ifdef Q_OS_WIN qWarning() << "TupItemTweener::setPosAt() - index: " << index; #else VERIFY_STEP(index); #endif #endif k->step(index)->setPosition(pos); }
void TupItemTweener::addStep(const TupTweenerStep &step) { int counter = step.index(); VERIFY_STEP(counter); if (step.has(TupTweenerStep::Position)) setPosAt(counter, step.position()); if (step.has(TupTweenerStep::Rotation)) setRotationAt(counter, step.rotation()); if (step.has(TupTweenerStep::Scale)) setScaleAt(counter, step.horizontalScale(), step.verticalScale()); if (step.has(TupTweenerStep::Shear)) setShearAt(counter, step.horizontalShear(), step.verticalShear()); if (step.has(TupTweenerStep::Opacity)) setOpacityAt(counter, step.opacity()); if (step.has(TupTweenerStep::Coloring)) setColorAt(counter, step.color()); }
void TupItemTweener::setColorAt(int index, const QColor &color) { VERIFY_STEP(index); k->step(index)->setColor(color); }
void TupItemTweener::setOpacityAt(int index, double opacity) { VERIFY_STEP(index); k->step(index)->setOpacity(opacity); }
void TupItemTweener::setShearAt(int index, double sx, double sy) { VERIFY_STEP(index); k->step(index)->setShear(sx, sy); }
void TupItemTweener::setPosAt(int index, const QPointF &pos) { VERIFY_STEP(index); k->step(index)->setPosition(pos); }