QGIS API Documentation
2.6.0-Brighton
|
#include <qgsrastermatrix.h>
Public Types | |
enum | TwoArgOperator { opPLUS, opMINUS, opMUL, opDIV, opPOW, opEQ, opNE, opGT, opLT, opGE, opLE, opAND, opOR } |
enum | OneArgOperator { opSQRT, opSIN, opCOS, opTAN, opASIN, opACOS, opATAN, opSIGN } |
Public Member Functions | |
QgsRasterMatrix () | |
Takes ownership of data array. | |
QgsRasterMatrix (int nCols, int nRows, float *data, double nodataValue) | |
QgsRasterMatrix (const QgsRasterMatrix &m) | |
~QgsRasterMatrix () | |
bool | isNumber () const |
Returns true if matrix is 1x1 (=scalar number) | |
double | number () const |
float * | data () |
Returns data array (but not ownership) | |
float * | takeData () |
Returns data and ownership. | |
void | setData (int cols, int rows, float *data, double nodataValue) |
int | nColumns () const |
int | nRows () const |
double | nodataValue () const |
void | setNodataValue (double d) |
QgsRasterMatrix & | operator= (const QgsRasterMatrix &m) |
bool | add (const QgsRasterMatrix &other) |
Adds another matrix to this one. | |
bool | subtract (const QgsRasterMatrix &other) |
Subtracts another matrix from this one. | |
bool | multiply (const QgsRasterMatrix &other) |
bool | divide (const QgsRasterMatrix &other) |
bool | power (const QgsRasterMatrix &other) |
bool | equal (const QgsRasterMatrix &other) |
bool | notEqual (const QgsRasterMatrix &other) |
bool | greaterThan (const QgsRasterMatrix &other) |
bool | lesserThan (const QgsRasterMatrix &other) |
bool | greaterEqual (const QgsRasterMatrix &other) |
bool | lesserEqual (const QgsRasterMatrix &other) |
bool | logicalAnd (const QgsRasterMatrix &other) |
bool | logicalOr (const QgsRasterMatrix &other) |
bool | squareRoot () |
bool | sinus () |
bool | asinus () |
bool | cosinus () |
bool | acosinus () |
bool | tangens () |
bool | atangens () |
bool | changeSign () |
QgsRasterMatrix::QgsRasterMatrix | ( | ) |
Takes ownership of data array.
QgsRasterMatrix::QgsRasterMatrix | ( | int | nCols, |
int | nRows, | ||
float * | data, | ||
double | nodataValue | ||
) |
QgsRasterMatrix::QgsRasterMatrix | ( | const QgsRasterMatrix & | m | ) |
QgsRasterMatrix::~QgsRasterMatrix | ( | ) |
bool QgsRasterMatrix::acosinus | ( | ) |
bool QgsRasterMatrix::add | ( | const QgsRasterMatrix & | other | ) |
Adds another matrix to this one.
bool QgsRasterMatrix::asinus | ( | ) |
bool QgsRasterMatrix::atangens | ( | ) |
bool QgsRasterMatrix::changeSign | ( | ) |
bool QgsRasterMatrix::cosinus | ( | ) |
|
inline |
Returns data array (but not ownership)
bool QgsRasterMatrix::divide | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::equal | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::greaterEqual | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::greaterThan | ( | const QgsRasterMatrix & | other | ) |
|
inline |
Returns true if matrix is 1x1 (=scalar number)
bool QgsRasterMatrix::lesserEqual | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::lesserThan | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::logicalAnd | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::logicalOr | ( | const QgsRasterMatrix & | other | ) |
bool QgsRasterMatrix::multiply | ( | const QgsRasterMatrix & | other | ) |
|
inline |
|
inline |
bool QgsRasterMatrix::notEqual | ( | const QgsRasterMatrix & | other | ) |
|
inline |
|
inline |
QgsRasterMatrix & QgsRasterMatrix::operator= | ( | const QgsRasterMatrix & | m | ) |
bool QgsRasterMatrix::power | ( | const QgsRasterMatrix & | other | ) |
void QgsRasterMatrix::setData | ( | int | cols, |
int | rows, | ||
float * | data, | ||
double | nodataValue | ||
) |
|
inline |
bool QgsRasterMatrix::sinus | ( | ) |
bool QgsRasterMatrix::squareRoot | ( | ) |
bool QgsRasterMatrix::subtract | ( | const QgsRasterMatrix & | other | ) |
Subtracts another matrix from this one.
float * QgsRasterMatrix::takeData | ( | ) |
Returns data and ownership.
Sets data and nrows, ncols of this matrix to 0
bool QgsRasterMatrix::tangens | ( | ) |