18 #ifndef QGSRASTERMATRIX_H
19 #define QGSRASTERMATRIX_H
57 QgsRasterMatrix(
int nCols,
int nRows,
float* data,
double nodataValue );
62 bool isNumber()
const {
return ( mColumns == 1 && mRows == 1 ); }
63 double number()
const {
return mData[0]; }
67 float*
data() {
return mData; }
72 void setData(
int cols,
int rows,
float* data,
double nodataValue );
75 int nRows()
const {
return mRows; }
113 bool twoArgumentOperation( TwoArgOperator op,
const QgsRasterMatrix& other );
115 bool oneArgumentOperation( OneArgOperator op );
116 bool testPowerValidity(
double base,
double power );
119 #endif // QGSRASTERMATRIX_H