@@ -53,6 +53,13 @@ class REOSCORE_EXPORT ReosGriddedDataProvider : public ReosDataProvider
53
53
Q_DECLARE_FLAGS ( GridCapabilities, GridCapability )
54
54
Q_FLAG ( GridCapabilities )
55
55
56
+ enum class ValueType
57
+ {
58
+ Instantaneous,
59
+ CumulativeOnTimeStep,
60
+ Cumulative
61
+ };
62
+
56
63
struct FileDetails
57
64
{
58
65
QStringList availableVariables;
@@ -104,9 +111,19 @@ class REOSCORE_EXPORT ReosGriddedDataProvider : public ReosDataProvider
104
111
105
112
virtual void exportToTiff ( int index, const QString &fileName ) const {};
106
113
114
+ virtual bool write (
115
+ ReosGriddedRainfall *rainfall,
116
+ const QString &uri,
117
+ const ReosRasterExtent &destination,
118
+ const ReosTimeWindow &timeWindow ) const {return false ;}
119
+
120
+ virtual const QVector<double > qualifData ( int ) const {return QVector<double >();}
107
121
protected:
108
122
QString mDataSource ;
109
123
124
+ protected:
125
+ ValueType mSourceValueType = ValueType::CumulativeOnTimeStep;
126
+
110
127
mutable int mLastFrameIndex = -1 ;
111
128
112
129
@@ -117,27 +134,9 @@ class REOSCORE_EXPORT ReosGriddedRainfallProvider : public ReosGriddedDataProvid
117
134
{
118
135
Q_OBJECT
119
136
public:
120
- enum class ValueType
121
- {
122
- Intensity,
123
- Height,
124
- CumulativeHeight
125
- };
126
-
127
137
~ReosGriddedRainfallProvider ();
128
-
129
138
virtual ReosGriddedRainfallProvider *clone () const = 0;
130
139
131
- virtual bool write (
132
- ReosGriddedRainfall *rainfall,
133
- const QString &uri,
134
- const ReosRasterExtent &destination,
135
- const ReosTimeWindow &timeWindow ) const ;
136
- virtual const QVector<double > qualifData ( int ) const ;
137
-
138
- protected:
139
- ValueType mSourceValueType = ValueType::Height;
140
-
141
140
};
142
141
143
142
class REOSCORE_EXPORT ReosGriddedRainfallMemoryProvider : public ReosGriddedRainfallProvider
0 commit comments