QProximityFilter#
Select entities which are within a distance threshold of a target entity. More…
Synopsis#
Properties#
Functions#
def
distanceThreshold
()def
entity
()
Slots#
def
setDistanceThreshold
(distanceThreshold)def
setEntity
(entity)
Signals#
def
distanceThresholdChanged
(distanceThreshold)def
entityChanged
(entity)
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:
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.QProximityFilter.distanceThreshold: float#
Holds the distance to the target entity above which entities are filtered out.
- Access functions:
setDistanceThreshold
(distanceThreshold)Signal
distanceThresholdChanged
(distanceThreshold)
- property PᅟySide6.Qt3DRender.Qt3DRender.QProximityFilter.entity: PySide6.Qt3DCore.Qt3DCore.QEntity#
Holds the entity against which we should compare the distance to.
- Access functions:
entity
()setEntity
(entity)Signal
entityChanged
(entity)
- 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:
See also
setEntity()
Getter of property entity
.
- PySide6.Qt3DRender.Qt3DRender.QProximityFilter.entityChanged(entity)#
- Parameters:
entity –
PySide6.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:
entity –
PySide6.Qt3DCore.Qt3DCore.QEntity
See also
entity()
Setter of property entity
.