QProximityFilter Class

class Qt3DRender::QProximityFilter

Auswahl von Objekten, die sich innerhalb einer Entfernungsschwelle von einem Zielobjekt befinden. Mehr...

Kopfzeile: #include <QProximityFilter>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
In QML: ProximityFilter
Vererbt: Qt3DRender::QFrameGraphNode
Status: Veraltet

Eigenschaften

Öffentliche Funktionen

float distanceThreshold() const
Qt3DCore::QEntity *entity() const

Öffentliche Slots

void setDistanceThreshold(float distanceThreshold)
void setEntity(Qt3DCore::QEntity *entity)

Signale

void distanceThresholdChanged(float distanceThreshold)
void entityChanged(Qt3DCore::QEntity *entity)

Detaillierte Beschreibung

Qt3DRender::QProximityFilter kann verwendet werden, um Objekte auszuwählen, die gerendert werden sollen, wenn sie sich innerhalb einer bestimmten Abstandsschwelle zu einem anderen Objekt befinden.

Dokumentation der Eigenschaft

distanceThreshold : float

Gibt den Abstand zum Zielobjekt an, ab dem Objekte herausgefiltert werden.

Zugriffsfunktionen:

float distanceThreshold() const
void setDistanceThreshold(float distanceThreshold)

Melder-Signal:

void distanceThresholdChanged(float distanceThreshold)

entity : Qt3DCore::QEntity*

Enthält die Entität, mit der wir die Entfernung vergleichen sollen.

Zugriffsfunktionen:

Qt3DCore::QEntity *entity() const
void setEntity(Qt3DCore::QEntity *entity)

Benachrichtigungssignal:

void entityChanged(Qt3DCore::QEntity *entity)

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.