<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QGraphicsTransform Class Reference ## [[QtGui](index.htm) module] 該QGraphicsTransform類是對QGraphicsItems建設先進變換的抽象基類。[More...](#details) 繼承[QObject](qobject.html)。 通過繼承[QGraphicsRotation](qgraphicsrotation.html)和[QGraphicsScale](qgraphicsscale.html)。 ### Methods * `__init__ (self, QObject?parent?=?None)` * `applyTo (self, QMatrix4x4?matrix)` * `update (self)` * * * ## Detailed Description 該QGraphicsTransform類是對QGraphicsItems建設先進變換的抽象基類。 作為替代QGraphicsItem.transform , QGraphicsTransform允許您創建和控制,可以獨立使用專門的屬性進行配置先進的轉換。 [QGraphicsItem](qgraphicsitem.html)可以讓你任意數量的QGraphicsTransform實例分配給一個[QGraphicsItem](qgraphicsitem.html)。每個QGraphicsTransform是為了,一次一個應用,該[QGraphicsItem](qgraphicsitem.html)它賦值。 QGraphicsTransform是用于動畫特別有用。而[QGraphicsItem.setTransform](qgraphicsitem.html#setTransform)()讓你指定的任何直接轉化為一個項目,沒有直接的方法(兩種狀態,分別用于該項目具有不同的任意變換分配之間轉換時如)兩種不同的轉換之間進行插值。使用QGraphicsTransform可以插各獨立轉化??的屬性值。然后將得到的操作被組合成一個單一的變換被應用到[QGraphicsItem](qgraphicsitem.html)。 轉換使用的是計算在真實的三維空間[QMatrix4x4](qmatrix4x4.html)。當該變換被應用到一個[QGraphicsItem](qgraphicsitem.html)時,將投射返回到2D[QTransform](qtransform.html)。當多個QGraphicsTransform對象被施加到一個[QGraphicsItem](qgraphicsitem.html),所有的變革都計算在真正的3D空間中,與投影回2D只有最后QGraphicsTransform應用后發生。唯一的例外是[QGraphicsRotation](qgraphicsrotation.html),突出回2D之后每次旋轉以保持圍繞X的立體效果和Y軸。 如果你想創建自己的配置的轉變,您可以創建QGraphicsTransform的子類(或任何或現有的子類) ,并重新實現純虛[applyTo](qgraphicstransform.html#applyTo)( )函數,它接受一個指向[QMatrix4x4](qmatrix4x4.html)。每個操作你想申請應當公開為屬性(例如, customTransform - \u003e setVerticalShear ( 2.5 ) ) 。里面你重新實現[applyTo](qgraphicstransform.html#applyTo)( ) ,你可以修改所提供的變換分別。 QGraphicsTransform可以一起使用[QGraphicsItem.setTransform](qgraphicsitem.html#setTransform)( )[QGraphicsItem.setRotation](qgraphicsitem.html#setRotation)()和[QGraphicsItem.setScale](qgraphicsitem.html#setScale)( ) 。 * * * ## Method Documentation ``` QGraphicsTransform.__init__ (self, QObject?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個新的[QGraphicsTransform](qgraphicstransform.html)用給定的_parent_。 ``` QGraphicsTransform.applyTo (self, QMatrix4x4?matrix) ``` 這種方法是抽象的,應在任何子類中重新實現。 這個純虛方法在派生類中被重新實現。 它適用于這種轉型_matrix_。 **See also** [QGraphicsItem.transform](qgraphicsitem.html#transform)()和[QMatrix4x4.toTransform](qmatrix4x4.html#toTransform)( ) 。 ``` QGraphicsTransform.update (self) ``` 這種方法也是一個Qt槽與C + +的簽名`void update()`。 通知此轉換操作已改變其參數,這樣的方式[applyTo](qgraphicstransform.html#applyTo)( )會返回不同的結果比以前。 當實施你自己的自定義圖形的變換,你必須在每次調用這個函數,你改變一個參數,讓[QGraphicsItem](qgraphicsitem.html)知道它的變換需要被更新。 **See also** [applyTo](qgraphicstransform.html#applyTo)( ) 。
                  <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>

                              哎呀哎呀视频在线观看