16#ifndef QGSMATERIALREGISTRY_H
17#define QGSMATERIALREGISTRY_H
65 QString
type()
const {
return mType; }
75 QIcon
icon()
const {
return mIcon; }
110 QString mVisibleName;
150 const QIcon &
icon = QIcon()
153 , mCreateFunc( pfCreate )
154 , mSupportsTechniqueFunc( pfSupportsTechnique )
155 , mWidgetFunc( pfWidget )
253 QMap<QString, QgsMaterialSettingsAbstractMetadata *> mMetadata;
255 QStringList mMaterialsOrder;
MaterialRenderingTechnique
Material rendering techniques.
Abstract base class for material 3D handlers.
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.
bool populate()
Populates the registry with standard material types.
std::unique_ptr< 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.
QgsMaterialSettingsWidget *(* QgsMaterialSettingsWidgetFunc)()
Material settings widget creation function.
bool(* QgsMaterialSettingsSupportsTechniqueFunc)(Qgis::MaterialRenderingTechnique)
Material settings supports technique function.
QgsAbstractMaterialSettings *(* QgsMaterialSettingsCreateFunc)()
Material settings creation function.