16 #ifndef QGSDEMTERRAINTILELOADER_P_H 17 #define QGSDEMTERRAINTILELOADER_P_H 30 #include <QtConcurrent/QtConcurrentRun> 31 #include <QFutureWatcher> 32 #include <QElapsedTimer> 46 class QgsDemTerrainTileLoader :
public QgsTerrainTileLoader
51 QgsDemTerrainTileLoader( QgsTerrainEntity *terrain, QgsChunkNode *node );
53 Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
56 void onHeightMapReady(
int jobId,
const QByteArray &heightMap );
61 QByteArray mHeightMap;
73 class QgsDemHeightMapGenerator :
public QObject
83 ~QgsDemHeightMapGenerator()
override;
86 int render(
int x,
int y,
int z );
89 QByteArray renderSynchronously(
int x,
int y,
int z );
92 int resolution()
const {
return mResolution; }
95 float heightAt(
double x,
double y );
99 void heightMapReady(
int jobId,
const QByteArray &heightMap );
102 void onFutureFinished();
121 QFuture<QByteArray> future;
122 QFutureWatcher<QByteArray> *fw;
126 QHash<QFutureWatcher<QByteArray>*, JobData> mJobs;
129 QByteArray mDtmCoarseData;
134 #endif // QGSDEMTERRAINTILELOADER_P_H A rectangle specified with double values.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
3 The class encapsulates tiling scheme (just like with WMTS / TMS / XYZ layers).
Base class for raster data providers.