|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <FenceWallGeometry.h>
Inheritance diagram for FenceWallGeometry:
Collaboration diagram for FenceWallGeometry:Signals | |
| void | sceneChanged () |
| void | surfaceModelChanged () |
| void | coordinatesChanged () |
| void | heightAglMetersChanged () |
| void | anchorCoordinateChanged () |
Public Member Functions | |
| FenceWallGeometry (QQuick3DObject *parent=nullptr) | |
| GeoScene * | scene () const |
| void | setScene (GeoScene *scene) |
| SurfacePatchModel * | surfaceModel () const |
| void | setSurfaceModel (SurfacePatchModel *surfaceModel) |
| QVariantList | coordinates () const |
| void | setCoordinates (const QVariantList &coordinates) |
| qreal | heightAglMeters () const |
| void | setHeightAglMeters (qreal heightAglMeters) |
| QGeoCoordinate | anchorCoordinate () const |
Vertical fence curtain for the GeoMap 3D scene: a triangle strip extruded upward from the terrain to heightAglMeters along a closed coordinate ring (geofence walls). Edges are subdivided so the bottom edge drapes over terrain and the top edge stays a constant AGL height above it, matching how firmwares evaluate AGL fences.
Positions are scene-unit offsets relative to anchorCoordinate (the first ring vertex, at its terrain altitude). z offsets are pre-scaled by the scene's verticalScale but NOT terrainScale: parent the model under a node whose z-scale tracks GeoScene::terrainScale so the wall flattens away during the 3D->2D transition.
Definition at line 37 of file FenceWallGeometry.h.
|
explicit |
Definition at line 28 of file FenceWallGeometry.cc.
|
inline |
First ring vertex at its terrain altitude (invalid while the ring is empty). Place the wall's node at this coordinate; z offsets in the buffer are relative to its altitude.
Definition at line 71 of file FenceWallGeometry.h.
|
signal |
|
inline |
Ring vertices (QGeoCoordinate variants). A trailing duplicate of the first vertex is tolerated; the ring is closed internally either way.
Definition at line 60 of file FenceWallGeometry.h.
Referenced by setCoordinates().
|
signal |
Referenced by setCoordinates().
|
inline |
Definition at line 64 of file FenceWallGeometry.h.
Referenced by setHeightAglMeters().
|
signal |
Referenced by setHeightAglMeters().
|
inline |
Definition at line 50 of file FenceWallGeometry.h.
Referenced by setScene().
|
signal |
Referenced by setScene().
| void FenceWallGeometry::setCoordinates | ( | const QVariantList & | coordinates | ) |
Definition at line 76 of file FenceWallGeometry.cc.
References coordinates(), and coordinatesChanged().
| void FenceWallGeometry::setHeightAglMeters | ( | qreal | heightAglMeters | ) |
Definition at line 98 of file FenceWallGeometry.cc.
References heightAglMeters(), and heightAglMetersChanged().
| void FenceWallGeometry::setScene | ( | GeoScene * | scene | ) |
Definition at line 33 of file FenceWallGeometry.cc.
References scene(), sceneChanged(), and GeoScene::sceneOriginChanged().
| void FenceWallGeometry::setSurfaceModel | ( | SurfacePatchModel * | surfaceModel | ) |
Definition at line 55 of file FenceWallGeometry.cc.
References surfaceModel(), surfaceModelChanged(), and SurfacePatchModel::terrainHeightsChanged().
|
inline |
Definition at line 54 of file FenceWallGeometry.h.
Referenced by setSurfaceModel().
|
signal |
Referenced by setSurfaceModel().