QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
Registry of available 3d material settings classes. More...
#include <qgsmaterialregistry.h>
Public Member Functions | |
QgsMaterialRegistry () | |
QgsMaterialRegistry (const QgsMaterialRegistry &rh)=delete | |
QgsMaterialRegistry cannot be copied. More... | |
~QgsMaterialRegistry () | |
bool | addMaterialSettingsType (QgsMaterialSettingsAbstractMetadata *metadata) |
Registers a new material settings type. Takes ownership of the metadata instance. More... | |
QgsAbstractMaterialSettings * | createMaterialSettings (const QString &type) const |
Creates a new instance of the material settings of the specified type. More... | |
QgsMaterialSettingsAbstractMetadata * | materialSettingsMetadata (const QString &type) const |
Returns metadata for specified material settings type. Returns nullptr if not found. More... | |
QStringList | materialSettingsTypes () const |
Returns a list of all available material settings types. More... | |
QgsMaterialRegistry & | operator= (const QgsMaterialRegistry &rh)=delete |
QgsMaterialRegistry cannot be copied. More... | |
Registry of available 3d material settings classes.
QgsMaterialRegistry is not usually directly created, but rather accessed through Qgs3D::materialRegistry().
Definition at line 185 of file qgsmaterialregistry.h.
QgsMaterialRegistry::QgsMaterialRegistry | ( | ) |
Definition at line 19 of file qgsmaterialregistry.cpp.
QgsMaterialRegistry::~QgsMaterialRegistry | ( | ) |
Definition at line 23 of file qgsmaterialregistry.cpp.
|
delete |
QgsMaterialRegistry cannot be copied.
bool QgsMaterialRegistry::addMaterialSettingsType | ( | QgsMaterialSettingsAbstractMetadata * | metadata | ) |
Registers a new material settings type. Takes ownership of the metadata instance.
Definition at line 28 of file qgsmaterialregistry.cpp.
QgsAbstractMaterialSettings * QgsMaterialRegistry::createMaterialSettings | ( | const QString & | type | ) | const |
Creates a new instance of the material settings of the specified type.
The caller takes ownership of the returned object.
Returns nullptr
if the specified type is not found in the registry.
Definition at line 38 of file qgsmaterialregistry.cpp.
QgsMaterialSettingsAbstractMetadata * QgsMaterialRegistry::materialSettingsMetadata | ( | const QString & | type | ) | const |
Returns metadata for specified material settings type. Returns nullptr
if not found.
Definition at line 46 of file qgsmaterialregistry.cpp.
QStringList QgsMaterialRegistry::materialSettingsTypes | ( | ) | const |
Returns a list of all available material settings types.
Definition at line 51 of file qgsmaterialregistry.cpp.
|
delete |
QgsMaterialRegistry cannot be copied.