QGIS API Documentation 3.41.0-Master (d2aaa9c6e02)
|
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. | |
Contains utility functions for editing point cloud layers.
Definition at line 44 of file qgspointcloudlayereditutils.h.
QgsPointCloudLayerEditUtils::QgsPointCloudLayerEditUtils | ( | QgsPointCloudLayer * | layer | ) |
Ctor.
Definition at line 26 of file qgspointcloudlayereditutils.cpp.
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.
n | The point cloud node containing the points |
points | The point ids of the points to be modified |
attribute | The attribute whose value will be updated |
value | The new value to set to the attribute |
true
if the editing buffer was updated successfully, false
otherwise Definition at line 31 of file qgspointcloudlayereditutils.cpp.
|
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.
|
static |
Check if value is within proper range for the attribute.
Definition at line 255 of file qgspointcloudlayereditutils.cpp.