QGIS API Documentation 3.41.0-Master (f75d66fa9f9)
Loading...
Searching...
No Matches
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"
24
25#include <QUndoCommand>
26
34class CORE_EXPORT QgsPointCloudLayerUndoCommand : public QUndoCommand
35{
36 protected:
40};
41
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
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
Attribute for point cloud data pair of name and size in bytes.
Smart pointer for QgsAbstractPointCloudIndex.
An undo command subclass for changing point attribute values in a point cloud index.
Base class for undo/redo command for point cloud editing.
Represents a indexed point cloud node's position in octree.