QProximityFilter露

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

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QProximityFilter

New in version 5.10.

Synopsis露

Functions露

Slots露

Signals露

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 PySide2.Qt3DRender.Qt3DRender.QProximityFilter([parent=None])露
Parameters:

parent 鈥� PySide2.Qt3DCore.Qt3DCore.QNode

PySide2.Qt3DRender.Qt3DRender.QProximityFilter.distanceThreshold()露
Return type:

float

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

PySide2.Qt3DRender.Qt3DRender.QProximityFilter.distanceThresholdChanged(distanceThreshold)露
Parameters:

distanceThreshold 鈥� float

PySide2.Qt3DRender.Qt3DRender.QProximityFilter.entity()露
Return type:

PySide2.Qt3DCore.Qt3DCore.QEntity

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

PySide2.Qt3DRender.Qt3DRender.QProximityFilter.entityChanged(entity)露
Parameters:

entity 鈥� PySide2.Qt3DCore.Qt3DCore.QEntity

PySide2.Qt3DRender.Qt3DRender.QProximityFilter.setDistanceThreshold(distanceThreshold)露
Parameters:

distanceThreshold 鈥� float

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

PySide2.Qt3DRender.Qt3DRender.QProximityFilter.setEntity(entity)露
Parameters:

entity 鈥� PySide2.Qt3DCore.Qt3DCore.QEntity

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