/
qgsrasterlayertemporalproperties.sip.in
175 lines (117 loc) · 5.09 KB
/
qgsrasterlayertemporalproperties.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/************************************************************************
* 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( QObject *parent = 0, bool enabled = false );
%Docstring
Constructor for QgsRasterLayerTemporalProperties.
The ``enabled`` argument specifies whether the temporal properties are initially enabled or not (see isActive()).
%End
virtual ~QgsRasterLayerTemporalProperties();
enum TemporalMode
{
ModeFixedTemporalRange,
ModeTemporalRangeFromDataProvider,
};
TemporalMode mode() const;
%Docstring
Returns the temporal properties mode.
.. seealso:: :py:func:`setMode`
%End
void setMode( TemporalMode mode );
%Docstring
Sets the temporal properties ``mode``.
.. seealso:: :py:func:`mode`
%End
void setFixedTemporalRange( const QgsDateTimeRange &range );
%Docstring
Sets a 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, this set up will cause new WMS layer to be fetched
with which the range of the render context intersects the specified ``range``.
.. warning::
This setting is only effective when mode() is
QgsRasterLayerTemporalProperties.ModeFixedTemporalRange
.. note::
This setting is not set by user. Provider can set this, if it is coming from there.
.. seealso:: :py:func:`fixedTemporalRange`
%End
const QgsDateTimeRange &fixedTemporalRange() const;
%Docstring
Returns the fixed temporal range for the layer.
.. warning::
To be used only when mode() is
QgsRasterLayerTemporalProperties.ModeFixedTemporalRange
.. seealso:: :py:func:`setFixedTemporalRange`
%End
void setFixedReferenceTemporalRange( const QgsDateTimeRange &range );
%Docstring
Sets a fixed reference 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, this set up will cause new WMS layer to be fetched
with which the range of the render context intersects the specified ``range``.
.. warning::
This setting is only effective when mode() is
QgsRasterLayerTemporalProperties.ModeFixedTemporalRange
.. note::
This setting is not set by user. Provider can set this, if it is coming from there.
.. seealso:: :py:func:`fixedReferenceTemporalRange`
%End
const QgsDateTimeRange &fixedReferenceTemporalRange() const;
%Docstring
Returns the fixed reference temporal range for the layer.
.. warning::
To be used only when mode() is
QgsRasterLayerTemporalProperties.ModeFixedTemporalRange
.. seealso:: :py:func:`setFixedReferenceTemporalRange`
%End
void setTemporalRange( const QgsDateTimeRange &dateTimeRange );
%Docstring
Sets the current active datetime range for the temporal properties.
.. note::
This can be set by user, through raster layer properties widget.
.. seealso:: :py:func:`temporalRange`
%End
const QgsDateTimeRange &temporalRange() const;
%Docstring
Returns the current active datetime range for these temporal properties.
.. seealso:: :py:func:`setTemporalRange`
%End
void setReferenceTemporalRange( const QgsDateTimeRange &dateTimeRange );
%Docstring
Sets the current active reference datetime range for the temporal properties.
This will be used by bi-temporal data.
.. note::
This can be set by user, through raster layer properties widget.
.. seealso:: :py:func:`referenceTemporalRange`
%End
const QgsDateTimeRange &referenceTemporalRange() const;
%Docstring
Returns the current active reference datetime range for these temporal properties.
.. seealso:: :py:func:`setReferenceTemporalRange`
%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 *
************************************************************************/