QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
virtual | ~QgsMaterialSettingsAbstractMetadata ()=default |
virtual QgsAbstractMaterialSettings * | create ()=0 |
Creates a new instance of this material settings type. | |
virtual QgsMaterialSettingsWidget * | createWidget () |
Create a widget for configuring a material of this type. | |
QIcon | icon () const |
Returns an icon representing the material type, if available. | |
virtual bool | supportsTechnique (QgsMaterialSettingsRenderingTechnique technique) const =0 |
Returns true if the material type supports the specified rendering technique. | |
QString | type () const |
Returns the unique material type string. | |
QString | visibleName () const |
Returns the material's visible (translated) name. | |
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.