<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # QGraphicsItemAnimation Class Reference ## [[QtGui](index.htm) module] 該QGraphicsItemAnimation類提供了簡單的動畫支持[QGraphicsItem](qgraphicsitem.html)。[More...](#details) 繼承[QObject](qobject.html)。 ### Methods * `__init__ (self, QObject?parent?=?None)` * `afterAnimationStep (self, float?step)` * `beforeAnimationStep (self, float?step)` * `clear (self)` * `float horizontalScaleAt (self, float?step)` * `float horizontalShearAt (self, float?step)` * `QGraphicsItem item (self)` * `QMatrix matrixAt (self, float?step)` * `QPointF posAt (self, float?step)` * `list-of-tuple-of-float-QPointF posList (self)` * `reset (self)` * `float rotationAt (self, float?step)` * `list-of-tuple-of-float-float rotationList (self)` * `list-of-tuple-of-float-QPointF scaleList (self)` * `setItem (self, QGraphicsItem?item)` * `setPosAt (self, float?step, QPointF?pos)` * `setRotationAt (self, float?step, float?angle)` * `setScaleAt (self, float?step, float?sx, float?sy)` * `setShearAt (self, float?step, float?sh, float?sv)` * `setStep (self, float?x)` * `setTimeLine (self, QTimeLine?timeLine)` * `setTranslationAt (self, float?step, float?dx, float?dy)` * `list-of-tuple-of-float-QPointF shearList (self)` * `QTimeLine timeLine (self)` * `list-of-tuple-of-float-QPointF translationList (self)` * `float verticalScaleAt (self, float?step)` * `float verticalShearAt (self, float?step)` * `float xTranslationAt (self, float?step)` * `float yTranslationAt (self, float?step)` * * * ## Detailed Description 該QGraphicsItemAnimation類提供了簡單的動畫支持[QGraphicsItem](qgraphicsitem.html)。 該QGraphicsItemAnimation類一個動畫[QGraphicsItem](qgraphicsitem.html)。您可以在指定的步驟安排變更項目的變換矩陣。該QGraphicsItemAnimation類具有電流步長值。當這個值改變安排在該步驟的轉換執行。動畫的當前步驟設置與`setStep()`功能。 QGraphicsItemAnimation會做一個簡單的線性插值最鄰近的預定變化的計算矩陣。例如,如果你設置為值0.0和1.0的項目的位置,動畫會顯示該項目活動在這些位置之間的直線。同樣是真實的縮放和旋轉。 這是通常使用的類與[QTimeLine](qtimeline.html)。時間軸的[valueChanged()](qtimeline.html#valueChanged)信號,然后連接到`setStep()`插槽。例如,您可以設置旋轉的項目通過調用`setRotationAt()`針對不同的步長值。動畫時間軸設定與[setTimeLine](qgraphicsitemanimation.html#setTimeLine)()函數。 一個例子動畫時間軸如下: ``` [QGraphicsItem](qgraphicsitem.html) *ball = new [QGraphicsEllipseItem](qgraphicsellipseitem.html)(0, 0, 20, 20); [QTimeLine](qtimeline.html) *timer = new [QTimeLine](qtimeline.html)(5000); timer->setFrameRange(0, 100); QGraphicsItemAnimation *animation = new QGraphicsItemAnimation; animation->setItem(ball); animation->setTimeLine(timer); for (int i = 0; i < 200; ++i) animation->setPosAt(i / 200.0, [QPointF](qpointf.html)(i, i)); [QGraphicsScene](qgraphicsscene.html) *scene = new [QGraphicsScene](qgraphicsscene.html)(); scene->setSceneRect(0, 0, 250, 250); scene->addItem(ball); [QGraphicsView](qgraphicsview.html) *view = new [QGraphicsView](qgraphicsview.html)(scene); view->show(); timer->start(); ``` 注意,步驟在于在0.0和1.0之間。可能有必要使用[setUpdateInterval()](qtimeline.html#updateInterval-prop)。默認的更新間隔為40毫秒。當一個預定的改造不能被刪除,所以安排在同一步驟同一種(例如,旋轉)的幾個轉變,不推薦。 * * * ## Method Documentation ``` QGraphicsItemAnimation.__init__ (self, QObject?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個動畫對象與給定_parent_。 ``` QGraphicsItemAnimation.afterAnimationStep (self, float?step) ``` 這個方法是在需要一個新的臺階已經發生之后執行額外的代碼子類重寫。動畫_step_提供了一種用于使用的情況下的操作取決于它的值。 ``` QGraphicsItemAnimation.beforeAnimationStep (self, float?step) ``` 這個方法是由子類需要執行額外的代碼了新的一步發生之前被復蓋。動畫_step_提供了一種用于使用的情況下的操作取決于它的值。 ``` QGraphicsItemAnimation.clear (self) ``` 清除用于動畫預定轉換,但保留的項目和時間安排。 ``` float QGraphicsItemAnimation.horizontalScaleAt (self, float?step) ``` 返回水平規模的項目在指定的_step_值。 **See also** [setScaleAt](qgraphicsitemanimation.html#setScaleAt)( ) 。 ``` float QGraphicsItemAnimation.horizontalShearAt (self, float?step) ``` 返回水平剪切的項目在指定的_step_值。 **See also** [setShearAt](qgraphicsitemanimation.html#setShearAt)( ) 。 ``` QGraphicsItem QGraphicsItemAnimation.item (self) ``` [ 返回動畫對象所操作的項目。 ](qgraphicsitem.html) [**See also**](qgraphicsitem.html) [setItem](qgraphicsitemanimation.html#setItem)( ) 。 ``` QMatrix QGraphicsItemAnimation.matrixAt (self, float?step) ``` [ 返回用于改造項目在指定的矩陣_step_值。 ](qmatrix.html) ``` QPointF QGraphicsItemAnimation.posAt (self, float?step) ``` [ 返回在給定項目的位置_step_值。 ](qpointf.html) [**See also**](qpointf.html) [setPosAt](qgraphicsitemanimation.html#setPosAt)( ) 。 ``` list-of-tuple-of-float-QPointF QGraphicsItemAnimation.posList (self) ``` 返回所有顯式地插入位置。 **See also** [posAt](qgraphicsitemanimation.html#posAt)()和[setPosAt](qgraphicsitemanimation.html#setPosAt)( ) 。 ``` QGraphicsItemAnimation.reset (self) ``` 這種方法也是一個Qt槽與C + +的簽名`void reset()`。 ``` float QGraphicsItemAnimation.rotationAt (self, float?step) ``` 返回在該項目旋轉指定的角度_step_值。 **See also** [setRotationAt](qgraphicsitemanimation.html#setRotationAt)( ) 。 ``` list-of-tuple-of-float-float QGraphicsItemAnimation.rotationList (self) ``` 返回所有顯式地插入旋轉。 **See also** [rotationAt](qgraphicsitemanimation.html#rotationAt)()和[setRotationAt](qgraphicsitemanimation.html#setRotationAt)( ) 。 ``` list-of-tuple-of-float-QPointF QGraphicsItemAnimation.scaleList (self) ``` 返回所有顯式地插入尺度。 **See also** [verticalScaleAt](qgraphicsitemanimation.html#verticalScaleAt)( )[horizontalScaleAt](qgraphicsitemanimation.html#horizontalScaleAt)()和[setScaleAt](qgraphicsitemanimation.html#setScaleAt)( ) 。 ``` QGraphicsItemAnimation.setItem (self, QGraphicsItem?item) ``` 設置指定_item_在動畫中使用。 **See also** [item](qgraphicsitemanimation.html#item)( ) 。 ``` QGraphicsItemAnimation.setPosAt (self, float?step, QPointF?pos) ``` 設置在給定項目的位置_step_值到_point_規定。 **See also** [posAt](qgraphicsitemanimation.html#posAt)( ) 。 ``` QGraphicsItemAnimation.setRotationAt (self, float?step, float?angle) ``` 設置項的旋轉在給定的_step_值到_angle_規定。 **See also** [rotationAt](qgraphicsitemanimation.html#rotationAt)( ) 。 ``` QGraphicsItemAnimation.setScaleAt (self, float?step, float?sx, float?sy) ``` 設置項的比例在給定的_step_重視使用由指定的水平和垂直縮放因子_sx_和_sy_。 **See also** [verticalScaleAt](qgraphicsitemanimation.html#verticalScaleAt)()和[horizontalScaleAt](qgraphicsitemanimation.html#horizontalScaleAt)( ) 。 ``` QGraphicsItemAnimation.setShearAt (self, float?step, float?sh, float?sv) ``` 設置項的剪切在給定的_step_值通過使用指定的水平和垂直切變的因素_sh_和_sv_。 **See also** [verticalShearAt](qgraphicsitemanimation.html#verticalShearAt)()和[horizontalShearAt](qgraphicsitemanimation.html#horizontalShearAt)( ) 。 ``` QGraphicsItemAnimation.setStep (self, float?x) ``` 這種方法也是一個Qt槽與C + +的簽名`void setStep(qreal)`。 設置當前_step_價值為動畫,引起預定在該步驟中要進行的變換。 ``` QGraphicsItemAnimation.setTimeLine (self, QTimeLine?timeLine) ``` 設置用來控制動畫的速度時間軸對象_timeLine_規定。 **See also** [timeLine](qgraphicsitemanimation.html#timeLine)( ) 。 ``` QGraphicsItemAnimation.setTranslationAt (self, float?step, float?dx, float?dy) ``` 設置項的翻譯在給定的_step_值使用由指定的水平和垂直坐標_dx_和_dy_。 **See also** [xTranslationAt](qgraphicsitemanimation.html#xTranslationAt)()和[yTranslationAt](qgraphicsitemanimation.html#yTranslationAt)( ) 。 ``` list-of-tuple-of-float-QPointF QGraphicsItemAnimation.shearList (self) ``` 返回所有顯式地插入剪。 **See also** [verticalShearAt](qgraphicsitemanimation.html#verticalShearAt)( )[horizontalShearAt](qgraphicsitemanimation.html#horizontalShearAt)()和[setShearAt](qgraphicsitemanimation.html#setShearAt)( ) 。 ``` QTimeLine QGraphicsItemAnimation.timeLine (self) ``` [ 返回用于控制在該動畫的發生率在時間軸對象。 ](qtimeline.html) [**See also**](qtimeline.html) [setTimeLine](qgraphicsitemanimation.html#setTimeLine)( ) 。 ``` list-of-tuple-of-float-QPointF QGraphicsItemAnimation.translationList (self) ``` 返回所有顯式地插入翻譯。 **See also** [xTranslationAt](qgraphicsitemanimation.html#xTranslationAt)( )[yTranslationAt](qgraphicsitemanimation.html#yTranslationAt)()和[setTranslationAt](qgraphicsitemanimation.html#setTranslationAt)( ) 。 ``` float QGraphicsItemAnimation.verticalScaleAt (self, float?step) ``` 返回該項目的垂直刻度在指定_step_值。 **See also** [setScaleAt](qgraphicsitemanimation.html#setScaleAt)( ) 。 ``` float QGraphicsItemAnimation.verticalShearAt (self, float?step) ``` 返回該項目的垂直切變在指定_step_值。 **See also** [setShearAt](qgraphicsitemanimation.html#setShearAt)( ) 。 ``` float QGraphicsItemAnimation.xTranslationAt (self, float?step) ``` 返回該項目的翻譯水平在指定的_step_值。 **See also** [setTranslationAt](qgraphicsitemanimation.html#setTranslationAt)( ) 。 ``` float QGraphicsItemAnimation.yTranslationAt (self, float?step) ``` 返回的項的豎直平移在指定_step_值。 **See also** [setTranslationAt](qgraphicsitemanimation.html#setTranslationAt)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看