QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Registry of available 3D symbol classes. More...
#include <qgs3dsymbolregistry.h>
Public Member Functions | |
Qgs3DSymbolRegistry () | |
Qgs3DSymbolRegistry (const Qgs3DSymbolRegistry &rh)=delete | |
~Qgs3DSymbolRegistry () | |
bool | addSymbolType (Qgs3DSymbolAbstractMetadata *metadata) |
Registers a new symbol type. Takes ownership of the metadata instance. | |
QgsFeature3DHandler * | createHandlerForSymbol (QgsVectorLayer *layer, const QgsAbstract3DSymbol *symbol) |
Creates a feature handler for a symbol, for the specified vector layer. | |
QgsAbstract3DSymbol * | createSymbol (const QString &type) const |
Creates a new instance of a symbol of the specified type. | |
QgsAbstract3DSymbol * | defaultSymbolForGeometryType (Qgis::GeometryType type) |
Creates a new instance of the default 3D symbol for the specified geometry type. | |
Qgs3DSymbolRegistry & | operator= (const Qgs3DSymbolRegistry &rh)=delete |
Qgs3DSymbolAbstractMetadata * | symbolMetadata (const QString &type) const |
Returns metadata for specified symbol type. Returns nullptr if not found. | |
QStringList | symbolTypes () const |
Returns a list of all available symbol types. | |
Registry of available 3D symbol classes.
Qgs3DSymbolRegistry is not usually directly created, but rather accessed through QgsApplication::symbol3DRegistry().
Definition at line 183 of file qgs3dsymbolregistry.h.
Qgs3DSymbolRegistry::Qgs3DSymbolRegistry | ( | ) |
Definition at line 19 of file qgs3dsymbolregistry.cpp.
Qgs3DSymbolRegistry::~Qgs3DSymbolRegistry | ( | ) |
Definition at line 23 of file qgs3dsymbolregistry.cpp.
|
delete |
bool Qgs3DSymbolRegistry::addSymbolType | ( | Qgs3DSymbolAbstractMetadata * | metadata | ) |
Registers a new symbol type. Takes ownership of the metadata instance.
Definition at line 28 of file qgs3dsymbolregistry.cpp.
QgsFeature3DHandler * Qgs3DSymbolRegistry::createHandlerForSymbol | ( | QgsVectorLayer * | layer, |
const QgsAbstract3DSymbol * | symbol | ||
) |
Creates a feature handler for a symbol, for the specified vector layer.
Caller takes ownership of the returned handler.
Definition at line 60 of file qgs3dsymbolregistry.cpp.
QgsAbstract3DSymbol * Qgs3DSymbolRegistry::createSymbol | ( | const QString & | type | ) | const |
Creates a new instance of a symbol of the specified type.
The caller takes ownership of the returned symbol.
Returns nullptr
if the specified type is not found in the registry.
Definition at line 37 of file qgs3dsymbolregistry.cpp.
QgsAbstract3DSymbol * Qgs3DSymbolRegistry::defaultSymbolForGeometryType | ( | Qgis::GeometryType | type | ) |
Creates a new instance of the default 3D symbol for the specified geometry type.
The caller takes ownership of the returned symbol.
Definition at line 45 of file qgs3dsymbolregistry.cpp.
|
delete |
Qgs3DSymbolAbstractMetadata * Qgs3DSymbolRegistry::symbolMetadata | ( | const QString & | type | ) | const |
Returns metadata for specified symbol type. Returns nullptr
if not found.
Definition at line 71 of file qgs3dsymbolregistry.cpp.
QStringList Qgs3DSymbolRegistry::symbolTypes | ( | ) | const |
Returns a list of all available symbol types.
Definition at line 76 of file qgs3dsymbolregistry.cpp.