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

#include <TerrainQuery.h>

+ Inheritance diagram for TerrainPathQuery:
+ Collaboration diagram for TerrainPathQuery:

Classes

struct  PathHeightInfo_t
 

Signals

void terrainDataReceived (bool success, const TerrainPathQuery::PathHeightInfo_t &pathHeightInfo)
 Signalled when terrain data comes back from server.
 

Public Member Functions

 TerrainPathQuery (bool autoDelete, QObject *parent=nullptr)
 
 ~TerrainPathQuery ()
 
void requestData (const QGeoCoordinate &fromCoord, const QGeoCoordinate &toCoord)
 

Detailed Description

Definition at line 104 of file TerrainQuery.h.

Constructor & Destructor Documentation

◆ TerrainPathQuery()

TerrainPathQuery::TerrainPathQuery ( bool  autoDelete,
QObject *  parent = nullptr 
)
explicit
Parameters
autoDeletetrue: object will delete itself after it signals results

Definition at line 197 of file TerrainQuery.cc.

References TerrainQueryInterface::pathHeightsReceived().

◆ ~TerrainPathQuery()

TerrainPathQuery::~TerrainPathQuery ( )

Definition at line 208 of file TerrainQuery.cc.

Member Function Documentation

◆ requestData()

void TerrainPathQuery::requestData ( const QGeoCoordinate &  fromCoord,
const QGeoCoordinate &  toCoord 
)

Async terrain query for terrain heights between two lat/lon coordinates. When the query is done, the terrainData() signal is emitted.

Parameters
coordinatesto query

Definition at line 213 of file TerrainQuery.cc.

References TerrainQueryInterface::requestPathHeights().

Referenced by TerrainPolyPathQuery::requestData().

◆ terrainDataReceived

void TerrainPathQuery::terrainDataReceived ( bool  success,
const TerrainPathQuery::PathHeightInfo_t pathHeightInfo 
)
signal

Signalled when terrain data comes back from server.

Referenced by TerrainPolyPathQuery::TerrainPolyPathQuery().


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