QSGTransformNode Class
La classe QSGTransformNode implementa le trasformazioni nel grafico della scena. Per saperne di più...
| Intestazione: | #include <QSGTransformNode> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Eredita da: | QSGNode |
| Ereditato da: |
- Elenco di tutti i membri, compresi quelli ereditati
- QSGTransformNode fa parte delle classi dei nodi del grafo di scenQt Quick .
Funzioni pubbliche
| QSGTransformNode() | |
| virtual | ~QSGTransformNode() override |
| const QMatrix4x4 & | matrix() const |
| void | setMatrix(const QMatrix4x4 &matrix) |
Descrizione dettagliata
Le trasformazioni si applicano al sottoalbero del nodo e possono essere annidate. Più nodi di trasformazione verranno accumulati mediante l'intersezione di tutte le loro matrici. L'accumulo avviene come parte del rendering.
I nodi di trasformazione implementano una matrice 4x4 che, in teoria, supporta trasformazioni 3D complete. Tuttavia, poiché il renderer è ottimizzato per casi d'uso 2D piuttosto che 3D, il rendering di una scena con trasformazioni 3D complete deve essere eseguito con una certa cautela.
Nota: tutte le classi con prefisso QSG devono essere utilizzate esclusivamente sul thread di rendering del grafo di scena. Per ulteriori informazioni, consultare Grafo di scena e rendering.
Documentazione delle funzioni membro
QSGTransformNode::QSGTransformNode()
Crea un nuovo QSGTransformNode con la matrice impostata come matrice identità.
[override virtual noexcept] QSGTransformNode::~QSGTransformNode()
Elimina questo nodo di trasformazione.
const QMatrix4x4 &QSGTransformNode::matrix() const
Restituisce la matrice di questo nodo di trasformazione.
Vedi anche setMatrix().
void QSGTransformNode::setMatrix(const QMatrix4x4 &matrix)
Imposta la matrice di questo nodo di trasformazione su matrix.
Vedi anche matrix().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.