16#ifndef QGSABSTRACTMATERIALSETTINGS_H
17#define QGSABSTRACTMATERIALSETTINGS_H
26using namespace Qt::StringLiterals;
45 if ( sipCpp->type() ==
"gooch"_L1 )
47 sipType = sipType_QgsGoochMaterialSettings;
49 else if ( sipCpp->type() ==
"phong"_L1 )
51 sipType = sipType_QgsPhongMaterialSettings;
53 else if ( sipCpp->type() ==
"phongtextured" )
55 sipType = sipType_QgsPhongTexturedMaterialSettings;
57 else if ( sipCpp->type() ==
"simpleline" )
59 sipType = sipType_QgsSimpleLineMaterialSettings;
61 else if ( sipCpp->type() ==
"null" )
63 sipType = sipType_QgsNullMaterialSettings;
65 else if ( sipCpp->type() ==
"metalrough" )
67 sipType = sipType_QgsMetalRoughMaterialSettings;
69 else if ( sipCpp->type() ==
"metalroughtextured" )
71 sipType = sipType_QgsMetalRoughTexturedMaterialSettings;
86 virtual QString
type()
const = 0;
149 void initPropertyDefinitions()
const;
Abstract base class for material settings.
virtual void writeXml(QDomElement &element, const QgsReadWriteContext &) const
Writes settings to a DOM element.
virtual bool equals(const QgsAbstractMaterialSettings *other) const =0
Returns true if this settings exactly matches an other settings.
virtual void readXml(const QDomElement &element, const QgsReadWriteContext &)
Reads settings from a DOM element.
virtual QgsAbstractMaterialSettings * clone() const =0
Clones the material settings.
Property
Data definable properties.
virtual ~QgsAbstractMaterialSettings()=default
virtual QString type() const =0
Returns the unique type name for the material.
virtual bool requiresTextureCoordinates() const
Returns true if the material requires texture coordinates to be generated during triangulation.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.
A container for the context for various read/write operations on objects.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.