QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Registry of 2D renderers for point clouds. More...
#include <qgspointcloudrendererregistry.h>
Public Member Functions | |
QgsPointCloudRendererRegistry () | |
QgsPointCloudRendererRegistry (const QgsPointCloudRendererRegistry &rh)=delete | |
QgsPointCloudRendererRegistry cannot be copied. | |
~QgsPointCloudRendererRegistry () | |
bool | addRenderer (QgsPointCloudRendererAbstractMetadata *metadata) |
Adds a renderer to the registry. | |
QgsPointCloudRendererRegistry & | operator= (const QgsPointCloudRendererRegistry &rh)=delete |
QgsPointCloudRendererRegistry cannot be copied. | |
bool | removeRenderer (const QString &rendererName) |
Removes a renderer from registry. | |
QgsPointCloudRendererAbstractMetadata * | rendererMetadata (const QString &rendererName) |
Returns the metadata for a specified renderer. | |
QStringList | renderersList () const |
Returns a list of available renderers. | |
Static Public Member Functions | |
static QgsPointCloudCategoryList | classificationAttributeCategories (const QgsPointCloudLayer *layer) |
Returns a list of categories using the available Classification classes of a specified layer, along with default colors and translated names for the 19 classes (0-18) of point data record formats 6-10. | |
static QgsPointCloudRenderer * | defaultRenderer (const QgsPointCloudLayer *layer) |
Returns a new default point cloud renderer for a specified layer. | |
Registry of 2D renderers for point clouds.
QgsPointCloudRendererRegistry is not usually directly created, but rather accessed through QgsApplication::pointCloudRendererRegistry().
Definition at line 184 of file qgspointcloudrendererregistry.h.
QgsPointCloudRendererRegistry::QgsPointCloudRendererRegistry | ( | ) |
Definition at line 27 of file qgspointcloudrendererregistry.cpp.
QgsPointCloudRendererRegistry::~QgsPointCloudRendererRegistry | ( | ) |
Definition at line 44 of file qgspointcloudrendererregistry.cpp.
|
delete |
QgsPointCloudRendererRegistry cannot be copied.
bool QgsPointCloudRendererRegistry::addRenderer | ( | QgsPointCloudRendererAbstractMetadata * | metadata | ) |
Adds a renderer to the registry.
Takes ownership of the metadata object.
metadata | renderer metadata |
true
if renderer was added successfully, or false
if renderer could not be added (e.g., a renderer with a duplicate name already exists) Definition at line 49 of file qgspointcloudrendererregistry.cpp.
|
static |
Returns a list of categories using the available Classification classes of a specified layer, along with default colors and translated names for the 19 classes (0-18) of point data record formats 6-10.
Definition at line 199 of file qgspointcloudrendererregistry.cpp.
|
static |
Returns a new default point cloud renderer for a specified layer.
Caller takes ownership of the returned renderer.
Definition at line 87 of file qgspointcloudrendererregistry.cpp.
|
delete |
QgsPointCloudRendererRegistry cannot be copied.
bool QgsPointCloudRendererRegistry::removeRenderer | ( | const QString & | rendererName | ) |
Removes a renderer from registry.
rendererName | name of renderer to remove from registry |
true
if renderer was successfully removed, or false
if matching renderer could not be found Definition at line 59 of file qgspointcloudrendererregistry.cpp.
QgsPointCloudRendererAbstractMetadata * QgsPointCloudRendererRegistry::rendererMetadata | ( | const QString & | rendererName | ) |
Returns the metadata for a specified renderer.
Returns nullptr
if a matching renderer was not found in the registry.
Definition at line 70 of file qgspointcloudrendererregistry.cpp.
QStringList QgsPointCloudRendererRegistry::renderersList | ( | ) | const |
Returns a list of available renderers.
Definition at line 75 of file qgspointcloudrendererregistry.cpp.