2020-06-07 00:24:46 +01:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/3d/qgsdirectionallightsettings.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsDirectionalLightSettings
|
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2020-06-07 00:24:46 +01:00
|
|
|
Definition of a directional light in a 3D map scene
|
|
|
|
|
|
|
|
.. versionadded:: 3.16
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsdirectionallightsettings.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsDirectionalLightSettings();
|
|
|
|
%Docstring
|
|
|
|
Construct a directional light with default values
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsVector3D direction() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the direction of the light in degrees
|
|
|
|
%End
|
|
|
|
void setDirection( const QgsVector3D &direction );
|
|
|
|
%Docstring
|
|
|
|
Sets the direction of the light in degrees
|
|
|
|
%End
|
|
|
|
|
|
|
|
QColor color() const;
|
|
|
|
%Docstring
|
|
|
|
Returns color of the light
|
|
|
|
%End
|
|
|
|
void setColor( const QColor &color );
|
|
|
|
%Docstring
|
|
|
|
Sets color of the light
|
|
|
|
%End
|
|
|
|
|
|
|
|
float intensity() const;
|
|
|
|
%Docstring
|
|
|
|
Returns intensity of the light
|
|
|
|
%End
|
|
|
|
void setIntensity( float intensity );
|
|
|
|
%Docstring
|
|
|
|
Sets intensity of the light
|
|
|
|
%End
|
|
|
|
|
|
|
|
QDomElement writeXml( QDomDocument &doc ) const;
|
|
|
|
%Docstring
|
|
|
|
Writes configuration to a new DOM element and returns it
|
|
|
|
%End
|
|
|
|
void readXml( const QDomElement &elem );
|
|
|
|
%Docstring
|
2020-06-30 12:07:21 +10:00
|
|
|
Reads configuration from a DOM element previously written using :py:func:`~QgsDirectionalLightSettings.writeXml`
|
2020-06-07 00:24:46 +01:00
|
|
|
%End
|
|
|
|
|
|
|
|
bool operator==( const QgsDirectionalLightSettings &other );
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/3d/qgsdirectionallightsettings.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|