Qt3DRender::QClipPlane Class
class Qt3DRender::QClipPlaneActive un plan de découpage OpenGL supplémentaire pouvant être utilisé dans les shaders via gl_ClipDistance. En savoir plus...
| En-tête : | #include <qclipplane.h> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake : | QT += 3drender |
| En QML : | ClipPlane |
| Hérite de : | Qt3DRender::QRenderState |
| Statut : | Obsolète |
Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.
Propriétés
- distance : float
- normal : QVector3D
- planeIndex : int
Fonctions publiques
| float | distance() const |
| QVector3D | normal() const |
| int | planeIndex() const |
Emplacements publics
| void | setDistance(float) |
| void | setNormal(QVector3D) |
| void | setPlaneIndex(int) |
Signaux
| void | distanceChanged(float distance) |
| void | normalChanged(QVector3D normal) |
| void | planeIndexChanged(int planeIndex) |
Description détaillée
Par défaut, OpenGL prend en charge jusqu’à 8 plans de découpage supplémentaires. Qt3DCore::QClipPlane permet d’activer l’un de ces plans supplémentaires. Ces plans peuvent ensuite être manipulés dans les shaders à l’aide de gl_ClipDistance[i], où i varie entre 0 et 7. L’implémentation sous-jacente peut prendre en charge plus de 8 plans de découpage, mais cela n’est pas garanti.
Documentation de la propriété
distance : float
Contient la distance entre le plan et l'origine du monde.
Fonctions d'accès :
| float | distance() const |
| void | setDistance(float) |
Signal de notification :
| void | distanceChanged(float distance) |
normal : QVector3D
Contient la normale au plan.
Fonctions d'accès :
| QVector3D | normal() const |
| void | setNormal(QVector3D) |
Signal de notification :
| void | normalChanged(QVector3D normal) |
planeIndex : int
Contient l'index du plan.
Remarque : généralement compris entre 0 et 7.
Fonctions d'accès :
| int | planeIndex() const |
| void | setPlaneIndex(int) |
Signal de notification :
| 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.