QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Registry of 2D renderers for point clouds. More...
#include <qgspointcloudrendererregistry.h>
Public Member Functions | |
QgsPointCloudRendererRegistry () | |
QgsPointCloudRendererRegistry (const QgsPointCloudRendererRegistry &rh)=delete | |
QgsPointCloudRendererRegistry cannot be copied. More... | |
~QgsPointCloudRendererRegistry () | |
bool | addRenderer (QgsPointCloudRendererAbstractMetadata *metadata) |
Adds a renderer to the registry. More... | |
QgsPointCloudRendererRegistry & | operator= (const QgsPointCloudRendererRegistry &rh)=delete |
QgsPointCloudRendererRegistry cannot be copied. More... | |
bool | removeRenderer (const QString &rendererName) |
Removes a renderer from registry. More... | |
QgsPointCloudRendererAbstractMetadata * | rendererMetadata (const QString &rendererName) |
Returns the metadata for a specified renderer. More... | |
QStringList | renderersList () const |
Returns a list of available renderers. More... | |
Static Public Member Functions | |
static QgsPointCloudRenderer * | defaultRenderer (const QgsPointCloudDataProvider *provider) |
Returns a new default point cloud renderer for a layer with the specified provider. More... | |
Registry of 2D renderers for point clouds.
QgsPointCloudRendererRegistry is not usually directly created, but rather accessed through QgsApplication::pointCloudRendererRegistry().
Definition at line 183 of file qgspointcloudrendererregistry.h.
QgsPointCloudRendererRegistry::QgsPointCloudRendererRegistry | ( | ) |
Definition at line 25 of file qgspointcloudrendererregistry.cpp.
QgsPointCloudRendererRegistry::~QgsPointCloudRendererRegistry | ( | ) |
Definition at line 42 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 47 of file qgspointcloudrendererregistry.cpp.
|
static |
Returns a new default point cloud renderer for a layer with the specified provider.
Caller takes ownership of the returned renderer.
Definition at line 85 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 57 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 68 of file qgspointcloudrendererregistry.cpp.
QStringList QgsPointCloudRendererRegistry::renderersList | ( | ) | const |
Returns a list of available renderers.
Definition at line 73 of file qgspointcloudrendererregistry.cpp.