2020-06-07 00:24:46 +01:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2022-04-24 15:45:09 +10:00
|
|
|
* src/3d/lights/qgsdirectionallightsettings.h *
|
2020-06-07 00:24:46 +01:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-24 15:51:05 +10:00
|
|
|
class QgsDirectionalLightSettings : QgsLightSource
|
2020-06-07 00:24:46 +01:00
|
|
|
{
|
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
|
|
|
|
|
2022-04-25 07:39:37 +10:00
|
|
|
virtual Qgis::LightSourceType type() const;
|
|
|
|
|
|
|
|
virtual QgsDirectionalLightSettings *clone() const /Factory/;
|
|
|
|
|
|
|
|
virtual QDomElement writeXml( QDomDocument &doc, const QgsReadWriteContext &context = QgsReadWriteContext() ) const;
|
|
|
|
|
|
|
|
virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context = QgsReadWriteContext() );
|
|
|
|
|
2022-04-24 16:12:27 +10:00
|
|
|
|
2020-06-07 00:24:46 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
bool operator==( const QgsDirectionalLightSettings &other );
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2022-04-24 15:45:09 +10:00
|
|
|
* src/3d/lights/qgsdirectionallightsettings.h *
|
2020-06-07 00:24:46 +01:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|