QGIS/python/core/auto_generated/pointcloud/qgspointcloudstatistics.sip.in
Nyall Dawson 72f07dc851 Fix build
2024-12-15 11:37:53 +10:00

120 lines
3.3 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/pointcloud/qgspointcloudstatistics.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
struct QgsPointCloudAttributeStatistics
{
double minimum;
double maximum;
double mean;
double stDev;
int count;
int singleClassCount( int cls ) const;
%Docstring
Returns the count of points in given class or -1 on error
.. versionadded:: 3.42
%End
};
class QgsPointCloudStatistics
{
%Docstring(signature="appended")
Class used to store statistics of a point cloud dataset.
.. versionadded:: 3.26
%End
%TypeHeaderCode
#include "qgspointcloudstatistics.h"
%End
public:
QgsPointCloudStatistics();
int sampledPointsCount() const;
%Docstring
Returns the number of points used to calculate the statistics
%End
void clear();
%Docstring
Clears the statistics of all attributes
%End
void clear( const QVector<QgsPointCloudAttribute> &attributes );
%Docstring
Clears the statistics of given attributes ``attributes``
%End
QgsPointCloudAttributeStatistics statisticsOf( const QString &attribute ) const;
%Docstring
Returns the calculated statistics of attribute ``attribute``
%End
QList<int> classesOf( const QString &attribute ) const;
%Docstring
Returns a list of existing classes which are present for the specified ``attribute``
%End
double minimum( const QString &attribute ) const;
%Docstring
Returns the minimum value for the attribute ``attribute``
If no matching statistic is available then NaN will be returned.
%End
double maximum( const QString &attribute ) const;
%Docstring
Returns the maximum value for the attribute ``attribute``
If no matching statistic is available then NaN will be returned.
%End
double mean( const QString &attribute ) const;
%Docstring
Returns the mean value for the attribute ``attribute``
If no matching statistic is available then NaN will be returned.
%End
double stDev( const QString &attribute ) const;
%Docstring
Returns the standard deviation value for the attribute ``attribute``
If no matching statistic is available then NaN will be returned.
%End
void combineWith( const QgsPointCloudStatistics &stats );
%Docstring
Merges the current statistics with the statistics from ``stats``
%End
QByteArray toStatisticsJson() const;
%Docstring
Converts the current statistics object into JSON object
%End
static QgsPointCloudStatistics fromStatisticsJson( const QByteArray &stats );
%Docstring
Creates a statistics object from the JSON object ``stats``
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/pointcloud/qgspointcloudstatistics.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/