QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
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 <optional>
20
21
#include "qgis_core.h"
22
#include "
qgspointcloudindex.h
"
23
24
#include <QByteArray>
25
26
#define SIP_NO_FILE
27
28
class
QgsPointCloudLayer
;
29
class
QgsPointCloudNodeId
;
30
class
QgsPointCloudAttribute
;
31
class
QgsPointCloudAttributeCollection
;
32
class
QgsPointCloudRequest
;
33
class
QgsCopcPointCloudIndex;
34
44
class
CORE_EXPORT
QgsPointCloudLayerEditUtils
45
{
46
public
:
48
QgsPointCloudLayerEditUtils
() =
delete
;
49
51
static
bool
isAttributeValueValid
(
const
QgsPointCloudAttribute
&attribute,
double
value );
52
54
static
QByteArray
updateChunkValues
(
55
QgsCopcPointCloudIndex *copcIndex,
56
const
QByteArray &chunkData,
57
const
QgsPointCloudAttribute
&attribute,
58
QgsPointCloudNodeId
n,
59
const
QHash<int, double> &pointValues,
60
std::optional<double> newValue = std::nullopt
61
);
62
};
63
64
#endif
// QGSPOINTCLOUDLAYEREDITUTILS_H
QgsPointCloudAttributeCollection
A collection of point cloud attributes.
Definition
qgspointcloudattribute.h:157
QgsPointCloudAttribute
Attribute for point cloud data pair of name and size in bytes.
Definition
qgspointcloudattribute.h:43
QgsPointCloudLayerEditUtils::updateChunkValues
static QByteArray updateChunkValues(QgsCopcPointCloudIndex *copcIndex, const QByteArray &chunkData, const QgsPointCloudAttribute &attribute, QgsPointCloudNodeId n, const QHash< int, double > &pointValues, std::optional< double > newValue=std::nullopt)
Sets new classification value for the given points in voxel and return updated chunk data.
Definition
qgspointcloudlayereditutils.cpp:132
QgsPointCloudLayerEditUtils::QgsPointCloudLayerEditUtils
QgsPointCloudLayerEditUtils()=delete
Ctor.
QgsPointCloudLayerEditUtils::isAttributeValueValid
static bool isAttributeValueValid(const QgsPointCloudAttribute &attribute, double value)
Check if value is within proper range for the attribute.
Definition
qgspointcloudlayereditutils.cpp:179
QgsPointCloudLayer
Represents a map layer supporting display of point clouds.
Definition
qgspointcloudlayer.h:49
QgsPointCloudNodeId
Represents an indexed point cloud node's position in octree.
Definition
qgspointcloudindex.h:56
QgsPointCloudRequest
Point cloud data request.
Definition
qgspointcloudrequest.h:41
qgspointcloudindex.h
Generated on
for QGIS API Documentation by
1.17.0