16#ifndef QGSPOINTCLOUDLAYERCHUNKLOADER_P_H
17#define QGSPOINTCLOUDLAYERCHUNKLOADER_P_H
38#include <QFutureWatcher>
39#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
40#include <Qt3DRender/QGeometry>
41#include <Qt3DRender/QBuffer>
43#include <Qt3DCore/QGeometry>
44#include <Qt3DCore/QBuffer>
46#include <Qt3DRender/QMaterial>
58class QgsPointCloudLayerChunkLoaderFactory :
public QgsChunkLoaderFactory
69 double zValueScale,
double zValueOffset,
int pointBudget );
72 virtual QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override;
73 virtual QgsChunkNode *createRootNode()
const override;
74 virtual QVector<QgsChunkNode *> createChildren( QgsChunkNode *node )
const override;
75 virtual int primitivesCount( QgsChunkNode *node )
const override;
79 std::unique_ptr< QgsPointCloud3DSymbol > mSymbol;
80 double mZValueScale = 1.0;
81 double mZValueOffset = 0;
82 int mPointBudget = 1000000;
83 bool mTriangulate =
false;
96class QgsPointCloudLayerChunkLoader :
public QgsChunkLoader
106 QgsPointCloudLayerChunkLoader(
const QgsPointCloudLayerChunkLoaderFactory *factory, QgsChunkNode *node, std::unique_ptr< QgsPointCloud3DSymbol > symbol,
108 ~QgsPointCloudLayerChunkLoader()
override;
110 virtual void cancel()
override;
111 virtual Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
114 const QgsPointCloudLayerChunkLoaderFactory *mFactory;
115 std::unique_ptr<QgsPointCloud3DSymbolHandler> mHandler;
117 QFutureWatcher<void> *mFutureWatcher =
nullptr;
131class QgsPointCloudLayerChunkedEntity :
public QgsChunkedEntity
136 double zValueScale,
double zValueOffset,
int pointBudget );
140 ~QgsPointCloudLayerChunkedEntity();
Encapsulates the render context for a 3D point cloud rendering operation.
Represents a indexed point clouds data in octree.
A rectangle specified with double values.
Helper struct to store ray casting parameters.