PySide6.Qt3DRender.Qt3DRender.QProximityFilter

class QProximityFilter

选择与目标实体距离在阈值范围内的实体。更多

PySide6.Qt3DRender.Qt3DRender.QProximityFilter 的继承图

概要

属性

方法

插槽

信号

注意

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

详细描述

一个QProximityFilter可以用来选择在另一个实体的给定距离阈值内放置的实体进行渲染。

注意

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

property distanceThresholdᅟ: float

保持与目标实体的距离,超过此距离的实体将被过滤掉。

Access functions:
property entityᅟ: QEntity

持有我们应该比较距离的实体。

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

parentQNode

distanceThreshold()
Return type:

浮点数

另请参阅

setDistanceThreshold()

属性 distanceThresholdᅟ 的获取器。

distanceThresholdChanged(distanceThreshold)
Parameters:

distanceThreshold – 浮点数

属性 distanceThresholdᅟ 的通知信号。

entity()
Return type:

QEntity

另请参阅

setEntity()

属性 entityᅟ 的获取器。

entityChanged(entity)
Parameters:

实体QEntity

属性 entityᅟ 的通知信号。

setDistanceThreshold(distanceThreshold)
Parameters:

distanceThreshold – 浮点数

另请参阅

distanceThreshold()

属性 distanceThresholdᅟ 的设置器。

setEntity(entity)
Parameters:

实体QEntity

另请参阅

entity()

属性 entityᅟ 的设置器。