17#ifndef QGSSIMPLELINEMATERIALSETTINGS_H 
   18#define QGSSIMPLELINEMATERIALSETTINGS_H 
   45    QString 
type() 
const override;
 
   64    QColor ambient()
 const { 
return mAmbient; }
 
   71    void setAmbient( 
const QColor &ambient ) { mAmbient = ambient; }
 
   84      return mAmbient == other.mAmbient;
 
   88    QColor mAmbient{ QColor::fromRgbF( 0.1f, 0.1f, 0.1f, 1.0f ) };
 
virtual void writeXml(QDomElement &element, const QgsReadWriteContext &) const
Writes settings to a DOM element.
 
virtual QMap< QString, QString > toExportParameters() const =0
Returns the parameters to be exported to .mtl file.
 
virtual void readXml(const QDomElement &element, const QgsReadWriteContext &)
Reads settings from a DOM element.
 
virtual Qt3DRender::QMaterial * toMaterial(QgsMaterialSettingsRenderingTechnique technique, const QgsMaterialContext &context) const =0
Creates a new QMaterial object representing the material settings.
 
virtual QString type() const =0
Returns the unique type name for the material.
 
virtual void addParametersToEffect(Qt3DRender::QEffect *effect) const =0
Adds parameters from the material to a destination effect.
 
The class is used as a container of context for various read/write operations on other objects.
 
bool operator==(const QgsSimpleLineMaterialSettings &other) const
 
void setAmbient(const QColor &ambient)
Sets the ambient color component.
 
QgsSimpleLineMaterialSettings()=default
Constructor for QgsSimpleLineMaterialSettings.
 
QgsMaterialSettingsRenderingTechnique
Material rendering techniques 3.