Qt3DRender::QClipPlane Class
class Qt3DRender::QClipPlaneActive un plan d'écrêtage OpenGL supplémentaire qui peut être utilisé dans les shaders à l'aide de gl_ClipDistance. Plus...
| En-tête : | #include <QClipPlane> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake : | QT += 3drender |
| En QML : | ClipPlane |
| Hérite : | Qt3DRender::QRenderState |
| Statut : | Déclassé |
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 supporte jusqu'à 8 plans d'écrêtage supplémentaires. Qt3DCore::QClipPlane permet d'activer l'un de ces plans supplémentaires. Ces plans peuvent ensuite être manipulés dans les shaders en utilisant gl_ClipDistance[i] où i varie entre 0 et 7. L'implémentation sous-jacente peut prendre en charge plus de 8 plans de clips, mais cela n'est pas garanti.
Documentation sur les propriétés
distance : float
Indique la distance du plan par rapport à l'origine du monde.
Fonctions d'accès :
| float | distance() const |
| void | setDistance(float) |
Signal de notification :
| void | distanceChanged(float distance) |
normal : QVector3D
Détient la normale du plan.
Fonctions d'accès :
| QVector3D | normal() const |
| void | setNormal(QVector3D) |
Signal de notification :
| void | normalChanged(QVector3D normal) |
planeIndex : int
Indique l'indice du plan.
Note : Généralement 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.