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

Base class for offline/online terrain queries. More...

#include <TerrainQueryInterface.h>

+ Inheritance diagram for TerrainQueryInterface:
+ Collaboration diagram for TerrainQueryInterface:

Signals

void coordinateHeightsReceived (bool success, const QList< double > &heights)
 
void pathHeightsReceived (bool success, double distanceBetween, double finalDistanceBetween, const QList< double > &heights)
 
void carpetHeightsReceived (bool success, double minHeight, double maxHeight, const QList< QList< double > > &carpet)
 

Public Member Functions

 TerrainQueryInterface (QObject *parent=nullptr)
 
virtual ~TerrainQueryInterface ()
 
virtual void requestCoordinateHeights (const QList< QGeoCoordinate > &coordinates)
 
virtual void requestPathHeights (const QGeoCoordinate &fromCoord, const QGeoCoordinate &toCoord)
 
virtual void requestCarpetHeights (const QGeoCoordinate &swCoord, const QGeoCoordinate &neCoord, bool statsOnly)
 
void signalCoordinateHeights (bool success, const QList< double > &heights)
 
void signalPathHeights (bool success, double distanceBetween, double finalDistanceBetween, const QList< double > &heights)
 
void signalCarpetHeights (bool success, double minHeight, double maxHeight, const QList< QList< double > > &carpet)
 

Protected Member Functions

virtual void _requestFailed ()
 

Protected Attributes

TerrainQuery::QueryMode _queryMode = TerrainQuery::QueryMode::QueryModeNone
 

Detailed Description

Base class for offline/online terrain queries.

Definition at line 29 of file TerrainQueryInterface.h.

Constructor & Destructor Documentation

◆ TerrainQueryInterface()

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

Definition at line 12 of file TerrainQueryInterface.cc.

◆ ~TerrainQueryInterface()

TerrainQueryInterface::~TerrainQueryInterface ( )
virtual

Definition at line 18 of file TerrainQueryInterface.cc.

Member Function Documentation

◆ _requestFailed()

◆ carpetHeightsReceived

void TerrainQueryInterface::carpetHeightsReceived ( bool  success,
double  minHeight,
double  maxHeight,
const QList< QList< double > > &  carpet 
)
signal

◆ coordinateHeightsReceived

void TerrainQueryInterface::coordinateHeightsReceived ( bool  success,
const QList< double > &  heights 
)
signal

◆ pathHeightsReceived

void TerrainQueryInterface::pathHeightsReceived ( bool  success,
double  distanceBetween,
double  finalDistanceBetween,
const QList< double > &  heights 
)
signal

◆ requestCarpetHeights()

void TerrainQueryInterface::requestCarpetHeights ( const QGeoCoordinate &  swCoord,
const QGeoCoordinate &  neCoord,
bool  statsOnly 
)
virtual

Request terrain heights for the rectangular area specified. Signals: carpetHeights when data is available

Parameters
swCoordSouth-West bound of rectangular area to query
neCoordNorth-East bound of rectangular area to query
statsOnlytrue: Return only stats, no carpet data

Reimplemented in TerrainQueryCopernicus, and TerrainOfflineQuery.

Definition at line 36 of file TerrainQueryInterface.cc.

Referenced by TerrainAreaQuery::requestData().

◆ requestCoordinateHeights()

void TerrainQueryInterface::requestCoordinateHeights ( const QList< QGeoCoordinate > &  coordinates)
virtual

Request terrain heights for specified coodinates. Signals: coordinateHeights when data is available

Parameters
coordinatesto query

Reimplemented in TerrainQueryCopernicus, and TerrainOfflineQuery.

Definition at line 23 of file TerrainQueryInterface.cc.

◆ requestPathHeights()

void TerrainQueryInterface::requestPathHeights ( const QGeoCoordinate &  fromCoord,
const QGeoCoordinate &  toCoord 
)
virtual

Requests terrain heights along the path specified by the two coordinates. Signals: pathHeights

Parameters
coordinatesto query

Reimplemented in TerrainQueryCopernicus, and TerrainOfflineQuery.

Definition at line 29 of file TerrainQueryInterface.cc.

Referenced by TerrainPathQuery::requestData().

◆ signalCarpetHeights()

void TerrainQueryInterface::signalCarpetHeights ( bool  success,
double  minHeight,
double  maxHeight,
const QList< QList< double > > &  carpet 
)

Definition at line 54 of file TerrainQueryInterface.cc.

References carpetHeightsReceived().

Referenced by TerrainTileManager::addCarpetQuery().

◆ signalCoordinateHeights()

void TerrainQueryInterface::signalCoordinateHeights ( bool  success,
const QList< double > &  heights 
)

◆ signalPathHeights()

void TerrainQueryInterface::signalPathHeights ( bool  success,
double  distanceBetween,
double  finalDistanceBetween,
const QList< double > &  heights 
)

Definition at line 49 of file TerrainQueryInterface.cc.

References pathHeightsReceived().

Referenced by TerrainTileManager::addPathQuery().

Member Data Documentation

◆ _queryMode


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