16 #ifndef QGSVECTORLAYERCHUNKLOADER_P_H
17 #define QGSVECTORLAYERCHUNKLOADER_P_H
41 class QgsFeature3DHandler;
48 #include <QFutureWatcher>
58 class QgsVectorLayerChunkLoaderFactory :
public QgsQuadtreeChunkLoaderFactory
67 virtual QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override;
71 std::unique_ptr<QgsAbstract3DSymbol> mSymbol;
84 class QgsVectorLayerChunkLoader :
public QgsChunkLoader
90 QgsVectorLayerChunkLoader(
const QgsVectorLayerChunkLoaderFactory *factory, QgsChunkNode *node );
91 ~QgsVectorLayerChunkLoader()
override;
93 virtual void cancel()
override;
94 virtual Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
97 const QgsVectorLayerChunkLoaderFactory *mFactory;
98 std::unique_ptr<QgsFeature3DHandler> mHandler;
99 Qgs3DRenderContext mContext;
100 std::unique_ptr<QgsVectorLayerFeatureSource> mSource;
101 bool mCanceled =
false;
102 QFutureWatcher<void> *mFutureWatcher =
nullptr;
116 class QgsVectorLayerChunkedEntity :
public QgsChunkedEntity
123 ~QgsVectorLayerChunkedEntity();
125 void onTerrainElevationOffsetChanged(
float newOffset );
128 Qt3DCore::QTransform *mTransform =
nullptr;
133 #endif // QGSVECTORLAYERCHUNKLOADER_P_H