|
QGIS API Documentation 4.1.0-Master (3b8ef1f72a3)
|
A PBR metal rough shading material used for rendering with support for image texture maps. More...
#include <qgsmetalroughtexturedmaterialsettings.h>

Public Member Functions | |
| QgsMetalRoughTexturedMaterialSettings ()=default | |
| QString | ambientOcclusionTexturePath () const |
| Returns the path to the ambient occlusion texture map. | |
| QString | baseColorTexturePath () const |
| Returns the path to the base color texture map. | |
| QgsMetalRoughTexturedMaterialSettings * | clone () const override |
| Clones the material settings. | |
| bool | equals (const QgsAbstractMaterialSettings *other) const override |
Returns true if this settings exactly matches an other settings. | |
| QString | metalnessTexturePath () const |
| Returns the path to the metalness texture map. | |
| bool | operator== (const QgsMetalRoughTexturedMaterialSettings &other) const |
| void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
| Reads settings from a DOM element. | |
| bool | requiresTextureCoordinates () const override |
Returns true if the material requires texture coordinates to be generated during triangulation. | |
| QString | roughnessTexturePath () const |
| Returns the path to the roughness texture map. | |
| void | setAmbientOcclusionTexturePath (const QString &path) |
| Sets the path to the ambient occlusion texture map. | |
| void | setBaseColorTexturePath (const QString &path) |
| Sets the path to the base color texture map. | |
| void | setMetalnessTexturePath (const QString &path) |
| Sets the path to the metalness texture map. | |
| void | setRoughnessTexturePath (const QString &path) |
| Sets the path to the roughness texture map. | |
| void | setTextureRotation (double rotation) |
| Sets the texture rotation, in degrees. | |
| void | setTextureScale (double scale) |
| Sets the texture scale. | |
| double | textureRotation () const |
| Returns the texture rotation, in degrees. | |
| double | textureScale () const |
| Returns the texture scale. | |
| QString | type () const override |
| Returns the unique type name for the material. | |
| void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override |
| Writes settings to a DOM element. | |
| Public Member Functions inherited from QgsAbstractMaterialSettings | |
| virtual | ~QgsAbstractMaterialSettings ()=default |
| QgsPropertyCollection | dataDefinedProperties () const |
| Returns the symbol material property collection, used for data defined overrides. | |
| const QgsPropertiesDefinition & | propertyDefinitions () const |
| Returns a reference to the material properties definition, used for data defined overrides. | |
| void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the material property collection, used for data defined overrides. | |
Static Public Member Functions | |
| static QgsAbstractMaterialSettings * | create () |
| Returns a new instance of QgsMetalRoughTexturedMaterialSettings. | |
| static bool | supportsTechnique (Qgis::MaterialRenderingTechnique technique) |
Returns true if the specified technique is supported by the metal rough material. | |
Additional Inherited Members | |
| Public Types inherited from QgsAbstractMaterialSettings | |
| enum class | Property : int { Diffuse , Ambient , Warm , Cool , Specular } |
| Data definable properties. More... | |
A PBR metal rough shading material used for rendering with support for image texture maps.
Definition at line 35 of file qgsmetalroughtexturedmaterialsettings.h.
|
default |
|
inline |
Returns the path to the ambient occlusion texture map.
Definition at line 81 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Returns the path to the base color texture map.
Definition at line 60 of file qgsmetalroughtexturedmaterialsettings.h.
|
overridevirtual |
Clones the material settings.
Caller takes ownership of the returned object.
Implements QgsAbstractMaterialSettings.
Definition at line 53 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
static |
Returns a new instance of QgsMetalRoughTexturedMaterialSettings.
Definition at line 48 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
overridevirtual |
Returns true if this settings exactly matches an other settings.
Implements QgsAbstractMaterialSettings.
Definition at line 58 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
inline |
Returns the path to the metalness texture map.
Definition at line 67 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Definition at line 149 of file qgsmetalroughtexturedmaterialsettings.h.
|
overridevirtual |
Reads settings from a DOM element.
Reimplemented from QgsAbstractMaterialSettings.
Definition at line 72 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
overridevirtual |
Returns true if the material requires texture coordinates to be generated during triangulation.
Reimplemented from QgsAbstractMaterialSettings.
Definition at line 67 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
inline |
Returns the path to the roughness texture map.
Definition at line 74 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Sets the path to the ambient occlusion texture map.
Definition at line 126 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Sets the path to the base color texture map.
Definition at line 105 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Sets the path to the metalness texture map.
Definition at line 112 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Sets the path to the roughness texture map.
Definition at line 119 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Sets the texture rotation, in degrees.
Definition at line 143 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Sets the texture scale.
The texture scale changes the size of the displayed texture in the 3D scene. If the texture scale is less than 1, the texture will be stretched.
Definition at line 136 of file qgsmetalroughtexturedmaterialsettings.h.
|
static |
Returns true if the specified technique is supported by the metal rough material.
Definition at line 29 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
inline |
Returns the texture rotation, in degrees.
Definition at line 98 of file qgsmetalroughtexturedmaterialsettings.h.
|
inline |
Returns the texture scale.
The texture scale changes the size of the displayed texture in the 3D scene. If the texture scale is less than 1, the texture will be stretched.
Definition at line 91 of file qgsmetalroughtexturedmaterialsettings.h.
|
overridevirtual |
Returns the unique type name for the material.
Implements QgsAbstractMaterialSettings.
Definition at line 24 of file qgsmetalroughtexturedmaterialsettings.cpp.
|
overridevirtual |
Writes settings to a DOM element.
Reimplemented from QgsAbstractMaterialSettings.
Definition at line 84 of file qgsmetalroughtexturedmaterialsettings.cpp.