23#include <QtConcurrent/QtConcurrent>
27QgsPointCloudStatsCalculationTask::QgsPointCloudStatsCalculationTask(
QgsPointCloudIndex *index,
const QVector<QgsPointCloudAttribute> &attributes, qint64 pointLimit )
28 :
QgsTask( tr(
"Generating attributes statistics" ) )
29 , mCalculator( index )
30 , mAttributes( attributes )
31 , mPointLimit( pointLimit )
36bool QgsPointCloudStatsCalculationTask::run()
39 return mCalculator.calculateStats( mFeedback, mAttributes, mPointLimit );
42void QgsPointCloudStatsCalculationTask::cancel()
50 return mCalculator.statistics();
Base class for feedback objects to be used for cancellation of something running in a worker thread.
void progressChanged(double progress)
Emitted when the feedback object reports a progress change.
Represents a indexed point clouds data in octree.
Class used to store statistics of a point cloud dataset.
Abstract base class for long running background tasks.
virtual void cancel()
Notifies the task that it should terminate.