QGIS API Documentation 3.41.0-Master (d5b93354e9c)
|
Registry of 2D renderers for tiled scenes. More...
#include <qgstiledscenerendererregistry.h>
Public Member Functions | |
QgsTiledSceneRendererRegistry () | |
QgsTiledSceneRendererRegistry (const QgsTiledSceneRendererRegistry &rh)=delete | |
~QgsTiledSceneRendererRegistry () | |
bool | addRenderer (QgsTiledSceneRendererAbstractMetadata *metadata) |
Adds a renderer to the registry. | |
QgsTiledSceneRendererRegistry & | operator= (const QgsTiledSceneRendererRegistry &rh)=delete |
bool | removeRenderer (const QString &rendererName) |
Removes a renderer from registry. | |
QgsTiledSceneRendererAbstractMetadata * | 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 QgsTiledSceneRenderer * | defaultRenderer (const QgsTiledSceneLayer *layer) |
Returns a new default tiled scene renderer for a specified layer. | |
Registry of 2D renderers for tiled scenes.
QgsTiledSceneRendererRegistry is not usually directly created, but rather accessed through QgsApplication::tiledSceneRendererRegistry().
Definition at line 181 of file qgstiledscenerendererregistry.h.
QgsTiledSceneRendererRegistry::QgsTiledSceneRendererRegistry | ( | ) |
Definition at line 22 of file qgstiledscenerendererregistry.cpp.
QgsTiledSceneRendererRegistry::~QgsTiledSceneRendererRegistry | ( | ) |
Definition at line 33 of file qgstiledscenerendererregistry.cpp.
|
delete |
bool QgsTiledSceneRendererRegistry::addRenderer | ( | QgsTiledSceneRendererAbstractMetadata * | 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 38 of file qgstiledscenerendererregistry.cpp.
|
static |
Returns a new default tiled scene renderer for a specified layer.
Caller takes ownership of the returned renderer.
Definition at line 76 of file qgstiledscenerendererregistry.cpp.
|
delete |
bool QgsTiledSceneRendererRegistry::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 48 of file qgstiledscenerendererregistry.cpp.
QgsTiledSceneRendererAbstractMetadata * QgsTiledSceneRendererRegistry::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 59 of file qgstiledscenerendererregistry.cpp.
QStringList QgsTiledSceneRendererRegistry::renderersList | ( | ) | const |
Returns a list of available renderers.
Definition at line 64 of file qgstiledscenerendererregistry.cpp.