QGIS/python/3d/auto_generated/lights/qgsdirectionallightsettings.sip.in

76 lines
2.3 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
2022-04-24 15:45:09 +10:00
* src/3d/lights/qgsdirectionallightsettings.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2022-04-24 15:51:05 +10:00
class QgsDirectionalLightSettings : QgsLightSource
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
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
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 *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/