- class QProximityFilter#
Select entities which are within a distance threshold of a target entity. More…
Synopsis#
Properties#
Methods#
def
__init__()
def
entity()
Slots#
def
setEntity()
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.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property distanceThresholdᅟ: float#
Holds the distance to the target entity above which entities are filtered out.
- Access functions:
Holds the entity against which we should compare the distance to.
- Access functions:
Signal
entityChanged()
- __init__([parent=None])#
- Parameters:
parent –
QNode
- distanceThreshold()#
- Return type:
float
See also
setDistanceThreshold()
Getter of property
distanceThresholdᅟ
.- distanceThresholdChanged(distanceThreshold)#
- Parameters:
distanceThreshold – float
Notification signal of property
distanceThresholdᅟ
.- entity()#
- Return type:
QEntity
See also
setEntity()
Getter of property
entityᅟ
.- entityChanged(entity)#
- Parameters:
entity –
QEntity
Notification signal of property
entityᅟ
.- setDistanceThreshold(distanceThreshold)#
- Parameters:
distanceThreshold – float
See also
distanceThreshold()
Setter of property
distanceThresholdᅟ
.- setEntity(entity)#
- Parameters:
entity –
QEntity
See also
entity()
Setter of property
entityᅟ
.