QGIS API Documentation
3.41.0-Master (d2aaa9c6e02)
Loading...
Searching...
No Matches
src
core
pointcloud
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
27
class
QgsPointCloudLayer
;
28
class
QgsPointCloudNodeId
;
29
class
QgsPointCloudAttribute
;
30
class
QgsPointCloudAttributeCollection
;
31
class
QgsPointCloudRequest
;
32
33
class
QgsCopcPointCloudIndex;
34
44
class
CORE_EXPORT
QgsPointCloudLayerEditUtils
45
{
46
public
:
48
QgsPointCloudLayerEditUtils
(
QgsPointCloudLayer
*layer );
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
QgsPointCloudAttributeCollection
Collection of point cloud attributes.
Definition
qgspointcloudattribute.h:141
QgsPointCloudAttribute
Attribute for point cloud data pair of name and size in bytes.
Definition
qgspointcloudattribute.h:41
QgsPointCloudIndex
Smart pointer for QgsAbstractPointCloudIndex.
Definition
qgspointcloudindex.h:417
QgsPointCloudLayerEditUtils
Contains utility functions for editing point cloud layers.
Definition
qgspointcloudlayereditutils.h:45
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition
qgspointcloudlayer.h:46
QgsPointCloudNodeId
Represents a indexed point cloud node's position in octree.
Definition
qgspointcloudindex.h:57
QgsPointCloudRequest
Point cloud data request.
Definition
qgspointcloudrequest.h:42
qgspointcloudindex.h
Generated on Fri Jan 17 2025 01:33:19 for QGIS API Documentation by
1.9.8