16#ifndef QGSMATERIALREGISTRY_H
17#define QGSMATERIALREGISTRY_H
60 QString
type()
const {
return mType; }
70 QIcon
icon()
const {
return mIcon; }
135 , mCreateFunc( pfCreate )
136 , mSupportsTechniqueFunc( pfSupportsTechnique )
137 , mWidgetFunc( pfWidget )
214 QMap<QString, QgsMaterialSettingsAbstractMetadata *> mMetadata;
216 QStringList mMaterialsOrder;
Abstract base class for material settings.
QgsMaterialRegistry(const QgsMaterialRegistry &rh)=delete
bool addMaterialSettingsType(QgsMaterialSettingsAbstractMetadata *metadata)
Registers a new material settings type. Takes ownership of the metadata instance.
QgsMaterialSettingsAbstractMetadata * materialSettingsMetadata(const QString &type) const
Returns metadata for specified material settings type. Returns nullptr if not found.
QgsAbstractMaterialSettings * createMaterialSettings(const QString &type) const
Creates a new instance of the material settings of the specified type.
QStringList materialSettingsTypes() const
Returns a list of all available material settings types.
QgsMaterialRegistry & operator=(const QgsMaterialRegistry &rh)=delete
A container for the context for various read/write operations on objects.
QgsMaterialSettingsRenderingTechnique
Material rendering techniques.
QgsMaterialSettingsWidget *(* QgsMaterialSettingsWidgetFunc)()
Material settings widget creation function.
bool(* QgsMaterialSettingsSupportsTechniqueFunc)(QgsMaterialSettingsRenderingTechnique)
Material settings supports technique function.
QgsAbstractMaterialSettings *(* QgsMaterialSettingsCreateFunc)()
Material settings creation function.