PySide6.QtQuick.QSGTransformNode¶
- class QSGTransformNode¶
- The - QSGTransformNodeclass implements transformations in the scene graph.- Details- Transformations apply the node’s subtree and can be nested. Multiple transform nodes will be accumulated by intersecting all their matrices. The accumulation happens as part of the rendering. - The transform nodes implement a 4x4 matrix which in theory supports full 3D transformations. However, because the renderer optimizes for 2D use-cases rather than 3D use-cases, rendering a scene with full 3D transformations needs to be done with some care. - Note - All classes with QSG prefix should be used solely on the scene graph’s rendering thread. See Scene Graph and Rendering for more information. - Inherited by: - QSGTextNode- Synopsis¶- Methods¶- def - __init__()
- def - combinedMatrix()
- def - matrix()
- def - setMatrix()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - __init__()¶
 - Create a new - QSGTransformNodewith its matrix set to the identity matrix.- combinedMatrix()¶
- Return type:
 
 - matrix()¶
- Return type:
 
 - Returns this transform node’s matrix. - See also - setCombinedMatrix(matrix)¶
- Parameters:
- matrix – - QMatrix4x4
 
 - setMatrix(matrix)¶
- Parameters:
- matrix – - QMatrix4x4
 
 - Sets this transform node’s matrix to - matrix.- See also