QClipPlane Class
class Qt3DRender::QClipPlaneAktiviert eine zusätzliche OpenGL-Beschneidungsebene, die in Shadern mit gl_ClipDistance verwendet werden kann. Mehr...
Kopfzeile: | #include <QClipPlane> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
In QML: | ClipPlane |
Vererbt: | Qt3DRender::QRenderState |
Status: | Veraltet |
Eigenschaften
- distance : float
- normal : QVector3D
- planeIndex : int
Öffentliche Funktionen
float | distance() const |
QVector3D | normal() const |
int | planeIndex() const |
Öffentliche Slots
void | setDistance(float) |
void | setNormal(QVector3D) |
void | setPlaneIndex(int) |
Signale
void | distanceChanged(float distance) |
void | normalChanged(QVector3D normal) |
void | planeIndexChanged(int planeIndex) |
Detaillierte Beschreibung
OpenGL unterstützt standardmäßig bis zu 8 zusätzliche Clipping-Ebenen. Qt3DCore::QClipPlane erlaubt es, eine dieser zusätzlichen Ebenen zu aktivieren. Diese Ebenen können dann in den Shadern mit gl_ClipDistance[i] manipuliert werden, wobei i zwischen 0 und 7 variiert. Die zugrundeliegende Implementierung kann mehr als 8 Clipebenen unterstützen, dies ist jedoch nicht garantiert.
Dokumentation der Eigenschaft
distance : float
Enthält den Abstand der Ebene vom Weltursprung.
Zugriffsfunktionen:
float | distance() const |
void | setDistance(float) |
Melder-Signal:
void | distanceChanged(float distance) |
normal : QVector3D
Enthält die Normale der Ebene.
Zugriffsfunktionen:
QVector3D | normal() const |
void | setNormal(QVector3D) |
Melder-Signal:
void | normalChanged(QVector3D normal) |
planeIndex : int
Enthält den Index der Ebene.
Hinweis: Normalerweise zwischen 0-7.
Zugriffsfunktionen:
int | planeIndex() const |
void | setPlaneIndex(int) |
Melder-Signal:
void | planeIndexChanged(int planeIndex) |
© 2025 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.