|
QGIS API Documentation 4.1.0-Master (3b8ef1f72a3)
|
Basic shading material used for rendering simple lines as solid line components. More...
#include <qgssimplelinematerialsettings.h>

Public Member Functions | |
| QgsSimpleLineMaterialSettings ()=default | |
| QColor | ambient () const |
| Returns the ambient color component. | |
| QgsSimpleLineMaterialSettings * | clone () const override |
| Clones the material settings. | |
| bool | equals (const QgsAbstractMaterialSettings *other) const override |
Returns true if this settings exactly matches an other settings. | |
| bool | operator== (const QgsSimpleLineMaterialSettings &other) const |
| void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
| Reads settings from a DOM element. | |
| void | setAmbient (const QColor &ambient) |
| Sets the ambient color component. | |
| 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. | |
| virtual bool | requiresTextureCoordinates () const |
Returns true if the material requires texture coordinates to be generated during triangulation. | |
| 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 QgsSimpleLineMaterialSettings. | |
| static bool | supportsTechnique (Qgis::MaterialRenderingTechnique technique) |
Returns true if the specified technique is supported by the material. | |
Additional Inherited Members | |
| Public Types inherited from QgsAbstractMaterialSettings | |
| enum class | Property : int { Diffuse , Ambient , Warm , Cool , Specular } |
| Data definable properties. More... | |
Basic shading material used for rendering simple lines as solid line components.
Definition at line 37 of file qgssimplelinematerialsettings.h.
|
default |
|
inline |
Returns the ambient color component.
Definition at line 62 of file qgssimplelinematerialsettings.h.
|
overridevirtual |
Clones the material settings.
Caller takes ownership of the returned object.
Implements QgsAbstractMaterialSettings.
Definition at line 54 of file qgssimplelinematerialsettings.cpp.
|
static |
Returns a new instance of QgsSimpleLineMaterialSettings.
Definition at line 49 of file qgssimplelinematerialsettings.cpp.
|
overridevirtual |
Returns true if this settings exactly matches an other settings.
Implements QgsAbstractMaterialSettings.
Definition at line 59 of file qgssimplelinematerialsettings.cpp.
|
inline |
Definition at line 75 of file qgssimplelinematerialsettings.h.
|
overridevirtual |
Reads settings from a DOM element.
Reimplemented from QgsAbstractMaterialSettings.
Definition at line 68 of file qgssimplelinematerialsettings.cpp.
|
inline |
Sets the ambient color component.
Definition at line 69 of file qgssimplelinematerialsettings.h.
|
static |
Returns true if the specified technique is supported by the material.
Definition at line 30 of file qgssimplelinematerialsettings.cpp.
|
overridevirtual |
Returns the unique type name for the material.
Implements QgsAbstractMaterialSettings.
Definition at line 25 of file qgssimplelinematerialsettings.cpp.
|
overridevirtual |
Writes settings to a DOM element.
Reimplemented from QgsAbstractMaterialSettings.
Definition at line 75 of file qgssimplelinematerialsettings.cpp.