18 #ifndef QGSRASTERMATRIX_H
19 #define QGSRASTERMATRIX_H
21 #include "qgis_analysis.h"
75 bool isNumber()
const {
return ( mColumns == 1 && mRows == 1 ); }
76 double number()
const {
return mData[0]; }
90 void setData(
int cols,
int rows,
double *data,
double nodataValue );
92 int nColumns()
const {
return mColumns; }
93 int nRows()
const {
return mRows; }
145 bool absoluteValue();
150 double *mData =
nullptr;
151 double mNodataValue = -1;
154 bool twoArgumentOperation( TwoArgOperator op,
const QgsRasterMatrix &other );
155 double calculateTwoArgumentOp( TwoArgOperator op,
double arg1,
double arg2 )
const;
158 bool oneArgumentOperation( OneArgOperator op );
159 bool testPowerValidity(
double base,
double power )
const;
162 #endif // QGSRASTERMATRIX_H