16#ifndef QGSUNLITMATERIALSETTINGS_H
17#define QGSUNLITMATERIALSETTINGS_H
43 QString
type()
const override;
64 QColor
color()
const {
return mColor; }
83 QColor mColor { QColor::fromRgbF( 0.8f, 0.4f, 0.4f, 1.0f ) };
MaterialRenderingTechnique
Material rendering techniques.
Abstract base class for material settings.
virtual void writeXml(QDomElement &element, const QgsReadWriteContext &) const
Writes settings to a DOM element.
virtual void readXml(const QDomElement &element, const QgsReadWriteContext &)
Reads settings from a DOM element.
Property
Data definable properties.
virtual QColor averageColor() const =0
Returns an approximate color representing the blended material color.
virtual QString type() const =0
Returns the unique type name for the material.
virtual void setColorsFromBase(const QColor &baseColor)=0
Decomposes a base color into the material's color components, and sets the material's colors accordin...
QgsPropertyCollection dataDefinedProperties() const
Returns the symbol material property collection, used for data defined overrides.
Base class for all materials used within QGIS 3D views.
A container for the context for various read/write operations on objects.
bool operator==(const QgsUnlitMaterialSettings &other) const
QgsUnlitMaterialSettings()=default
QColor color() const
Returns the material color.
bool equals(const QgsAbstractMaterialSettings *other) const override
Returns true if this settings exactly matches an other settings.
void setColor(const QColor &color)
Sets the material's color.
QSet< QgsAbstractMaterialSettings::Property > supportedProperties() const override
Returns the set of data-defined properties supported by this material.
QgsUnlitMaterialSettings * clone() const override
Clones the material settings.
static QgsAbstractMaterialSettings * create()
Returns a new instance of QgsUnlitMaterialSettings.
static bool supportsTechnique(Qgis::MaterialRenderingTechnique technique)
Returns true if the specified technique is supported by the material.