ProximityFilter QML Type
Seleziona le entità che si trovano entro una soglia di distanza da un'entità di riferimento. Altro...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QProximityFilter |
| Inherits: | |
| Status: | Deprecated |
Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Proprietà
- distanceThreshold : real
- entity : Entity
Descrizione dettagliata
È possibile utilizzare un " ProximityFilter " per selezionare le entità da visualizzare quando si trovano entro una determinata soglia di distanza da un'altra entità.
import Qt3DRender 2.10
...
RenderSetting {
Viewport {
CameraSelector {
camera: mainCamera
ProximityFilter {
entity: mainCamera
distanceThreshold: 50 // select entities within 50m metre radius of mainCamera
}
}
}
}Documentazione delle proprietà
distanceThreshold : real
Indica la distanza dall'entità di riferimento oltre la quale le entità vengono escluse.
entity : Entity
Contiene l'entità con cui dobbiamo confrontare la distanza.
© 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.