The QSGTransformNode class implements transformations in the scene graph. 更多...
| 頭: | #include <QSGTransformNode> |
| qmake: | QT += quick |
| 繼承: | QSGNode |
| QSGTransformNode () | |
| virtual | ~QSGTransformNode () override |
| const QMatrix4x4 & | matrix () const |
| void | setMatrix (const QMatrix4x4 & matrix ) |
The QSGTransformNode class implements transformations in the scene graph.
變換應用節點子樹,且可以嵌套。多個變換節點將通過相交其所有矩陣來纍積。纍積是作為渲染的一部分發生的。
變換節點實現瞭理論上支持完整 3D 變換的 4x4 矩陣。不管怎樣,由於渲染器優化是針對 2D 用例而不是 3D 用例的,因此渲染具有完整 3D 變換的場景需要很小心進行。
注意: 所有帶有 QSG 前綴的類隻應用於場景圖形渲染綫程。見 場景圖形和渲染 瞭解更多信息。
創建新的 QSGTransformNode with its matrix set to the identity matrix.
[override virtual]
QSGTransformNode::
~QSGTransformNode
()
刪除此變換節點。
返迴此變換節點的矩陣。
另請參閱 setMatrix ().
將此變換節點的矩陣設為 matrix .
另請參閱 matrix ().