19#include "moc_qgspointcloudstatscalculationtask.cpp" 
   24#include <QtConcurrent/QtConcurrent> 
   28QgsPointCloudStatsCalculationTask::QgsPointCloudStatsCalculationTask( 
QgsPointCloudIndex index, 
const QVector<QgsPointCloudAttribute> &attributes, qint64 pointLimit )
 
   29  : 
QgsTask( tr( 
"Generating attributes statistics" ) )
 
   30  , mCalculator( index )
 
   31  , mAttributes( attributes )
 
   32  , mPointLimit( pointLimit )
 
   37bool QgsPointCloudStatsCalculationTask::run()
 
   40  return mCalculator.calculateStats( mFeedback, mAttributes, mPointLimit );
 
   43void QgsPointCloudStatsCalculationTask::cancel()
 
   51  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.
 
Smart pointer for QgsAbstractPointCloudIndex.
 
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.