QClipPlane Class▲
-
Header: QClipPlane
-
Since: Qt 5.5
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
-
qmake: QT += 3drender
-
Inherited By:
-
Instantiated By: qml-qt3d-render-clipplane.xml
-
Inherits: Qt3DRender::QRenderState
Detailed Description▲
By default, OpenGL supports up to 8 additional clipping planes. Qt3DCore::QClipPlane allows to enable one of these additional planes. These planes can then be manipulated in the shaders using gl_ClipDistance[i] where i varies between 0 and 7. The underlying implementation may support more than 8 clip planes, but it is not guaranteed.
Property Documentation▲
distance : float▲
Holds the distance of the plane from the world origin.
Access functions:
-
float distance() const
-
void setDistance(float)
Notifier signal:
-
void distanceChanged(float distance)
normal : QVector3D▲
Holds the normal of the plane.
Access functions:
-
normal() const
-
void setNormal(QVector3D)
Notifier signal:
-
void normalChanged( normal)
planeIndex : int▲
Holds the index of the plane.
Usually between 0-7.
Access functions:
-
int planeIndex() const
-
void setPlaneIndex(int)
Notifier signal:
-
void planeIndexChanged(int planeIndex)