QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Stores metadata about one 3D material settings class. More...
#include <qgsmaterialregistry.h>
Public Member Functions | |
QgsMaterialSettingsAbstractMetadata (const QString &type, const QString &visibleName, const QIcon &icon=QIcon()) | |
Constructor for QgsMaterialSettingsAbstractMetadata, with the specified type and visibleName. More... | |
virtual | ~QgsMaterialSettingsAbstractMetadata ()=default |
virtual QgsAbstractMaterialSettings * | create ()=0 |
Creates a new instance of this material settings type. More... | |
virtual QgsMaterialSettingsWidget * | createWidget () |
Create a widget for configuring a material of this type. More... | |
QIcon | icon () const |
Returns an icon representing the material type, if available. More... | |
virtual bool | supportsTechnique (QgsMaterialSettingsRenderingTechnique technique) const =0 |
Returns true if the material type supports the specified rendering technique. More... | |
QString | type () const |
Returns the unique material type string. More... | |
QString | visibleName () const |
Returns the material's visible (translated) name. More... | |
Stores metadata about one 3D material settings class.
Definition at line 40 of file qgsmaterialregistry.h.
|
inline |
Constructor for QgsMaterialSettingsAbstractMetadata, with the specified type and visibleName.
An optional icon can be specified to represent the material type.
Definition at line 49 of file qgsmaterialregistry.h.
|
virtualdefault |
|
pure virtual |
Creates a new instance of this material settings type.
Caller takes ownership of the returned object.
Implemented in QgsMaterialSettingsMetadata.
|
inlinevirtual |
Create a widget for configuring a material of this type.
Can return nullptr
if there's no GUI.
Reimplemented in QgsMaterialSettingsMetadata.
Definition at line 93 of file qgsmaterialregistry.h.
|
inline |
Returns an icon representing the material type, if available.
Definition at line 70 of file qgsmaterialregistry.h.
|
pure virtual |
Returns true
if the material type supports the specified rendering technique.
Implemented in QgsMaterialSettingsMetadata.
|
inline |
Returns the unique material type string.
Definition at line 60 of file qgsmaterialregistry.h.
|
inline |
Returns the material's visible (translated) name.
Definition at line 65 of file qgsmaterialregistry.h.