|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <GeoMapProjectedPath.h>
Inheritance diagram for GeoMapProjectedPath:
Collaboration diagram for GeoMapProjectedPath:Signals | |
| void | coordinatesChanged () |
| void | sceneChanged () |
| void | surfaceModelChanged () |
| void | altitudeModeChanged () |
| void | screenPointsChanged () |
| void | projectedChanged () |
Public Member Functions | |
| GeoMapProjectedPath (QObject *parent=nullptr) | |
| QVariantList | coordinates () const |
| void | setCoordinates (const QVariantList &coordinates) |
| GeoScene * | scene () const |
| void | setScene (GeoScene *scene) |
| SurfacePatchModel * | surfaceModel () const |
| void | setSurfaceModel (SurfacePatchModel *surfaceModel) |
| GeoMapItem::AltitudeMode | altitudeMode () const |
| void | setAltitudeMode (GeoMapItem::AltitudeMode mode) |
| QVariantList | screenPoints () const |
| bool | projected () const |
Static Public Member Functions | |
| static Q_INVOKABLE QVariantList | circleCoordinates (const QGeoCoordinate ¢er, double radiusMeters, int segments=32) |
Batch coordinate->screen projector for the GeoMap 2D overlay. Mirrors GeoMapItem's own single-point camera-reactive projection (GeoMapItem::_updatePosition), batched over N points: projects coordinates through the camera whenever the camera pose, scene anchor, or (in ClampToGround mode) terrain heights change, and republishes the result as screenPoints. Meant for QtQuick.Shapes-based polygon/polyline overlays (survey area, transect lines, landing approach lines, ...) that need many vertices reprojected reactively without each caller hand-wiring its own camera Connections.
Definition at line 34 of file GeoMapProjectedPath.h.
|
explicit |
Definition at line 19 of file GeoMapProjectedPath.cc.
|
inline |
Definition at line 60 of file GeoMapProjectedPath.h.
|
signal |
Referenced by setAltitudeMode().
|
static |
Points evenly spaced around a circle (great-circle distance/azimuth from center, closed back to the first point), for consumers that want a loiter-ring outline as an ordinary coordinates list
Definition at line 158 of file GeoMapProjectedPath.cc.
References coordinates().
|
inline |
Definition at line 48 of file GeoMapProjectedPath.h.
Referenced by circleCoordinates(), and setCoordinates().
|
signal |
Referenced by setCoordinates().
|
inline |
False while any coordinate fails to project (invalid, no scene/camera, behind the camera plane, or beyond the horizon)
Definition at line 68 of file GeoMapProjectedPath.h.
|
signal |
|
inline |
Definition at line 52 of file GeoMapProjectedPath.h.
Referenced by setScene().
|
signal |
Referenced by setScene().
|
inline |
Definition at line 64 of file GeoMapProjectedPath.h.
|
signal |
| void GeoMapProjectedPath::setAltitudeMode | ( | GeoMapItem::AltitudeMode | mode | ) |
Definition at line 76 of file GeoMapProjectedPath.cc.
References altitudeModeChanged().
| void GeoMapProjectedPath::setCoordinates | ( | const QVariantList & | coordinates | ) |
Definition at line 21 of file GeoMapProjectedPath.cc.
References coordinates(), and coordinatesChanged().
| void GeoMapProjectedPath::setScene | ( | GeoScene * | scene | ) |
Definition at line 31 of file GeoMapProjectedPath.cc.
References GeoScene::cameraChanged(), scene(), sceneChanged(), GeoScene::sceneOriginChanged(), and GeoScene::terrainScaleChanged().
| void GeoMapProjectedPath::setSurfaceModel | ( | SurfacePatchModel * | surfaceModel | ) |
Definition at line 54 of file GeoMapProjectedPath.cc.
References surfaceModel(), surfaceModelChanged(), and SurfacePatchModel::terrainHeightsChanged().
|
inline |
Definition at line 56 of file GeoMapProjectedPath.h.
Referenced by setSurfaceModel().
|
signal |
Referenced by setSurfaceModel().