@@ -136,31 +136,39 @@ class CORE_EXPORT QgsRasterInterface
136
136
* @return No data value */
137
137
// virtual double noDataValue( int bandNo ) const { Q_UNUSED( bandNo ); return std::numeric_limits<double>::quiet_NaN(); }
138
138
139
+ #if 0
139
140
/** Test if value is nodata for specific band
140
141
* @param bandNo band number
141
142
* @param value tested value
142
143
* @return true if value is nodata */
143
- // virtual bool isNoDataValue( int bandNo, double value ) const;
144
+ virtual bool isNoDataValue( int bandNo, double value ) const;
145
+ #endif
144
146
145
147
/* * Read block of data using given extent and size.
146
148
* Returns pointer to data.
147
149
* Caller is responsible to free the memory returned.
150
+ * @param bandNo band number
151
+ * @param extent extent of block
152
+ * @param width pixel width of block
153
+ * @param height pixel height of block
148
154
*/
149
- // void *block( int bandNo, const QgsRectangle &extent, int width, int height );
150
155
virtual QgsRasterBlock *block ( int bandNo, const QgsRectangle &extent, int width, int height ) = 0;
156
+ // void *block( int bandNo, const QgsRectangle &extent, int width, int height );
151
157
158
+ #if 0
152
159
/** Read block of data using given extent and size.
153
160
* Method to be implemented by subclasses.
154
161
* Returns pointer to data.
155
162
* Caller is responsible to free the memory returned.
156
163
*/
157
- // virtual void *readBlock( int bandNo, const QgsRectangle &extent, int width, int height )
158
- // virtual QgsRasterBlock *readBlock( int bandNo, const QgsRectangle &extent, int width, int height ) const = 0;
164
+ virtual void *readBlock( int bandNo, const QgsRectangle &extent, int width, int height )
165
+ virtual QgsRasterBlock *readBlock( int bandNo, const QgsRectangle &extent, int width, int height ) const = 0;
159
166
160
- // {
161
- // Q_UNUSED( bandNo ); Q_UNUSED( extent ); Q_UNUSED( width ); Q_UNUSED( height );
162
- // return new QgsRasterBlock();
163
- // }
167
+ {
168
+ Q_UNUSED( bandNo ); Q_UNUSED( extent ); Q_UNUSED( width ); Q_UNUSED( height );
169
+ return new QgsRasterBlock();
170
+ }
171
+ #endif
164
172
165
173
/* * Set input.
166
174
* Returns true if set correctly, false if cannot use that input */
0 commit comments