18 #ifndef QGSRASTERMATRIX_H 19 #define QGSRASTERMATRIX_H 21 #include "qgis_analysis.h" 72 bool isNumber()
const {
return ( mColumns == 1 && mRows == 1 ); }
73 double number()
const {
return mData[0]; }
87 void setData(
int cols,
int rows,
double *data,
double nodataValue );
90 int nRows()
const {
return mRows; }
126 double *mData =
nullptr;
127 double mNodataValue = -1;
131 double calculateTwoArgumentOp(
TwoArgOperator op,
double arg1,
double arg2 )
const;
135 bool testPowerValidity(
double base,
double power )
const;
138 #endif // QGSRASTERMATRIX_H bool isNumber() const
Returns true if matrix is 1x1 (=scalar number)
void setNodataValue(double d)
double nodataValue() const
double * data()
Returns data array (but not ownership)