23 #include <QtConcurrent/QtConcurrent>
27 QgsPointCloudStatsCalculationTask::QgsPointCloudStatsCalculationTask(
QgsPointCloudIndex *index,
const QVector<QgsPointCloudAttribute> &attributes, qint64 pointLimit )
28 :
QgsTask( tr(
"Generating attributes statistics" ) )
29 , mCalculator( index )
30 , mAttributes( attributes )
31 , mPointLimit( pointLimit )
36 bool QgsPointCloudStatsCalculationTask::run()
39 return mCalculator.calculateStats( mFeedback, mAttributes, mPointLimit );
42 void QgsPointCloudStatsCalculationTask::cancel()
50 return mCalculator.statistics();