QSGBasicGeometryNode Class
La classe QSGBasicGeometryNode funge da classe base per i nodi basati sulla geometria. Per saperne di più...
| Intestazione: | #include <QSGBasicGeometryNode> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Eredita da: | QSGNode |
| Ereditato da: |
Funzioni pubbliche
| virtual | ~QSGBasicGeometryNode() override |
| QSGGeometry * | geometry() |
| const QSGGeometry * | geometry() const |
| void | setGeometry(QSGGeometry *geometry) |
Descrizione dettagliata
La classe QSGBasicGeometryNode non deve essere utilizzata da sola. Essa incapsula esclusivamente le funzionalità condivise tra le classi QSGGeometryNode e QSGClipNode.
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
[override virtual noexcept] QSGBasicGeometryNode::~QSGBasicGeometryNode()
Elimina questo oggetto " QSGBasicGeometryNode".
Se il nodo presenta il flag QSGNode::OwnsGeometry impostato, verrà eliminato anche l'oggetto geometrico a cui punta. Questo flag non è impostato per impostazione predefinita.
QSGGeometry *QSGBasicGeometryNode::geometry()
Restituisce la geometria di questo nodo.
Per impostazione predefinita, la geometria è nulla.
Vedi anche setGeometry().
const QSGGeometry *QSGBasicGeometryNode::geometry() const
Restituisce la geometria di questo nodo.
Per impostazione predefinita, la geometria è nulla.
void QSGBasicGeometryNode::setGeometry(QSGGeometry *geometry)
Imposta la geometria di questo nodo su geometry.
Se il nodo presenta il flag QSGNode::OwnsGeometry impostato, eliminerà anche l'oggetto geometrico a cui punta. Questo flag non è impostato per impostazione predefinita.
Se la geometria viene modificata senza richiamare nuovamente setGeometry(), l’utente deve anche contrassegnare la geometria come modificata utilizzando QSGNode::markDirty().
© 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.