QGIS API Documentation 3.41.0-Master (d2aaa9c6e02)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
QgsCopcUpdate Class Reference

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.
 

Detailed Description

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.

Note
The API is considered EXPERIMENTAL and can be changed without a notice
Since
QGIS 3.42

Definition at line 38 of file qgscopcupdate.h.

Member Function Documentation

◆ errorMessage()

QString QgsCopcUpdate::errorMessage ( ) const
inline

Returns error message.

Definition at line 58 of file qgscopcupdate.h.

◆ read()

bool QgsCopcUpdate::read ( const QString &  inputFilename)

Reads input COPC file and initializes all the members.

Definition at line 235 of file qgscopcupdate.cpp.

◆ write()

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.

◆ writeUpdatedFile()

bool QgsCopcUpdate::writeUpdatedFile ( const QString &  inputFilename,
const QString &  outputFilename,
const QHash< QgsPointCloudNodeId, UpdatedChunk > &  updatedChunks,
QString *  errorMessage = nullptr 
)
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.


The documentation for this class was generated from the following files: