QClipPlane#
Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. More…
Synopsis#
Properties#
Functions#
def
distance
()def
normal
()def
planeIndex
()
Slots#
def
setDistance
(arg__1)def
setNormal
(arg__1)def
setPlaneIndex
(arg__1)
Signals#
def
distanceChanged
(distance)def
normalChanged
(normal)def
planeIndexChanged
(planeIndex)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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 PySide6.Qt3DRender.Qt3DRender.QClipPlane([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DRender.Qt3DRender.QClipPlane.distance: float#
Holds the distance of the plane from the world origin.
- Access functions:
distance
()setDistance
(arg__1)Signal
distanceChanged
(distance)
- property PᅟySide6.Qt3DRender.Qt3DRender.QClipPlane.normal: PySide6.QtGui.QVector3D#
Holds the normal of the plane.
- Access functions:
normal
()setNormal
(arg__1)Signal
normalChanged
(normal)
- property PᅟySide6.Qt3DRender.Qt3DRender.QClipPlane.planeIndex: int#
Holds the index of the plane.
Note
Usually between 0-7.
- Access functions:
planeIndex
()setPlaneIndex
(arg__1)Signal
planeIndexChanged
(planeIndex)
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.distance()#
- Return type:
float
See also
Getter of property distance
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.distanceChanged(distance)#
- Parameters:
distance – float
Notification signal of property distance
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.normal()#
- Return type:
See also
Getter of property normal
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.normalChanged(normal)#
- Parameters:
normal –
PySide6.QtGui.QVector3D
Notification signal of property normal
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.planeIndex()#
- Return type:
int
See also
Getter of property planeIndex
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.planeIndexChanged(planeIndex)#
- Parameters:
planeIndex – int
Notification signal of property planeIndex
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.setDistance(arg__1)#
- Parameters:
arg__1 – float
See also
Setter of property distance
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.setNormal(arg__1)#
- Parameters:
arg__1 –
PySide6.QtGui.QVector3D
See also
Setter of property normal
.
- PySide6.Qt3DRender.Qt3DRender.QClipPlane.setPlaneIndex(arg__1)#
- Parameters:
arg__1 – int
See also
Setter of property planeIndex
.