Qt3DRender::QClipPlane Class
class Qt3DRender::QClipPlaneAbilita un piano di clipping OpenGL aggiuntivo che può essere utilizzato negli shader tramite gl_ClipDistance. Per saperne di più...
| Intestazione: | #include <qclipplane.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | ClipPlane |
| Eredita da: | Qt3DRender::QRenderState |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- distance : float
- normal : QVector3D
- planeIndex : int
Funzioni pubbliche
| float | distance() const |
| QVector3D | normal() const |
| int | planeIndex() const |
Slot pubblici
| void | setDistance(float) |
| void | setNormal(QVector3D) |
| void | setPlaneIndex(int) |
Segnali
| void | distanceChanged(float distance) |
| void | normalChanged(QVector3D normal) |
| void | planeIndexChanged(int planeIndex) |
Descrizione dettagliata
Per impostazione predefinita, OpenGL supporta fino a 8 piani di clipping aggiuntivi. Qt3DCore::QClipPlane consente di abilitare uno di questi piani aggiuntivi. Questi piani possono quindi essere manipolati negli shader utilizzando gl_ClipDistance[i], dove i varia da 0 a 7. L'implementazione sottostante potrebbe supportare più di 8 piani di clipping, ma ciò non è garantito.
Documentazione della proprietà
distance : float
Contiene la distanza dell'piano dall'origine del mondo.
Funzioni di accesso:
| float | distance() const |
| void | setDistance(float) |
Segnale di notifica:
| void | distanceChanged(float distance) |
normal : QVector3D
Contiene la normale al piano.
Funzioni di accesso:
| QVector3D | normal() const |
| void | setNormal(QVector3D) |
Segnale di notifica:
| void | normalChanged(QVector3D normal) |
planeIndex : int
Contiene l'indice del piano.
Nota: solitamente compreso tra 0 e 7.
Funzioni di accesso:
| int | planeIndex() const |
| void | setPlaneIndex(int) |
Segnale di notifica:
| void | planeIndexChanged(int planeIndex) |
© 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.