Commit ab2f8c6b authored by DonLakeFlyer's avatar DonLakeFlyer

Fix terrain path query

parent 6cb27d34
...@@ -412,7 +412,7 @@ void TransectStyleComplexItem::_reallyQueryTransectsPathHeightInfo(void) ...@@ -412,7 +412,7 @@ void TransectStyleComplexItem::_reallyQueryTransectsPathHeightInfo(void)
if (transectPoints.count() > 1) { if (transectPoints.count() > 1) {
_terrainPolyPathQuery = new TerrainPolyPathQuery(this); _terrainPolyPathQuery = new TerrainPolyPathQuery(this);
connect(_terrainPolyPathQuery, &TerrainPolyPathQuery::terrainData, this, &TransectStyleComplexItem::_polyPathTerrainData); connect(_terrainPolyPathQuery, &TerrainPolyPathQuery::terrainDataReceived, this, &TransectStyleComplexItem::_polyPathTerrainData);
_terrainPolyPathQuery->requestData(transectPoints); _terrainPolyPathQuery->requestData(transectPoints);
} }
} }
......
...@@ -186,7 +186,7 @@ void VisualMissionItem::_reallyUpdateTerrainAltitude(void) ...@@ -186,7 +186,7 @@ void VisualMissionItem::_reallyUpdateTerrainAltitude(void)
_lastLatTerrainQuery = coord.latitude(); _lastLatTerrainQuery = coord.latitude();
_lastLonTerrainQuery = coord.longitude(); _lastLonTerrainQuery = coord.longitude();
TerrainAtCoordinateQuery* terrain = new TerrainAtCoordinateQuery(this); TerrainAtCoordinateQuery* terrain = new TerrainAtCoordinateQuery(this);
connect(terrain, &TerrainAtCoordinateQuery::terrainData, this, &VisualMissionItem::_terrainDataReceived); connect(terrain, &TerrainAtCoordinateQuery::terrainDataReceived, this, &VisualMissionItem::_terrainDataReceived);
QList<QGeoCoordinate> rgCoord; QList<QGeoCoordinate> rgCoord;
rgCoord.append(coordinate()); rgCoord.append(coordinate());
terrain->requestData(rgCoord); terrain->requestData(rgCoord);
......
This diff is collapsed.
...@@ -50,9 +50,9 @@ public: ...@@ -50,9 +50,9 @@ public:
virtual void requestCarpetHeights(const QGeoCoordinate& swCoord, const QGeoCoordinate& neCoord, bool statsOnly) = 0; virtual void requestCarpetHeights(const QGeoCoordinate& swCoord, const QGeoCoordinate& neCoord, bool statsOnly) = 0;
signals: signals:
void coordinateHeights(bool success, QList<double> heights); void coordinateHeightsReceived(bool success, QList<double> heights);
void pathHeights(bool success, double latStep, double lonStep, const QList<double>& heights); void pathHeightsReceived(bool success, double latStep, double lonStep, const QList<double>& heights);
void carpetHeights(bool success, double minHeight, double maxHeight, const QList<QList<double>>& carpet); void carpetHeightsReceived(bool success, double minHeight, double maxHeight, const QList<QList<double>>& carpet);
}; };
/// AirMap online implementation of terrain queries /// AirMap online implementation of terrain queries
...@@ -136,6 +136,7 @@ private: ...@@ -136,6 +136,7 @@ private:
typedef struct { typedef struct {
TerrainOfflineAirMapQuery* terrainQueryInterface; TerrainOfflineAirMapQuery* terrainQueryInterface;
QueryMode queryMode; QueryMode queryMode;
double latStep, lonStep;
QList<QGeoCoordinate> coordinates; QList<QGeoCoordinate> coordinates;
} QueuedRequestInfo_t; } QueuedRequestInfo_t;
...@@ -210,7 +211,7 @@ public: ...@@ -210,7 +211,7 @@ public:
void _signalTerrainData(bool success, QList<double>& heights); void _signalTerrainData(bool success, QList<double>& heights);
signals: signals:
void terrainData(bool success, QList<double> heights); void terrainDataReceived(bool success, QList<double> heights);
}; };
class TerrainPathQuery : public QObject class TerrainPathQuery : public QObject
...@@ -233,7 +234,7 @@ public: ...@@ -233,7 +234,7 @@ public:
signals: signals:
/// Signalled when terrain data comes back from server /// Signalled when terrain data comes back from server
void terrainData(bool success, const PathHeightInfo_t& pathHeightInfo); void terrainDataReceived(bool success, const PathHeightInfo_t& pathHeightInfo);
private slots: private slots:
void _pathHeights(bool success, double latStep, double lonStep, const QList<double>& heights); void _pathHeights(bool success, double latStep, double lonStep, const QList<double>& heights);
...@@ -259,7 +260,7 @@ public: ...@@ -259,7 +260,7 @@ public:
signals: signals:
/// Signalled when terrain data comes back from server /// Signalled when terrain data comes back from server
void terrainData(bool success, const QList<TerrainPathQuery::PathHeightInfo_t>& rgPathHeightInfo); void terrainDataReceived(bool success, const QList<TerrainPathQuery::PathHeightInfo_t>& rgPathHeightInfo);
private slots: private slots:
void _terrainDataReceived(bool success, const TerrainPathQuery::PathHeightInfo_t& pathHeightInfo); void _terrainDataReceived(bool success, const TerrainPathQuery::PathHeightInfo_t& pathHeightInfo);
...@@ -288,7 +289,7 @@ public: ...@@ -288,7 +289,7 @@ public:
signals: signals:
/// Signalled when terrain data comes back from server /// Signalled when terrain data comes back from server
void terrainData(bool success, double minHeight, double maxHeight, const QList<QList<double>>& carpet); void terrainDataReceived(bool success, double minHeight, double maxHeight, const QList<QList<double>>& carpet);
private: private:
TerrainAirMapQuery _terrainQuery; TerrainAirMapQuery _terrainQuery;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment