@@ -72,7 +72,7 @@ class CORE_EXPORT QgsRasterBlock
72
72
* @param theDataType raster data type
73
73
* @param theWidth width of data matrix
74
74
* @param theHeight height of data matrix
75
- * @param theNoDataValue the value representing no data (NULL)
75
+ * @param theNoDataValue the value representing no data (NULL)
76
76
*/
77
77
QgsRasterBlock ( DataType theDataType, int theWidth, int theHeight, double theNoDataValue = std::numeric_limits<double >::quiet_NaN() );
78
78
@@ -82,7 +82,7 @@ class CORE_EXPORT QgsRasterBlock
82
82
* @param theDataType raster data type
83
83
* @param theWidth width of data matrix
84
84
* @param theHeight height of data matrix
85
- * @param theNoDataValue the value representing no data (NULL)
85
+ * @param theNoDataValue the value representing no data (NULL)
86
86
* @return true on success
87
87
*/
88
88
bool reset ( DataType theDataType, int theWidth, int theHeight, double theNoDataValue = std::numeric_limits<double >::quiet_NaN() );
@@ -129,6 +129,7 @@ class CORE_EXPORT QgsRasterBlock
129
129
130
130
int dataTypeSize ( int bandNo ) const
131
131
{
132
+ Q_UNUSED ( bandNo );
132
133
return typeSize ( mDataType );
133
134
}
134
135
@@ -153,7 +154,7 @@ class CORE_EXPORT QgsRasterBlock
153
154
*/
154
155
void setNoDataValue ( double noDataValue ) { mNoDataValue = noDataValue; }
155
156
156
- /* * Test if value is nodata comparing to noDataValue
157
+ /* * Test if value is nodata comparing to noDataValue
157
158
* @param value tested value
158
159
* @param noDataValue no data value
159
160
* @return true if value is nodata */
@@ -173,7 +174,7 @@ class CORE_EXPORT QgsRasterBlock
173
174
/* * \brief Read a single value
174
175
* @param index data matrix index
175
176
* @return value */
176
- double value ( size_t index) const ;
177
+ double value ( size_t index ) const ;
177
178
178
179
/* * \brief Read a single color
179
180
* @param row row index
@@ -184,7 +185,7 @@ class CORE_EXPORT QgsRasterBlock
184
185
/* * \brief Read a single value
185
186
* @param index data matrix index
186
187
* @return color */
187
- QRgb color ( size_t index) const ;
188
+ QRgb color ( size_t index ) const ;
188
189
189
190
/* * \brief Check if value at position is no data
190
191
* @param row row index
@@ -223,14 +224,14 @@ class CORE_EXPORT QgsRasterBlock
223
224
* @return true on success */
224
225
bool setColor ( size_t index, QRgb color );
225
226
226
- /* * \brief Get pointer to data
227
+ /* * \brief Get pointer to data
227
228
* @param row row index
228
229
* @param column column index
229
230
* @retun pointer to data
230
231
*/
231
232
char * bits ( int row, int column );
232
233
233
- /* * \brief Get pointer to data
234
+ /* * \brief Get pointer to data
234
235
* @param index data matrix index
235
236
* @retun pointer to data
236
237
*/
@@ -244,12 +245,12 @@ class CORE_EXPORT QgsRasterBlock
244
245
245
246
/* * \brief Convert data to different type.
246
247
* @param destDataType dest data type
247
- * @return true on success
248
+ * @return true on success
248
249
*/
249
250
bool convert ( QgsRasterBlock::DataType destDataType );
250
251
251
- QImage image () const ;
252
- bool setImage ( const QImage * image );
252
+ QImage image () const ;
253
+ bool setImage ( const QImage * image );
253
254
254
255
/* * \brief Test if value is within the list of ranges
255
256
* @param value value
@@ -285,11 +286,11 @@ class CORE_EXPORT QgsRasterBlock
285
286
286
287
private:
287
288
288
- static QImage::Format imageFormat ( QgsRasterBlock::DataType theDataType );
289
- static DataType dataType ( QImage::Format theFormat );
289
+ static QImage::Format imageFormat ( QgsRasterBlock::DataType theDataType );
290
+ static DataType dataType ( QImage::Format theFormat );
290
291
291
292
292
- // Valid
293
+ // Valid
293
294
// bool isValid;
294
295
295
296
// Data type
@@ -298,11 +299,11 @@ class CORE_EXPORT QgsRasterBlock
298
299
// Data type size in bytes, to make bits() fast
299
300
int mTypeSize ;
300
301
301
- // Width
302
+ // Width
302
303
int mWidth ;
303
304
304
- // Height
305
- int mHeight ;
305
+ // Height
306
+ int mHeight ;
306
307
307
308
// No data value
308
309
double mNoDataValue ;
0 commit comments