QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
25 qDeleteAll( mMetadata );
30 if ( !metadata || mMetadata.contains( metadata->
type() ) )
33 mMetadata[metadata->
type()] = metadata;
39 if ( !mMetadata.contains( type ) )
42 return mMetadata[type]->create();
47 return mMetadata.value( type );
52 return mMetadata.keys();
QgsMaterialSettingsAbstractMetadata * materialSettingsMetadata(const QString &type) const
Returns metadata for specified material settings type. Returns nullptr if not found.
QStringList materialSettingsTypes() const
Returns a list of all available material settings types.
QgsAbstractMaterialSettings * createMaterialSettings(const QString &type) const
Creates a new instance of the material settings of the specified type.
3 Abstract base class for material settings.
bool addMaterialSettingsType(QgsMaterialSettingsAbstractMetadata *metadata)
Registers a new material settings type. Takes ownership of the metadata instance.