QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
3 Abstract base class for material settings. More...
#include <qgsabstractmaterialsettings.h>
Public Member Functions | |
virtual | ~QgsAbstractMaterialSettings ()=default |
virtual void | addParametersToEffect (Qt3DRender::QEffect *effect) const =0 |
Adds parameters from the material to a destination effect. More... | |
virtual QgsAbstractMaterialSettings * | clone () const =0 |
Clones the material settings. More... | |
virtual void | readXml (const QDomElement &element, const QgsReadWriteContext &context)=0 |
Reads settings from a DOM element. More... | |
virtual QMap< QString, QString > | toExportParameters () const =0 |
Returns the parameters to be exported to .mtl file. More... | |
virtual Qt3DRender::QMaterial * | toMaterial (QgsMaterialSettingsRenderingTechnique technique, const QgsMaterialContext &context) const =0 |
Creates a new QMaterial object representing the material settings. More... | |
virtual QString | type () const =0 |
Returns the unique type name for the material. More... | |
virtual void | writeXml (QDomElement &element, const QgsReadWriteContext &context) const =0 |
Writes settings to a DOM element. More... | |
3 Abstract base class for material settings.
Definition at line 104 of file qgsabstractmaterialsettings.h.
|
virtualdefault |
|
pure virtual |
Adds parameters from the material to a destination effect.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.
|
pure virtual |
Clones the material settings.
Caller takes ownership of the returned object.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.
|
pure virtual |
Reads settings from a DOM element.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.
|
pure virtual |
Returns the parameters to be exported to .mtl file.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.
|
pure virtual |
Creates a new QMaterial object representing the material settings.
The technique argument specifies the rendering technique which will be used with the returned material.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.
|
pure virtual |
Returns the unique type name for the material.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.
|
pure virtual |
Writes settings to a DOM element.
Implemented in QgsSimpleLineMaterialSettings, QgsPhongTexturedMaterialSettings, QgsPhongMaterialSettings, and QgsGoochMaterialSettings.