QGIS API Documentation 3.41.0-Master (d2aaa9c6e02)
Loading...
Searching...
No Matches
qgspointcloudlayereditutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspointcloudlayereditutils.h
3 ---------------------
4 begin : December 2024
5 copyright : (C) 2024 by Stefanos Natsis
6 email : uclaros at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSPOINTCLOUDLAYEREDITUTILS_H
17#define QGSPOINTCLOUDLAYEREDITUTILS_H
18
19#include "qgis_core.h"
20#include "qgspointcloudindex.h"
21
22#include <QVector>
23#include <QByteArray>
24
25#define SIP_NO_FILE
26
32
33class QgsCopcPointCloudIndex;
34
45{
46 public:
49
59 bool changeAttributeValue( const QgsPointCloudNodeId &n, const QVector<int> &points, const QgsPointCloudAttribute &attribute, double value );
60
62 static QByteArray dataForAttributes( const QgsPointCloudAttributeCollection &allAttributes, const QByteArray &data, const QgsPointCloudRequest &request );
63
65 static bool isAttributeValueValid( const QgsPointCloudAttribute &attribute, double value );
66
67 private:
68
70 QByteArray updateChunkValues( QgsCopcPointCloudIndex *copcIndex, const QByteArray &chunkData, const QgsPointCloudAttribute &attribute, double newClassValue, const QgsPointCloudNodeId &n, const QVector<int> &pointIndices );
71
72 QgsPointCloudIndex mIndex;
73};
74
75#endif // QGSPOINTCLOUDLAYEREDITUTILS_H
Collection of point cloud attributes.
Attribute for point cloud data pair of name and size in bytes.
Smart pointer for QgsAbstractPointCloudIndex.
Contains utility functions for editing point cloud layers.
Represents a map layer supporting display of point clouds.
Represents a indexed point cloud node's position in octree.
Point cloud data request.