QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GeoMapProjectedPath Class Reference

#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 &center, double radiusMeters, int segments=32)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GeoMapProjectedPath()

GeoMapProjectedPath::GeoMapProjectedPath ( QObject *  parent = nullptr)
explicit

Definition at line 19 of file GeoMapProjectedPath.cc.

Member Function Documentation

◆ altitudeMode()

GeoMapItem::AltitudeMode GeoMapProjectedPath::altitudeMode ( ) const
inline

Definition at line 60 of file GeoMapProjectedPath.h.

◆ altitudeModeChanged

void GeoMapProjectedPath::altitudeModeChanged ( )
signal

Referenced by setAltitudeMode().

◆ circleCoordinates()

QVariantList GeoMapProjectedPath::circleCoordinates ( const QGeoCoordinate &  center,
double  radiusMeters,
int  segments = 32 
)
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().

◆ coordinates()

QVariantList GeoMapProjectedPath::coordinates ( ) const
inline

Definition at line 48 of file GeoMapProjectedPath.h.

Referenced by circleCoordinates(), and setCoordinates().

◆ coordinatesChanged

void GeoMapProjectedPath::coordinatesChanged ( )
signal

Referenced by setCoordinates().

◆ projected()

bool GeoMapProjectedPath::projected ( ) const
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.

◆ projectedChanged

void GeoMapProjectedPath::projectedChanged ( )
signal

◆ scene()

GeoScene * GeoMapProjectedPath::scene ( ) const
inline

Definition at line 52 of file GeoMapProjectedPath.h.

Referenced by setScene().

◆ sceneChanged

void GeoMapProjectedPath::sceneChanged ( )
signal

Referenced by setScene().

◆ screenPoints()

QVariantList GeoMapProjectedPath::screenPoints ( ) const
inline

Definition at line 64 of file GeoMapProjectedPath.h.

◆ screenPointsChanged

void GeoMapProjectedPath::screenPointsChanged ( )
signal

◆ setAltitudeMode()

void GeoMapProjectedPath::setAltitudeMode ( GeoMapItem::AltitudeMode  mode)

Definition at line 76 of file GeoMapProjectedPath.cc.

References altitudeModeChanged().

◆ setCoordinates()

void GeoMapProjectedPath::setCoordinates ( const QVariantList &  coordinates)

Definition at line 21 of file GeoMapProjectedPath.cc.

References coordinates(), and coordinatesChanged().

◆ setScene()

void GeoMapProjectedPath::setScene ( GeoScene *  scene)

◆ setSurfaceModel()

void GeoMapProjectedPath::setSurfaceModel ( SurfacePatchModel *  surfaceModel)

◆ surfaceModel()

SurfacePatchModel * GeoMapProjectedPath::surfaceModel ( ) const
inline

Definition at line 56 of file GeoMapProjectedPath.h.

Referenced by setSurfaceModel().

◆ surfaceModelChanged

void GeoMapProjectedPath::surfaceModelChanged ( )
signal

Referenced by setSurfaceModel().


The documentation for this class was generated from the following files: