PySide6.Qt3DRender.Qt3DRender.QClipPlane

class QClipPlane

启用一个额外的OpenGL裁剪平面,可以在着色器中使用gl_ClipDistance。更多

PySide6.Qt3DRender.Qt3DRender.QClipPlane 的继承图

概要

属性

方法

插槽

信号

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

默认情况下,OpenGL 支持最多 8 个额外的裁剪平面。Qt3DCore::QClipPlane 允许启用这些额外平面中的一个。然后可以在着色器中使用 gl_ClipDistance[i] 来操作这些平面,其中 i 在 0 到 7 之间变化。底层实现可能支持超过 8 个裁剪平面,但这并不保证。

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property distanceᅟ: float

保持平面与世界原点的距离。

Access functions:
property normalᅟ: QVector3D

保存平面的法线。

Access functions:
property planeIndexᅟ: int

保存平面的索引。

注意

通常在0-7之间。

Access functions:
__init__([parent=None])
Parameters:

parentQNode

distance()
Return type:

浮点数

另请参阅

setDistance()

属性 distanceᅟ 的获取器。

distanceChanged(distance)
Parameters:

距离 – 浮点数

属性 distanceᅟ 的通知信号。

normal()
Return type:

QVector3D

另请参阅

setNormal()

属性 normalᅟ 的获取器。

normalChanged(normal)
Parameters:

normalQVector3D

属性 normalᅟ 的通知信号。

planeIndex()
Return type:

整数

另请参阅

setPlaneIndex()

属性 planeIndexᅟ 的获取器。

planeIndexChanged(planeIndex)
Parameters:

planeIndex – int

属性 planeIndexᅟ 的通知信号。

setDistance(arg__1)
Parameters:

arg__1 – 浮点数

另请参阅

distance()

属性 distanceᅟ 的设置器。

setNormal(arg__1)
Parameters:

arg__1QVector3D

另请参阅

normal()

属性 normalᅟ 的设置器。

setPlaneIndex(arg__1)
Parameters:

arg__1 – 整数

另请参阅

planeIndex()

属性 planeIndexᅟ 的设置器。