mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
73 lines
2.3 KiB
Plaintext
73 lines
2.3 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/lights/qgslightsource.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLightSource /Abstract/
|
|
{
|
|
%Docstring(signature="appended")
|
|
Base class for light sources in 3d scenes.
|
|
|
|
.. versionadded:: 3.26
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgslightsource.h"
|
|
%End
|
|
public:
|
|
virtual ~QgsLightSource();
|
|
|
|
virtual Qgis::LightSourceType type() const = 0;
|
|
%Docstring
|
|
Returns the light source type.
|
|
%End
|
|
|
|
virtual QgsLightSource *clone() const = 0 /Factory/;
|
|
%Docstring
|
|
Returns a copy of the light source.
|
|
%End
|
|
|
|
|
|
virtual QDomElement writeXml( QDomDocument &doc, const QgsReadWriteContext &context = QgsReadWriteContext() ) const = 0;
|
|
%Docstring
|
|
Writes the light source's configuration to a new DOM element and returns it.
|
|
|
|
.. seealso:: :py:func:`readXml`
|
|
%End
|
|
|
|
virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context = QgsReadWriteContext() ) = 0;
|
|
%Docstring
|
|
Reads configuration from a DOM element previously written using :py:func:`~QgsLightSource.writeXml`.
|
|
|
|
.. seealso:: :py:func:`writeXml`
|
|
%End
|
|
|
|
virtual void resolveReferences( const QgsProject &project );
|
|
%Docstring
|
|
After reading from XML, resolve references to any layers that have been read as layer IDs.
|
|
%End
|
|
|
|
static QgsLightSource *createFromXml( const QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
|
|
%Docstring
|
|
Creates a new light source from an XML element.
|
|
%End
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/lights/qgslightsource.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|