QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsPointCloudRendererRegistry Class Reference

Registry of 2D renderers for point clouds. More...

#include <qgspointcloudrendererregistry.h>

Public Member Functions

 QgsPointCloudRendererRegistry ()
 QgsPointCloudRendererRegistry (const QgsPointCloudRendererRegistry &rh)=delete
 ~QgsPointCloudRendererRegistry ()
bool addRenderer (QgsPointCloudRendererAbstractMetadata *metadata)
 Adds a renderer to the registry.
QgsPointCloudRendererRegistryoperator= (const QgsPointCloudRendererRegistry &rh)=delete
bool removeRenderer (const QString &rendererName)
 Removes a renderer from registry.
QgsPointCloudRendererAbstractMetadatarendererMetadata (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 QgsPointCloudRendererdefaultRenderer (const QgsPointCloudLayer *layer)
 Returns a new default point cloud renderer for a specified layer.

Detailed Description

Registry of 2D renderers for point clouds.

QgsPointCloudRendererRegistry is not usually directly created, but rather accessed through QgsApplication::pointCloudRendererRegistry().

Since
QGIS 3.18

Definition at line 185 of file qgspointcloudrendererregistry.h.

Constructor & Destructor Documentation

◆ QgsPointCloudRendererRegistry() [1/2]

QgsPointCloudRendererRegistry::QgsPointCloudRendererRegistry ( )

Definition at line 28 of file qgspointcloudrendererregistry.cpp.

◆ ~QgsPointCloudRendererRegistry()

QgsPointCloudRendererRegistry::~QgsPointCloudRendererRegistry ( )

Definition at line 45 of file qgspointcloudrendererregistry.cpp.

◆ QgsPointCloudRendererRegistry() [2/2]

QgsPointCloudRendererRegistry::QgsPointCloudRendererRegistry ( const QgsPointCloudRendererRegistry & rh)
delete

Member Function Documentation

◆ addRenderer()

bool QgsPointCloudRendererRegistry::addRenderer ( QgsPointCloudRendererAbstractMetadata * metadata)

Adds a renderer to the registry.

Takes ownership of the metadata object.

Parameters
metadatarenderer metadata
Returns
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 50 of file qgspointcloudrendererregistry.cpp.

◆ classificationAttributeCategories()

QgsPointCloudCategoryList QgsPointCloudRendererRegistry::classificationAttributeCategories ( const QgsPointCloudLayer * layer)
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 200 of file qgspointcloudrendererregistry.cpp.

◆ defaultRenderer()

QgsPointCloudRenderer * QgsPointCloudRendererRegistry::defaultRenderer ( const QgsPointCloudLayer * layer)
static

Returns a new default point cloud renderer for a specified layer.

Caller takes ownership of the returned renderer.

Definition at line 88 of file qgspointcloudrendererregistry.cpp.

◆ operator=()

QgsPointCloudRendererRegistry & QgsPointCloudRendererRegistry::operator= ( const QgsPointCloudRendererRegistry & rh)
delete

◆ removeRenderer()

bool QgsPointCloudRendererRegistry::removeRenderer ( const QString & rendererName)

Removes a renderer from registry.

Parameters
rendererNamename of renderer to remove from registry
Returns
true if renderer was successfully removed, or false if matching renderer could not be found

Definition at line 60 of file qgspointcloudrendererregistry.cpp.

◆ rendererMetadata()

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 71 of file qgspointcloudrendererregistry.cpp.

◆ renderersList()

QStringList QgsPointCloudRendererRegistry::renderersList ( ) const

Returns a list of available renderers.

Definition at line 76 of file qgspointcloudrendererregistry.cpp.


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