QGIS API Documentation 3.41.0-Master (d5b93354e9c)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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 184 of file qgspointcloudrendererregistry.h.

Constructor & Destructor Documentation

◆ QgsPointCloudRendererRegistry() [1/2]

QgsPointCloudRendererRegistry::QgsPointCloudRendererRegistry ( )

Definition at line 27 of file qgspointcloudrendererregistry.cpp.

◆ ~QgsPointCloudRendererRegistry()

QgsPointCloudRendererRegistry::~QgsPointCloudRendererRegistry ( )

Definition at line 44 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 49 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 199 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 87 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 59 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 70 of file qgspointcloudrendererregistry.cpp.

◆ renderersList()

QStringList QgsPointCloudRendererRegistry::renderersList ( ) const

Returns a list of available renderers.

Definition at line 75 of file qgspointcloudrendererregistry.cpp.


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