QGIS API Documentation  2.14.0-Essen
Public Types | Public Member Functions | List of all members
QgsRasterMatrix Class Reference

#include <qgsrastermatrix.h>

Public Types

enum  OneArgOperator {
  opSQRT, opSIN, opCOS, opTAN,
  opASIN, opACOS, opATAN, opSIGN,
  opLOG, opLOG10
}
 
enum  TwoArgOperator {
  opPLUS, opMINUS, opMUL, opDIV,
  opPOW, opEQ, opNE, opGT,
  opLT, opGE, opLE, opAND,
  opOR
}
 

Public Member Functions

 QgsRasterMatrix ()
 Takes ownership of data array. More...
 
 QgsRasterMatrix (int nCols, int nRows, double *data, double nodataValue)
 
 QgsRasterMatrix (const QgsRasterMatrix &m)
 
 ~QgsRasterMatrix ()
 
bool acosinus ()
 
bool add (const QgsRasterMatrix &other)
 Adds another matrix to this one. More...
 
bool asinus ()
 
bool atangens ()
 
bool changeSign ()
 
bool cosinus ()
 
double * data ()
 Returns data array (but not ownership) More...
 
bool divide (const QgsRasterMatrix &other)
 
bool equal (const QgsRasterMatrix &other)
 
bool greaterEqual (const QgsRasterMatrix &other)
 
bool greaterThan (const QgsRasterMatrix &other)
 
bool isNumber () const
 Returns true if matrix is 1x1 (=scalar number) More...
 
bool lesserEqual (const QgsRasterMatrix &other)
 
bool lesserThan (const QgsRasterMatrix &other)
 
bool log ()
 
bool log10 ()
 
bool logicalAnd (const QgsRasterMatrix &other)
 
bool logicalOr (const QgsRasterMatrix &other)
 
bool multiply (const QgsRasterMatrix &other)
 
int nColumns () const
 
double nodataValue () const
 
bool notEqual (const QgsRasterMatrix &other)
 
int nRows () const
 
double number () const
 
QgsRasterMatrixoperator= (const QgsRasterMatrix &m)
 
bool power (const QgsRasterMatrix &other)
 
void setData (int cols, int rows, double *data, double nodataValue)
 
void setNodataValue (double d)
 
bool sinus ()
 
bool squareRoot ()
 
bool subtract (const QgsRasterMatrix &other)
 Subtracts another matrix from this one. More...
 
double * takeData ()
 Returns data and ownership. More...
 
bool tangens ()
 

Detailed Description

Definition at line 21 of file qgsrastermatrix.h.

Member Enumeration Documentation

Enumerator
opSQRT 
opSIN 
opCOS 
opTAN 
opASIN 
opACOS 
opATAN 
opSIGN 
opLOG 
opLOG10 

Definition at line 42 of file qgsrastermatrix.h.

Enumerator
opPLUS 
opMINUS 
opMUL 
opDIV 
opPOW 
opEQ 
opNE 
opGT 
opLT 
opGE 
opLE 
opAND 
opOR 

Definition at line 25 of file qgsrastermatrix.h.

Constructor & Destructor Documentation

QgsRasterMatrix::QgsRasterMatrix ( )

Takes ownership of data array.

Definition at line 22 of file qgsrastermatrix.cpp.

QgsRasterMatrix::QgsRasterMatrix ( int  nCols,
int  nRows,
double *  data,
double  nodataValue 
)
Note
note available in python bindings

Definition at line 30 of file qgsrastermatrix.cpp.

QgsRasterMatrix::QgsRasterMatrix ( const QgsRasterMatrix m)

Definition at line 38 of file qgsrastermatrix.cpp.

QgsRasterMatrix::~QgsRasterMatrix ( )

Definition at line 46 of file qgsrastermatrix.cpp.

Member Function Documentation

bool QgsRasterMatrix::acosinus ( )

Definition at line 166 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::add ( const QgsRasterMatrix other)

Adds another matrix to this one.

Definition at line 81 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::asinus ( )

Definition at line 156 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::atangens ( )

Definition at line 176 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::changeSign ( )

Definition at line 181 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::cosinus ( )

Definition at line 161 of file qgsrastermatrix.cpp.

double* QgsRasterMatrix::data ( )
inline

Returns data array (but not ownership)

Note
not available in python bindings

Definition at line 69 of file qgsrastermatrix.h.

bool QgsRasterMatrix::divide ( const QgsRasterMatrix other)

Definition at line 96 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::equal ( const QgsRasterMatrix other)

Definition at line 106 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::greaterEqual ( const QgsRasterMatrix other)

Definition at line 126 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::greaterThan ( const QgsRasterMatrix other)

Definition at line 116 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::isNumber ( ) const
inline

Returns true if matrix is 1x1 (=scalar number)

Definition at line 64 of file qgsrastermatrix.h.

bool QgsRasterMatrix::lesserEqual ( const QgsRasterMatrix other)

Definition at line 131 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::lesserThan ( const QgsRasterMatrix other)

Definition at line 121 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::log ( )

Definition at line 186 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::log10 ( )

Definition at line 191 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::logicalAnd ( const QgsRasterMatrix other)

Definition at line 136 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::logicalOr ( const QgsRasterMatrix other)

Definition at line 141 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::multiply ( const QgsRasterMatrix other)

Definition at line 91 of file qgsrastermatrix.cpp.

int QgsRasterMatrix::nColumns ( ) const
inline

Definition at line 76 of file qgsrastermatrix.h.

double QgsRasterMatrix::nodataValue ( ) const
inline

Definition at line 79 of file qgsrastermatrix.h.

bool QgsRasterMatrix::notEqual ( const QgsRasterMatrix other)

Definition at line 111 of file qgsrastermatrix.cpp.

int QgsRasterMatrix::nRows ( ) const
inline

Definition at line 77 of file qgsrastermatrix.h.

double QgsRasterMatrix::number ( ) const
inline

Definition at line 65 of file qgsrastermatrix.h.

QgsRasterMatrix & QgsRasterMatrix::operator= ( const QgsRasterMatrix m)

Definition at line 51 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::power ( const QgsRasterMatrix other)

Definition at line 101 of file qgsrastermatrix.cpp.

void QgsRasterMatrix::setData ( int  cols,
int  rows,
double *  data,
double  nodataValue 
)

Definition at line 63 of file qgsrastermatrix.cpp.

void QgsRasterMatrix::setNodataValue ( double  d)
inline

Definition at line 80 of file qgsrastermatrix.h.

bool QgsRasterMatrix::sinus ( )

Definition at line 151 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::squareRoot ( )

Definition at line 146 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::subtract ( const QgsRasterMatrix other)

Subtracts another matrix from this one.

Definition at line 86 of file qgsrastermatrix.cpp.

double * QgsRasterMatrix::takeData ( )

Returns data and ownership.

Sets data and nrows, ncols of this matrix to 0

Note
not available in python bindings

Definition at line 72 of file qgsrastermatrix.cpp.

bool QgsRasterMatrix::tangens ( )

Definition at line 171 of file qgsrastermatrix.cpp.


The documentation for this class was generated from the following files: