Qt3DRender::QProximityFilter Class
class Qt3DRender::QProximityFilter対象エンティティから距離の閾値以内に位置するエンティティを選択します。詳細...
| ヘッダー: | #include <qproximityfilter.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | ProximityFilter |
| 継承元: | Qt3DRender::QFrameGraphNode |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- distanceThreshold : float
- entity : Qt3DCore::QEntity*
パブリック関数
| float | distanceThreshold() const |
| Qt3DCore::QEntity * | entity() const |
パブリック・スロット
| void | setDistanceThreshold(float distanceThreshold) |
| void | setEntity(Qt3DCore::QEntity *entity) |
シグナル
| void | distanceThresholdChanged(float distanceThreshold) |
| void | entityChanged(Qt3DCore::QEntity *entity) |
詳細な説明
Qt3DRender::QProximityFilter を使用すると、あるエンティティから指定された距離のしきい値以内に配置されたエンティティを、レンダリング対象として選択することができます。
プロパティのドキュメント
distanceThreshold : float
ターゲットエンティティまでの距離を保持し、この距離を超えるとエンティティが除外されます。
アクセス関数:
| float | distanceThreshold() const |
| void | setDistanceThreshold(float distanceThreshold) |
通知信号:
| void | distanceThresholdChanged(float distanceThreshold) |
entity : Qt3DCore::QEntity*
距離を比較するための基準となるエンティティを保持します。
アクセス関数:
| Qt3DCore::QEntity * | entity() const |
| void | setEntity(Qt3DCore::QEntity *entity) |
通知シグナル:
| void | entityChanged(Qt3DCore::QEntity *entity) |
© 2026 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.