Fix docstrings, thread access macro

This commit is contained in:
uclaros 2024-12-20 13:37:03 +02:00 committed by Martin Dobias
parent 3e773e798e
commit d3ce302629
4 changed files with 29 additions and 3 deletions

View File

@ -24,9 +24,13 @@
class QgsPointCloudLayer;
/**
* The QgsPointCloudEditingIndex class is a QgsPointCloudIndex that is used as an editing
* \ingroup core
*
* \brief The QgsPointCloudEditingIndex class is a QgsPointCloudIndex that is used as an editing
* buffer when editing point cloud data.
*
* \note Not available in Python bindings
*
* \since QGIS 3.42
*/
class CORE_EXPORT QgsPointCloudEditingIndex : public QgsPointCloudIndex

View File

@ -1081,7 +1081,7 @@ bool QgsPointCloudLayer::changeAttributeValue( const QgsPointCloudNodeId &n, con
QgsPointCloudIndex *QgsPointCloudLayer::index() const
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
if ( mEditIndex )
return mEditIndex.get();

View File

@ -319,6 +319,16 @@ class CORE_EXPORT QgsPointCloudLayer : public QgsMapLayer, public QgsAbstractPro
*/
bool changeAttributeValue( const QgsPointCloudNodeId &n, const QVector<int> &points, const QgsPointCloudAttribute &attribute, double value ) SIP_SKIP;
/**
* Returns the point cloud index associated with the layer.
* If the layer is editable, its QgsPointCloudEditingIndex is returned,
* otherwise the index is fetched from the data provider.
*
* Can be nullptr (e.g. the index is being created)
*
* \note Not available in Python bindings
* \since QGIS 3.42
*/
QgsPointCloudIndex *index() const SIP_SKIP;

View File

@ -16,6 +16,8 @@
#ifndef QGSPOINTCLOUDLAYEREDITUTILS_H
#define QGSPOINTCLOUDLAYEREDITUTILS_H
#include "qgis_core.h"
#include <QVector>
#include <QByteArray>
@ -28,9 +30,19 @@ class QgsPointCloudAttribute;
class QgsPointCloudAttributeCollection;
class QgsPointCloudRequest;
class QgsPointCloudLayerEditUtils
/**
* \ingroup core
*
* \brief Contains utility functions for editing point cloud layers.
*
* \note Not available in Python bindings
*
* \since QGIS 3.42
*/
class CORE_EXPORT QgsPointCloudLayerEditUtils
{
public:
//! Ctor
QgsPointCloudLayerEditUtils( QgsPointCloudLayer *layer );
/**