QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
QgsRasterMatrix Class Reference

#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. More...
 
 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) More...
 
double number () const
 
float * data ()
 Returns data array (but not ownership) More...
 
float * takeData ()
 Returns data and ownership. More...
 
void setData (int cols, int rows, float *data, double nodataValue)
 
int nColumns () const
 
int nRows () const
 
double nodataValue () const
 
void setNodataValue (double d)
 
QgsRasterMatrixoperator= (const QgsRasterMatrix &m)
 
bool add (const QgsRasterMatrix &other)
 Adds another matrix to this one. More...
 
bool subtract (const QgsRasterMatrix &other)
 Subtracts another matrix from this one. More...
 
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 ()
 

Member Enumeration Documentation

Enumerator
opSQRT 
opSIN 
opCOS 
opTAN 
opASIN 
opACOS 
opATAN 
opSIGN 
Enumerator
opPLUS 
opMINUS 
opMUL 
opDIV 
opPOW 
opEQ 
opNE 
opGT 
opLT 
opGE 
opLE 
opAND 
opOR 

Constructor & Destructor Documentation

QgsRasterMatrix::QgsRasterMatrix ( )

Takes ownership of data array.

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

Member Function Documentation

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 ( )
float* QgsRasterMatrix::data ( )
inline

Returns data array (but not ownership)

Note
not available in python bindings
bool QgsRasterMatrix::divide ( const QgsRasterMatrix other)
bool QgsRasterMatrix::equal ( const QgsRasterMatrix other)
bool QgsRasterMatrix::greaterEqual ( const QgsRasterMatrix other)
bool QgsRasterMatrix::greaterThan ( const QgsRasterMatrix other)
bool QgsRasterMatrix::isNumber ( ) const
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)
int QgsRasterMatrix::nColumns ( ) const
inline
double QgsRasterMatrix::nodataValue ( ) const
inline
bool QgsRasterMatrix::notEqual ( const QgsRasterMatrix other)
int QgsRasterMatrix::nRows ( ) const
inline
double QgsRasterMatrix::number ( ) const
inline
QgsRasterMatrix & QgsRasterMatrix::operator= ( const QgsRasterMatrix m)
bool QgsRasterMatrix::power ( const QgsRasterMatrix other)
void QgsRasterMatrix::setData ( int  cols,
int  rows,
float *  data,
double  nodataValue 
)
void QgsRasterMatrix::setNodataValue ( double  d)
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

Note
not available in python bindings
bool QgsRasterMatrix::tangens ( )

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