QGIS API Documentation 3.41.0-Master (d2aaa9c6e02)
|
This class takes an existing COPC file and a list of chunks that should be modified, and outputs an updated COPC file where the modified chunks replace the original chunks. More...
#include <qgscopcupdate.h>
Classes | |
struct | UpdatedChunk |
Keeps information how points of a single chunk has been modified. More... | |
Public Member Functions | |
QString | errorMessage () const |
Returns error message. | |
bool | read (const QString &inputFilename) |
Reads input COPC file and initializes all the members. | |
bool | write (const QString &outputFilename, const QHash< QgsPointCloudNodeId, UpdatedChunk > &updatedChunks) |
Writes a COPC file with updated chunks. | |
Static Public Member Functions | |
static bool | writeUpdatedFile (const QString &inputFilename, const QString &outputFilename, const QHash< QgsPointCloudNodeId, UpdatedChunk > &updatedChunks, QString *errorMessage=nullptr) |
Convenience function to do the whole process in one go: load a COPC file, then write a new COPC file with updated chunks. | |
This class takes an existing COPC file and a list of chunks that should be modified, and outputs an updated COPC file where the modified chunks replace the original chunks.
Definition at line 38 of file qgscopcupdate.h.
|
inline |
Returns error message.
Definition at line 58 of file qgscopcupdate.h.
bool QgsCopcUpdate::read | ( | const QString & | inputFilename | ) |
Reads input COPC file and initializes all the members.
Definition at line 235 of file qgscopcupdate.cpp.
bool QgsCopcUpdate::write | ( | const QString & | outputFilename, |
const QHash< QgsPointCloudNodeId, UpdatedChunk > & | updatedChunks | ||
) |
Writes a COPC file with updated chunks.
Definition at line 85 of file qgscopcupdate.cpp.
|
static |
Convenience function to do the whole process in one go: load a COPC file, then write a new COPC file with updated chunks.
Returns true
on success. If errorMessage is not a null pointer, it will be set to an error message in case of failure (i.e. false
is returned).
Definition at line 374 of file qgscopcupdate.cpp.