QGIS/python/3d/auto_generated/materials/qgsphongmaterialsettings.sip.in

197 lines
5.1 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/materials/qgsphongmaterialsettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsPhongMaterialSettings : QgsAbstractMaterialSettings
{
%Docstring(signature="appended")
Basic shading material used for rendering based on the Phong shading model
with three color components: ambient, diffuse and specular.
.. warning::
This is not considered stable API, and may change in future QGIS releases. It is
exposed to the Python bindings as a tech preview only.
%End
%TypeHeaderCode
#include "qgsphongmaterialsettings.h"
%End
public:
QgsPhongMaterialSettings();
virtual QString type() const;
static bool supportsTechnique( QgsMaterialSettingsRenderingTechnique technique );
%Docstring
Returns ``True`` if the specified ``technique`` is supported by the Phong material.
%End
static QgsAbstractMaterialSettings *create() /Factory/;
%Docstring
Returns a new instance of QgsPhongMaterialSettings.
%End
virtual QgsPhongMaterialSettings *clone() const /Factory/;
virtual bool equals( const QgsAbstractMaterialSettings *other ) const;
QColor ambient() const;
%Docstring
Returns ambient color component
%End
QColor diffuse() const;
%Docstring
Returns diffuse color component
%End
QColor specular() const;
%Docstring
Returns specular color component
%End
double shininess() const;
%Docstring
Returns shininess of the surface
%End
double opacity() const;
%Docstring
Returns the opacity of the surface
.. versionadded:: 3.26
%End
double ambientCoefficient() const;
%Docstring
Returns the coefficient for the ambient color contribution (ie strength factor of the ambient color).
.. seealso:: :py:func:`setAmbientCoefficient`
.. seealso:: :py:func:`diffuseCoefficient`
.. seealso:: :py:func:`specularCoefficient`
.. versionadded:: 3.36
%End
double diffuseCoefficient() const;
%Docstring
Returns the coefficient for the diffuse color contribution (ie strength factor of the diffuse color).
.. seealso:: :py:func:`setDiffuseCoefficient`
.. seealso:: :py:func:`ambientCoefficient`
.. seealso:: :py:func:`specularCoefficient`
.. versionadded:: 3.36
%End
double specularCoefficient() const;
%Docstring
Returns the coefficient for the specular color contribution (ie strength factor of the specular color).
.. seealso:: :py:func:`setSpecularCoefficient`
.. seealso:: :py:func:`diffuseCoefficient`
.. seealso:: :py:func:`ambientCoefficient`
.. versionadded:: 3.36
%End
virtual QMap<QString, QString> toExportParameters() const;
void setAmbient( const QColor &ambient );
%Docstring
Sets ambient color component
%End
void setDiffuse( const QColor &diffuse );
%Docstring
Sets diffuse color component
%End
void setSpecular( const QColor &specular );
%Docstring
Sets specular color component
%End
void setShininess( double shininess );
%Docstring
Sets shininess of the surface
%End
void setOpacity( double opacity );
%Docstring
Sets opacity of the surface
.. versionadded:: 3.26
%End
void setAmbientCoefficient( double coefficient );
%Docstring
Sets the ``coefficient`` for the ambient color contribution (ie strength factor of the ambient color).
.. seealso:: :py:func:`ambientCoefficient`
.. seealso:: :py:func:`setDiffuseCoefficient`
.. seealso:: :py:func:`setSpecularCoefficient`
.. versionadded:: 3.36
%End
void setDiffuseCoefficient( double coefficient );
%Docstring
Sets the ``coefficient`` for the diffuse color contribution (ie strength factor of the diffuse color).
.. seealso:: :py:func:`diffuseCoefficient`
.. seealso:: :py:func:`setAmbientCoefficient`
.. seealso:: :py:func:`setSpecularCoefficient`
.. versionadded:: 3.36
%End
void setSpecularCoefficient( double coefficient );
%Docstring
Sets the ``coefficient`` for the specular color contribution (ie strength factor of the specular color).
.. seealso:: :py:func:`specularCoefficient`
.. seealso:: :py:func:`setDiffuseCoefficient`
.. seealso:: :py:func:`setAmbientCoefficient`
.. versionadded:: 3.36
%End
virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context );
virtual void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const;
bool operator==( const QgsPhongMaterialSettings &other ) const;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/materials/qgsphongmaterialsettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/