QGIS API Documentation 3.41.0-Master (d2aaa9c6e02)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
QgsPointCloudLayerEditUtils Class Reference

Contains utility functions for editing point cloud layers. More...

#include <qgspointcloudlayereditutils.h>

Public Member Functions

 QgsPointCloudLayerEditUtils (QgsPointCloudLayer *layer)
 Ctor.
 
bool changeAttributeValue (const QgsPointCloudNodeId &n, const QVector< int > &points, const QgsPointCloudAttribute &attribute, double value)
 Attempts to modify attribute values for specific points in the editing buffer.
 

Static Public Member Functions

static QByteArray dataForAttributes (const QgsPointCloudAttributeCollection &allAttributes, const QByteArray &data, const QgsPointCloudRequest &request)
 Takes data comprising of allAttributes and returns a QByteArray with data only for the attributes included in the request.
 
static bool isAttributeValueValid (const QgsPointCloudAttribute &attribute, double value)
 Check if value is within proper range for the attribute.
 

Detailed Description

Contains utility functions for editing point cloud layers.

Note
Not available in Python bindings
Since
QGIS 3.42

Definition at line 44 of file qgspointcloudlayereditutils.h.

Constructor & Destructor Documentation

◆ QgsPointCloudLayerEditUtils()

QgsPointCloudLayerEditUtils::QgsPointCloudLayerEditUtils ( QgsPointCloudLayer layer)

Ctor.

Definition at line 26 of file qgspointcloudlayereditutils.cpp.

Member Function Documentation

◆ changeAttributeValue()

bool QgsPointCloudLayerEditUtils::changeAttributeValue ( const QgsPointCloudNodeId n,
const QVector< int > &  points,
const QgsPointCloudAttribute attribute,
double  value 
)

Attempts to modify attribute values for specific points in the editing buffer.

Parameters
nThe point cloud node containing the points
pointsThe point ids of the points to be modified
attributeThe attribute whose value will be updated
valueThe new value to set to the attribute
Returns
true if the editing buffer was updated successfully, false otherwise

Definition at line 31 of file qgspointcloudlayereditutils.cpp.

◆ dataForAttributes()

QByteArray QgsPointCloudLayerEditUtils::dataForAttributes ( const QgsPointCloudAttributeCollection allAttributes,
const QByteArray &  data,
const QgsPointCloudRequest request 
)
static

Takes data comprising of allAttributes and returns a QByteArray with data only for the attributes included in the request.

Definition at line 230 of file qgspointcloudlayereditutils.cpp.

◆ isAttributeValueValid()

bool QgsPointCloudLayerEditUtils::isAttributeValueValid ( const QgsPointCloudAttribute attribute,
double  value 
)
static

Check if value is within proper range for the attribute.

Definition at line 255 of file qgspointcloudlayereditutils.cpp.


The documentation for this class was generated from the following files: