QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
pointcloud
qgspointcloudstatscalculator.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointcloudstatscalculator.h
3
--------------------
4
begin : April 2022
5
copyright : (C) 2022 by Belgacem Nedjima
6
email : belgacem dot nedjima at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSPOINTCLOUDSTATSCALCULATOR_H
19
#define QGSPOINTCLOUDSTATSCALCULATOR_H
20
21
#include "qgis_core.h"
22
#include "
qgspointcloudindex.h
"
23
#include "
qgspointcloudrequest.h
"
24
#include "
qgspointcloudstatistics.h
"
25
26
#include <QEventLoop>
27
#include <QFuture>
28
#include <QFutureWatcher>
29
#include <QSet>
30
#include <QVariant>
31
32
#define SIP_NO_FILE
33
34
class
QgsPointCloudBlock
;
35
class
QgsPointCloudAttribute
;
36
class
QgsPointCloudNodeId
;
37
class
QgsFeedback
;
38
47
class
CORE_EXPORT
QgsPointCloudStatsCalculator
:
public
QObject
48
{
49
Q_OBJECT
50
public
:
52
QgsPointCloudStatsCalculator
(
QgsPointCloudIndex
index );
53
58
bool
calculateStats
(
QgsFeedback
*feedback,
const
QVector<QgsPointCloudAttribute> &attributes, qint64 pointsLimit = -1 );
59
61
QgsPointCloudStatistics
statistics
()
const
{
return
mStats; }
62
63
private
:
64
QgsPointCloudIndex
mIndex;
65
66
QgsPointCloudStatistics
mStats;
67
QSet<QgsPointCloudNodeId> mProcessedNodes;
68
69
QgsPointCloudRequest
mRequest;
70
};
71
72
73
#endif
// QGSPOINTCLOUDSTATSCALCULATOR_H
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition
qgsfeedback.h:44
QgsPointCloudAttribute
Attribute for point cloud data pair of name and size in bytes.
Definition
qgspointcloudattribute.h:43
QgsPointCloudBlock
Base class for storing raw data from point cloud nodes.
Definition
qgspointcloudblock.h:39
QgsPointCloudIndex
Smart pointer for QgsAbstractPointCloudIndex.
Definition
qgspointcloudindex.h:439
QgsPointCloudNodeId
Represents an indexed point cloud node's position in octree.
Definition
qgspointcloudindex.h:56
QgsPointCloudRequest
Point cloud data request.
Definition
qgspointcloudrequest.h:41
QgsPointCloudStatistics
Used to store statistics of a point cloud dataset.
Definition
qgspointcloudstatistics.h:76
QgsPointCloudStatsCalculator::statistics
QgsPointCloudStatistics statistics() const
Returns the object containing the calculated statistics.
Definition
qgspointcloudstatscalculator.h:61
QgsPointCloudStatsCalculator::QgsPointCloudStatsCalculator
QgsPointCloudStatsCalculator(QgsPointCloudIndex index)
Constructor.
Definition
qgspointcloudstatscalculator.cpp:207
QgsPointCloudStatsCalculator::calculateStats
bool calculateStats(QgsFeedback *feedback, const QVector< QgsPointCloudAttribute > &attributes, qint64 pointsLimit=-1)
Calculates the statistics of given attributes attributes up to new pointsLimit points Note: the alrea...
Definition
qgspointcloudstatscalculator.cpp:211
qgspointcloudindex.h
qgspointcloudrequest.h
qgspointcloudstatistics.h
Generated on
for QGIS API Documentation by
1.17.0