mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
104 lines
3.8 KiB
Plaintext
104 lines
3.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmaplayertemporalproperties.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMapLayerTemporalProperties : QgsTemporalProperty
|
|
{
|
|
%Docstring(signature="appended")
|
|
Base class for storage of map layer temporal properties.
|
|
|
|
:py:class:`QgsMapLayerTemporalProperties` exposes user-configurable settings for controlling
|
|
how an individual :py:class:`QgsMapLayer` behaves in a temporal context, e.g. while animating a map object.
|
|
|
|
.. versionadded:: 3.14
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmaplayertemporalproperties.h"
|
|
#include "qgsrasterlayertemporalproperties.h"
|
|
#include "qgsmeshlayertemporalproperties.h"
|
|
#include "qgsvectorlayertemporalproperties.h"
|
|
%End
|
|
%ConvertToSubClassCode
|
|
if ( qobject_cast<QgsRasterLayerTemporalProperties *>( sipCpp ) )
|
|
{
|
|
sipType = sipType_QgsRasterLayerTemporalProperties;
|
|
}
|
|
else if ( qobject_cast<QgsMeshLayerTemporalProperties *>( sipCpp ) )
|
|
{
|
|
sipType = sipType_QgsMeshLayerTemporalProperties;
|
|
}
|
|
else if ( qobject_cast<QgsVectorLayerTemporalProperties *>( sipCpp ) )
|
|
{
|
|
sipType = sipType_QgsVectorLayerTemporalProperties;
|
|
}
|
|
else
|
|
{
|
|
sipType = 0;
|
|
}
|
|
%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 :py:func:`~QgsMapLayerTemporalProperties.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 :py:func:`~QgsMapLayerTemporalProperties.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 :py:func:`~QgsMapLayerTemporalProperties.writeXml`.
|
|
|
|
.. seealso:: :py:func:`writeXml`
|
|
%End
|
|
|
|
virtual bool isVisibleInTemporalRange( const QgsDateTimeRange &range ) const;
|
|
%Docstring
|
|
Returns ``True`` if the layer should be visible and rendered for the specified time ``range``.
|
|
%End
|
|
|
|
virtual void setDefaultsFromDataProviderTemporalCapabilities( const QgsDataProviderTemporalCapabilities *capabilities ) = 0;
|
|
%Docstring
|
|
Sets the layers temporal settings to appropriate defaults based on
|
|
a provider's temporal ``capabilities``.
|
|
%End
|
|
|
|
|
|
virtual QList< QgsDateTimeRange > allTemporalRanges( QgsMapLayer *layer ) const;
|
|
%Docstring
|
|
Attempts to calculate the overall list of all temporal extents which are contained in the specified ``layer``, using
|
|
the settings defined by the temporal properties object.
|
|
|
|
May return an empty list if the ranges could not be calculated.
|
|
|
|
.. versionadded:: 3.20
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmaplayertemporalproperties.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|