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