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>
57class QgsPointCloudLayerChunkLoaderFactory :
public QgsChunkLoaderFactory
68 double zValueScale,
double zValueOffset,
int pointBudget );
71 virtual QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override;
72 virtual QgsChunkNode *createRootNode()
const override;
73 virtual QVector<QgsChunkNode *> createChildren( QgsChunkNode *node )
const override;
74 virtual int primitivesCount( QgsChunkNode *node )
const override;
78 std::unique_ptr< QgsPointCloud3DSymbol > mSymbol;
79 double mZValueScale = 1.0;
80 double mZValueOffset = 0;
81 int mPointBudget = 1000000;
82 bool mTriangulate =
false;
95class QgsPointCloudLayerChunkLoader :
public QgsChunkLoader
105 QgsPointCloudLayerChunkLoader(
const QgsPointCloudLayerChunkLoaderFactory *factory, QgsChunkNode *node, std::unique_ptr< QgsPointCloud3DSymbol > symbol,
107 ~QgsPointCloudLayerChunkLoader()
override;
109 virtual void cancel()
override;
110 virtual Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
113 const QgsPointCloudLayerChunkLoaderFactory *mFactory;
114 std::unique_ptr<QgsPointCloud3DSymbolHandler> mHandler;
116 QFutureWatcher<void> *mFutureWatcher =
nullptr;
130class QgsPointCloudLayerChunkedEntity :
public QgsChunkedEntity
135 double zValueScale,
double zValueOffset,
int pointBudget );
139 ~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.