このページでは

ProximityFilter QML Type

対象エンティティから距離の閾値以内にあるエンティティを選択します。詳細...

Import Statement: import Qt3D.Render 2.12
In C++: QProximityFilter
Inherits:

FrameGraphNode

Status: Deprecated

このタイプは非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

詳細な説明

ProximityFilter を使用すると、あるエンティティから所定の距離閾値以内に配置されたエンティティをレンダリング対象として選択することができます。

import Qt3DRender 2.10
...
RenderSetting {
    Viewport {
        CameraSelector {
            camera: mainCamera
            ProximityFilter {
                entity: mainCamera
                distanceThreshold: 50 // select entities within 50m metre radius of mainCamera
            }
        }
    }
}

プロパティのドキュメント

distanceThreshold : real

ターゲットエンティティまでの距離のうち、これを超えるとエンティティが除外される閾値を保持します。

entity : 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.