|
QGroundControl
Ground Control Station for MAVLink Drones
|
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 |
Base class for offline/online terrain queries.
Definition at line 29 of file TerrainQueryInterface.h.
|
explicit |
Definition at line 12 of file TerrainQueryInterface.cc.
|
virtual |
Definition at line 18 of file TerrainQueryInterface.cc.
|
protectedvirtual |
Definition at line 59 of file TerrainQueryInterface.cc.
References _queryMode, carpetHeightsReceived(), coordinateHeightsReceived(), pathHeightsReceived(), TerrainQuery::QueryModeCarpet, TerrainQuery::QueryModeCoordinates, and TerrainQuery::QueryModePath.
Referenced by TerrainOnlineQuery::_requestFinished().
|
signal |
Referenced by _requestFailed(), signalCarpetHeights(), and TerrainAreaQuery::TerrainAreaQuery().
|
signal |
|
signal |
Referenced by _requestFailed(), signalPathHeights(), and TerrainPathQuery::TerrainPathQuery().
|
virtual |
Request terrain heights for the rectangular area specified. Signals: carpetHeights when data is available
| swCoord | South-West bound of rectangular area to query |
| neCoord | North-East bound of rectangular area to query |
| statsOnly | true: Return only stats, no carpet data |
Reimplemented in TerrainQueryCopernicus, and TerrainOfflineQuery.
Definition at line 36 of file TerrainQueryInterface.cc.
Referenced by TerrainAreaQuery::requestData().
|
virtual |
Request terrain heights for specified coodinates. Signals: coordinateHeights when data is available
| coordinates | to query |
Reimplemented in TerrainQueryCopernicus, and TerrainOfflineQuery.
Definition at line 23 of file TerrainQueryInterface.cc.
|
virtual |
Requests terrain heights along the path specified by the two coordinates. Signals: pathHeights
| coordinates | to query |
Reimplemented in TerrainQueryCopernicus, and TerrainOfflineQuery.
Definition at line 29 of file TerrainQueryInterface.cc.
Referenced by TerrainPathQuery::requestData().
| 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().
| void TerrainQueryInterface::signalCoordinateHeights | ( | bool | success, |
| const QList< double > & | heights | ||
| ) |
Definition at line 44 of file TerrainQueryInterface.cc.
References coordinateHeightsReceived().
Referenced by TerrainTileManager::addCoordinateQuery().
| 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().
|
protected |
Definition at line 66 of file TerrainQueryInterface.h.
Referenced by _requestFailed(), TerrainQueryCopernicus::requestCarpetHeights(), TerrainOfflineQuery::requestCarpetHeights(), TerrainQueryCopernicus::requestCoordinateHeights(), TerrainOfflineQuery::requestCoordinateHeights(), TerrainQueryCopernicus::requestPathHeights(), and TerrainOfflineQuery::requestPathHeights().