QGIS API Documentation
3.41.0-Master (f75d66fa9f9)
Loading...
Searching...
No Matches
src
core
pointcloud
qgspointcloudlayerundocommand.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointcloudlayerundocommand.h
3
---------------------
4
begin : January 2025
5
copyright : (C) 2025 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 QGSPOINTCLOUDLAYERUNDOCOMMAND_H
17
#define QGSPOINTCLOUDLAYERUNDOCOMMAND_H
18
19
#define SIP_NO_FILE
20
21
#include "qgis_core.h"
22
#include "
qgspointcloudindex.h
"
23
#include "
qgspointcloudattribute.h
"
24
25
#include <QUndoCommand>
26
34
class
CORE_EXPORT
QgsPointCloudLayerUndoCommand
:
public
QUndoCommand
35
{
36
protected
:
38
QgsPointCloudLayerUndoCommand
(
QgsPointCloudIndex
index );
39
QgsPointCloudIndex
mIndex
;
40
};
41
49
class
CORE_EXPORT
QgsPointCloudLayerUndoCommandChangeAttribute
:
public
QgsPointCloudLayerUndoCommand
50
{
51
public
:
52
61
QgsPointCloudLayerUndoCommandChangeAttribute
(
QgsPointCloudIndex
index,
const
QgsPointCloudNodeId
&n,
const
QVector<int> &points,
const
QgsPointCloudAttribute
&attribute,
double
value );
62
63
void
undo()
override
;
64
void
redo()
override
;
65
66
private
:
67
void
undoRedoPrivate(
bool
isUndo );
68
69
QgsPointCloudNodeId
mNode;
70
QHash< int, double > mPointValues;
// contains pairs of (point number, old value)
71
QgsPointCloudAttribute
mAttribute;
72
int
mAttributeOffset;
73
double
mNewValue;
74
};
75
#endif
// QGSPOINTCLOUDLAYERUNDOCOMMAND_H
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
QgsPointCloudLayerUndoCommandChangeAttribute
An undo command subclass for changing point attribute values in a point cloud index.
Definition
qgspointcloudlayerundocommand.h:50
QgsPointCloudLayerUndoCommand
Base class for undo/redo command for point cloud editing.
Definition
qgspointcloudlayerundocommand.h:35
QgsPointCloudLayerUndoCommand::mIndex
QgsPointCloudIndex mIndex
Definition
qgspointcloudlayerundocommand.h:39
QgsPointCloudNodeId
Represents a indexed point cloud node's position in octree.
Definition
qgspointcloudindex.h:57
qgspointcloudattribute.h
qgspointcloudindex.h
Generated on Fri Jan 24 2025 00:25:35 for QGIS API Documentation by
1.9.8