16#ifndef QGSMETALROUGHMATERIALSETTINGS_H 
   17#define QGSMETALROUGHMATERIALSETTINGS_H 
   40    QString 
type() 
const override;
 
   60    QColor baseColor()
 const { 
return mBaseColor; }
 
  114    QColor mBaseColor { QColor::fromRgbF( 0.5f, 0.5f, 0.5f, 1.0f ) };
 
  115    double mMetalness = 0.0;
 
  116    double mRoughness = 0.0;
 
 
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 void addParametersToEffect(Qt3DRender::QEffect *effect, const QgsMaterialContext &materialContext) const =0
Adds parameters from the material to a destination effect.
 
virtual QString type() const =0
Returns the unique type name for the material.
 
virtual QgsMaterial * toMaterial(QgsMaterialSettingsRenderingTechnique technique, const QgsMaterialContext &context) const =0
Creates a new QgsMaterial object representing the material settings.
 
QgsPropertyCollection dataDefinedProperties() const
Returns the symbol material property collection, used for data defined overrides.
 
The class is used as a container of context for various read/write operations on other objects.
 
QgsMaterialSettingsRenderingTechnique
Material rendering techniques 3.
 
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference)