QgsTask task which performs a QgsPointCloudLayerExporter layer export operation as a background task.
More...
#include <qgspointcloudlayerexporter.h>
|
void | finished (bool result) override |
| If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether through successful completion or via early termination). More...
|
|
bool | run () override |
| Performs the task's operation. More...
|
|
virtual void | finished (bool result) |
| If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether through successful completion or via early termination). More...
|
|
bool | isCanceled () const |
| Will return true if task should terminate ASAP. More...
|
|
virtual bool | run ()=0 |
| Performs the task's operation. More...
|
|
QgsTask task which performs a QgsPointCloudLayerExporter layer export operation as a background task.
This can be used to export a point cloud layer out to a provider without blocking the QGIS interface.
- Since
- QGIS 3.28
Definition at line 353 of file qgspointcloudlayerexporter.h.
◆ QgsPointCloudLayerExporterTask()
◆ cancel()
void QgsPointCloudLayerExporterTask::cancel |
( |
| ) |
|
|
overridevirtual |
Notifies the task that it should terminate.
Calling this is not guaranteed to immediately end the task, rather it sets the isCanceled() flag which task subclasses can check and terminate their operations at an appropriate time. Any subtasks owned by this task will also be canceled. Derived classes must ensure that the base class implementation is called from any overridden version.
- See also
- isCanceled()
Reimplemented from QgsTask.
Definition at line 655 of file qgspointcloudlayerexporter.cpp.
◆ exportComplete
void QgsPointCloudLayerExporterTask::exportComplete |
( |
| ) |
|
|
signal |
Emitted when exporting the layer is successfully completed.
◆ finished()
void QgsPointCloudLayerExporterTask::finished |
( |
bool |
result | ) |
|
|
overrideprotectedvirtual |
If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether through successful completion or via early termination).
The result argument reflects whether the task was successfully completed or not. This method is always called from the main thread, so it is safe to create widgets and perform other operations which require the main thread. However, the GUI will be blocked for the duration of this method so tasks should avoid performing any lengthy operations here.
Reimplemented from QgsTask.
Definition at line 674 of file qgspointcloudlayerexporter.cpp.
◆ run()
bool QgsPointCloudLayerExporterTask::run |
( |
| ) |
|
|
overrideprotectedvirtual |
Performs the task's operation.
This method will be called when the task commences (ie via calling start() ), and subclasses should implement the operation they wish to perform in the background within this method.
A task must return a boolean value to indicate whether the task was completed successfully or terminated before completion.
Implements QgsTask.
Definition at line 661 of file qgspointcloudlayerexporter.cpp.
The documentation for this class was generated from the following files: