コード例 #1
0
ファイル: tupitemtweener.cpp プロジェクト: nanox/tupi
void TupItemTweener::setRotationAt(int index, double angle)
{
    VERIFY_STEP(index);

    // tError() << "TupItemTweener::setRotationAt() - Index: " << index << " - Angle: " << angle;
    k->step(index)->setRotation(angle);
}
コード例 #2
0
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());
}
コード例 #3
0
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);
}
コード例 #4
0
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);
}
コード例 #5
0
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);
}
コード例 #6
0
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);
}
コード例 #7
0
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);
}
コード例 #8
0
ファイル: tupitemtweener.cpp プロジェクト: nanox/tupi
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());
}
コード例 #9
0
ファイル: tupitemtweener.cpp プロジェクト: nanox/tupi
void TupItemTweener::setColorAt(int index, const QColor &color)
{
    VERIFY_STEP(index);
    k->step(index)->setColor(color);
}
コード例 #10
0
ファイル: tupitemtweener.cpp プロジェクト: nanox/tupi
void TupItemTweener::setOpacityAt(int index, double opacity)
{
    VERIFY_STEP(index);
    k->step(index)->setOpacity(opacity);
}
コード例 #11
0
ファイル: tupitemtweener.cpp プロジェクト: nanox/tupi
void TupItemTweener::setShearAt(int index, double sx, double sy)
{
    VERIFY_STEP(index);
    k->step(index)->setShear(sx, sy);
}
コード例 #12
0
ファイル: tupitemtweener.cpp プロジェクト: nanox/tupi
void TupItemTweener::setPosAt(int index, const QPointF &pos)
{
    VERIFY_STEP(index);
    k->step(index)->setPosition(pos);
}