Qt3DRender::QPolygonOffset Class
class Qt3DRender::QPolygonOffsetLa classe QPolygonOffset imposta la scala e gli incrementi utilizzati per calcolare i valori di profondità per gli offset dei poligoni. Per saperne di più...
| Intestazione: | #include <qpolygonoffset.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | PolygonOffset |
| Eredita da: | Qt3DRender::QRenderState |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- depthSteps : float
- scaleFactor : float
Funzioni pubbliche
| QPolygonOffset(Qt3DCore::QNode *parent = nullptr) | |
| float | depthSteps() const |
| float | scaleFactor() const |
Slot pubblici
| void | setDepthSteps(float depthSteps) |
| void | setScaleFactor(float scaleFactor) |
Segnali
| void | depthStepsChanged(float depthSteps) |
| void | scaleFactorChanged(float scaleFactor) |
Descrizione dettagliata
Una classe QPolygonOffset aggiunge un offset al valore di profondità del frammento prima del test di profondità e della scrittura della profondità. L'offset può essere utilizzato per evitare il "z-fighting" durante il rendering di poligoni con valori di profondità molto vicini, come ad esempio le decalcomanie.
Documentazione delle proprietà
depthSteps : float
Contiene le unità che generano offset di profondità costanti. Il valore predefinito è 0.
Funzioni di accesso:
| float | depthSteps() const |
| void | setDepthSteps(float depthSteps) |
Segnale di notifica:
| void | depthStepsChanged(float depthSteps) |
scaleFactor : float
Contiene il fattore di scala utilizzato per creare un offset di profondità variabile per ciascun poligono. Il valore predefinito è 0.
Funzioni di accesso:
| float | scaleFactor() const |
| void | setScaleFactor(float scaleFactor) |
Segnale di notifica:
| void | scaleFactorChanged(float scaleFactor) |
Documentazione delle funzioni membro
[explicit] QPolygonOffset::QPolygonOffset(Qt3DCore::QNode *parent = nullptr)
Il costruttore crea una nuova istanza di ` QPolygonOffset::QPolygonOffset ` con i parametri specificati parent
© 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.