QProximityFilter#

Select entities which are within a distance threshold of a target entity. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QProximityFilter

Synopsis#

Properties#

Functions#

Slots#

Signals#

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#

A QProximityFilter can be used to select entities to render when they are placed within a given distance threshold of another entity.

class PySide6.Qt3DRender.Qt3DRender.QProximityFilter([parent=None])#
Parameters:

parentPySide6.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.QProximityFilter.distanceThreshold: float#

Holds the distance to the target entity above which entities are filtered out.

Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QProximityFilter.entity: PySide6.Qt3DCore.Qt3DCore.QEntity#

Holds the entity against which we should compare the distance to.

Access functions:
PySide6.Qt3DRender.Qt3DRender.QProximityFilter.distanceThreshold()#
Return type:

float

See also

setDistanceThreshold()

Getter of property distanceThreshold .

PySide6.Qt3DRender.Qt3DRender.QProximityFilter.distanceThresholdChanged(distanceThreshold)#
Parameters:

distanceThreshold – float

Notification signal of property distanceThreshold .

PySide6.Qt3DRender.Qt3DRender.QProximityFilter.entity()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QEntity

See also

setEntity()

Getter of property entity .

PySide6.Qt3DRender.Qt3DRender.QProximityFilter.entityChanged(entity)#
Parameters:

entityPySide6.Qt3DCore.Qt3DCore.QEntity

Notification signal of property entity .

PySide6.Qt3DRender.Qt3DRender.QProximityFilter.setDistanceThreshold(distanceThreshold)#
Parameters:

distanceThreshold – float

See also

distanceThreshold()

Setter of property distanceThreshold .

PySide6.Qt3DRender.Qt3DRender.QProximityFilter.setEntity(entity)#
Parameters:

entityPySide6.Qt3DCore.Qt3DCore.QEntity

See also

entity()

Setter of property entity .