mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
80 lines
2.6 KiB
Plaintext
80 lines
2.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmaplayertemporalproperties.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMapLayerTemporalProperties : QgsTemporalProperty
|
|
{
|
|
%Docstring
|
|
Base class for storage of map layer temporal properties.
|
|
|
|
QgsMapLayerTemporalProperties exposes user-configurable settings for controlling
|
|
how an individual QgsMapLayer behaves in a temporal context, e.g. while animating a map object.
|
|
|
|
.. versionadded:: 3.14
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmaplayertemporalproperties.h"
|
|
%End
|
|
public:
|
|
|
|
QgsMapLayerTemporalProperties( QObject *parent /TransferThis/, bool enabled = false );
|
|
%Docstring
|
|
Constructor for QgsMapLayerTemporalProperties, with the specified ``parent`` object.
|
|
|
|
The ``enabled`` argument specifies whether the temporal properties are initially enabled or not (see isActive()).
|
|
%End
|
|
|
|
virtual QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ) = 0;
|
|
%Docstring
|
|
Writes the properties to a DOM ``element``, to be used later with readXml().
|
|
|
|
.. seealso:: :py:func:`readXml`
|
|
%End
|
|
|
|
virtual bool readXml( const QDomElement &element, const QgsReadWriteContext &context ) = 0;
|
|
%Docstring
|
|
Reads temporal properties from a DOM ``element`` previously written by writeXml().
|
|
|
|
.. seealso:: :py:func:`writeXml`
|
|
%End
|
|
|
|
enum TemporalSource
|
|
{
|
|
Layer,
|
|
Project
|
|
};
|
|
|
|
TemporalSource temporalSource() const;
|
|
%Docstring
|
|
Returns the temporal properties temporal range source, can be layer or project.
|
|
|
|
.. seealso:: :py:func:`setTemporalSource`
|
|
%End
|
|
|
|
void setTemporalSource( TemporalSource source );
|
|
%Docstring
|
|
Sets the temporal properties temporal range ``source``.
|
|
|
|
.. seealso:: :py:func:`temporalSource`
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmaplayertemporalproperties.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|