QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsrasterdataprovidertemporalcapabilities.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrasterdataprovidertemporalcapabilities.cpp
3  ---------------
4  begin : February 2020
5  copyright : (C) 2020 by Samweli Mwakisambwe
6  email : samweli at kartoza dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
19 
22 {
23 }
24 
25 void QgsRasterDataProviderTemporalCapabilities::setAvailableTemporalRange( const QgsDateTimeRange &dateTimeRange )
26 {
27  if ( !hasTemporalCapabilities() )
29 
30  mAvailableTemporalRange = dateTimeRange;
31 }
32 
34 {
35  return mAvailableTemporalRange;
36 }
37 
39 {
40  if ( !hasTemporalCapabilities() )
42 
43  mAvailableReferenceRange = dateTimeRange;
44 }
45 
47 {
48  return mAvailableReferenceRange;
49 }
50 
51 void QgsRasterDataProviderTemporalCapabilities::setRequestedTemporalRange( const QgsDateTimeRange &dateTimeRange )
52 {
53  mRequestedRange = dateTimeRange;
54 }
55 
57 {
58  return mRequestedRange;
59 }
60 
62 {
63  return mIntervalMatchMethod;
64 }
65 
67 {
68  if ( mIntervalMatchMethod == mode )
69  return;
70  mIntervalMatchMethod = mode;
71 }
QgsRasterDataProviderTemporalCapabilities::setAvailableReferenceTemporalRange
void setAvailableReferenceTemporalRange(const QgsDateTimeRange &range)
Sets the available reference datetime range.
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:38
QgsRasterDataProviderTemporalCapabilities::intervalHandlingMethod
IntervalHandlingMethod intervalHandlingMethod() const
Returns the desired method to use when resolving a temporal interval to matching layers or bands in t...
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:61
QgsRasterDataProviderTemporalCapabilities::setIntervalHandlingMethod
void setIntervalHandlingMethod(IntervalHandlingMethod method)
Sets the desired method to use when resolving a temporal interval to matching layers or bands in the ...
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:66
QgsRasterDataProviderTemporalCapabilities::availableTemporalRange
const QgsDateTimeRange & availableTemporalRange() const
Returns the datetime range extent from which temporal data is available from the provider.
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:33
QgsRasterDataProviderTemporalCapabilities::IntervalHandlingMethod
IntervalHandlingMethod
Method to use when resolving a temporal range to a data provider layer or band.
Definition: qgsrasterdataprovidertemporalcapabilities.h:51
qgsrasterdataprovidertemporalcapabilities.h
QgsDataProviderTemporalCapabilities
Definition: qgsdataprovidertemporalcapabilities.h:33
QgsRasterDataProviderTemporalCapabilities::setAvailableTemporalRange
void setAvailableTemporalRange(const QgsDateTimeRange &range)
Sets the datetime range extent from which temporal data is available from the provider.
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:25
QgsRasterDataProviderTemporalCapabilities::requestedTemporalRange
const QgsDateTimeRange & requestedTemporalRange() const
Returns the requested temporal range.
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:56
QgsRasterDataProviderTemporalCapabilities::QgsRasterDataProviderTemporalCapabilities
QgsRasterDataProviderTemporalCapabilities(bool enabled=false)
Constructor for QgsRasterDataProviderTemporalProperties.
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:20
QgsDataProviderTemporalCapabilities::hasTemporalCapabilities
bool hasTemporalCapabilities() const
Returns true if the provider has temporal capabilities available.
Definition: qgsdataprovidertemporalcapabilities.h:74
QgsRasterDataProviderTemporalCapabilities::availableReferenceTemporalRange
const QgsDateTimeRange & availableReferenceTemporalRange() const
Returns the available reference datetime range, which indicates the maximum extent of datetime values...
Definition: qgsrasterdataprovidertemporalcapabilities.cpp:46
QgsDataProviderTemporalCapabilities::setHasTemporalCapabilities
void setHasTemporalCapabilities(bool available)
Sets whether the provider has temporal capabilities available.
Definition: qgsdataprovidertemporalcapabilities.h:83