QClipPlane

Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QClipPlane

Synopsis

Functions

Slots

Signals

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.

class PySide2.Qt3DRender.Qt3DRender.QClipPlane([parent=None])
Parameters:

parentPySide2.Qt3DCore.Qt3DCore.QNode

PySide2.Qt3DRender.Qt3DRender.QClipPlane.distance()
Return type:

float

Holds the distance of the plane from the world origin.

PySide2.Qt3DRender.Qt3DRender.QClipPlane.distanceChanged(distance)
Parameters:

distance – float

PySide2.Qt3DRender.Qt3DRender.QClipPlane.normal()
Return type:

PySide2.QtGui.QVector3D

Holds the normal of the plane.

PySide2.Qt3DRender.Qt3DRender.QClipPlane.normalChanged(normal)
Parameters:

normalPySide2.QtGui.QVector3D

PySide2.Qt3DRender.Qt3DRender.QClipPlane.planeIndex()
Return type:

int

Holds the index of the plane.

Note

Usually between 0-7.

PySide2.Qt3DRender.Qt3DRender.QClipPlane.planeIndexChanged(planeIndex)
Parameters:

planeIndex – int

PySide2.Qt3DRender.Qt3DRender.QClipPlane.setDistance(arg__1)
Parameters:

arg__1 – float

Holds the distance of the plane from the world origin.

PySide2.Qt3DRender.Qt3DRender.QClipPlane.setNormal(arg__1)
Parameters:

arg__1PySide2.QtGui.QVector3D

Holds the normal of the plane.

PySide2.Qt3DRender.Qt3DRender.QClipPlane.setPlaneIndex(arg__1)
Parameters:

arg__1 – int

Holds the index of the plane.

Note

Usually between 0-7.