Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates on map layers temporal properties classes
- Loading branch information
Showing
22 changed files
with
337 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
python/core/auto_generated/qgsmaplayertemporalproperties.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/************************************************************************ | ||
* 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 | ||
Class for handling map layer temporal properties. | ||
|
||
Subclasses will provide full implementation. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmaplayertemporalproperties.h" | ||
%End | ||
public: | ||
|
||
QgsMapLayerTemporalProperties( bool enabled = false ); | ||
%Docstring | ||
Constructor for QgsMapLayerTemporalProperties. | ||
%End | ||
|
||
virtual ~QgsMapLayerTemporalProperties(); | ||
|
||
virtual QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ) = 0; | ||
%Docstring | ||
Writes map layer temporal 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 | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsmaplayertemporalproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgstemporalproperty.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsTemporalProperty | ||
{ | ||
%Docstring | ||
Base class for temporal property. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgstemporalproperty.h" | ||
%End | ||
public: | ||
|
||
QgsTemporalProperty( bool enabled = false ); | ||
%Docstring | ||
Constructor for QgsTemporalProperty. | ||
%End | ||
|
||
virtual ~QgsTemporalProperty(); | ||
|
||
void setIsActive( bool enabled ); | ||
%Docstring | ||
Sets temporal property status. | ||
|
||
.. seealso:: :py:func:`isActive` | ||
%End | ||
|
||
bool isActive() const; | ||
%Docstring | ||
Returns true temporal property status. | ||
|
||
.. seealso:: :py:func:`setIsActive` | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgstemporalproperty.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
python/core/auto_generated/raster/qgsrasterlayertemporalproperties.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/raster/qgsrasterlayertemporalproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsRasterLayerTemporalProperties : QgsMapLayerTemporalProperties | ||
{ | ||
%Docstring | ||
Implementation of map layer temporal properties for raster layers. | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsrasterlayertemporalproperties.h" | ||
%End | ||
public: | ||
|
||
QgsRasterLayerTemporalProperties( bool enabled = false ); | ||
%Docstring | ||
Constructor for QgsRasterLayerTemporalProperties. | ||
%End | ||
|
||
virtual ~QgsRasterLayerTemporalProperties(); | ||
|
||
enum TemporalMode | ||
{ | ||
ModeFixedTemporalRange, | ||
ModeTemporalRangeFromDataProvider, | ||
ModeTemporalRangesList | ||
}; | ||
|
||
TemporalMode mode() const; | ||
%Docstring | ||
Return the temporal properties mode | ||
|
||
.. seealso:: :py:func:`setMode` | ||
%End | ||
|
||
void setMode( TemporalMode mode ); | ||
%Docstring | ||
Set the temporal properties mode | ||
|
||
.. seealso:: :py:func:`mode` | ||
%End | ||
|
||
void setFixedTemporalRange( const QgsDateTimeRange &range ); | ||
%Docstring | ||
Sets the temporal ``range`` to apply to the whole layer. All bands from | ||
the raster layer will be rendered whenever the current datetime range of | ||
a render context intersects the specified ``range``. | ||
|
||
For the case of WMS-T layers, new layers with the current datetime range | ||
of the render context will be fetched. | ||
|
||
.. warning:: | ||
|
||
This setting is only effective when mode() is | ||
QgsRasterLayerTemporalProperties.ModeFixedTemporalRange | ||
|
||
.. seealso:: :py:func:`fixedTemporalRange` | ||
%End | ||
|
||
const QgsDateTimeRange &fixedTemporalRange() const; | ||
%Docstring | ||
Return fixed temporal range for these properties | ||
|
||
.. warning:: | ||
|
||
To be used only when mode() is | ||
QgsRasterLayerTemporalProperties.ModeFixedTemporalRange | ||
|
||
.. seealso:: :py:func:`setFixedTemporalRange` | ||
%End | ||
|
||
void setWmstRelatedSettings( const QString &dimension ); | ||
%Docstring | ||
Set this raster layer properties with WMS-T temporal settings. | ||
|
||
.. warning:: | ||
|
||
This is to be used to support WMS-T layers only. Applicable when | ||
TemporalMode is QgsRasterLayerTemporalProperties.ModeFixedTemporalRange or | ||
QgsRasterLayerTemporalProperties.ModeTemporalRangesList | ||
%End | ||
|
||
virtual QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ); | ||
|
||
|
||
virtual bool readXml( const QDomElement &element, const QgsReadWriteContext &context ); | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/raster/qgsrasterlayertemporalproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.