|
QGIS API Documentation
2.14.0-Essen
|
#include <qgsrastercalcnode.h>
Public Types | |
| enum | Operator { opPLUS, opMINUS, opMUL, opDIV, opPOW, opSQRT, opSIN, opCOS, opTAN, opASIN, opACOS, opATAN, opEQ, opNE, opGT, opLT, opGE, opLE, opAND, opOR, opSIGN, opLOG, opLOG10, opNONE } |
| possible operators More... | |
| enum | Type { tOperator = 1, tNumber, tRasterRef, tMatrix } |
| defines possible types of node More... | |
Public Member Functions | |
| QgsRasterCalcNode () | |
| QgsRasterCalcNode (double number) | |
| QgsRasterCalcNode (QgsRasterMatrix *matrix) | |
| QgsRasterCalcNode (Operator op, QgsRasterCalcNode *left, QgsRasterCalcNode *right) | |
| QgsRasterCalcNode (const QString &rasterName) | |
| ~QgsRasterCalcNode () | |
| bool | calculate (QMap< QString, QgsRasterBlock * > &rasterData, QgsRasterMatrix &result, int row=-1) const |
| Calculates result of raster calculation (might be real matrix or single number). More... | |
| Q_DECL_DEPRECATED bool | calculate (QMap< QString, QgsRasterMatrix * > &rasterData, QgsRasterMatrix &result) const |
| void | setLeft (QgsRasterCalcNode *left) |
| void | setRight (QgsRasterCalcNode *right) |
| Type | type () const |
Static Public Member Functions | |
| static QgsRasterCalcNode * | parseRasterCalcString (const QString &str, QString &parserErrorMsg) |
Definition at line 28 of file qgsrastercalcnode.h.
possible operators
| Enumerator | |
|---|---|
| opPLUS | |
| opMINUS | |
| opMUL | |
| opDIV | |
| opPOW | |
| opSQRT | |
| opSIN | |
| opCOS | |
| opTAN | |
| opASIN | |
| opACOS | |
| opATAN | |
| opEQ | |
| opNE | |
| opGT |
= |
| opLT | |
| opGE | |
| opLE | |
| opAND | |
| opOR | |
| opSIGN | |
| opLOG | |
| opLOG10 | |
| opNONE | |
Definition at line 41 of file qgsrastercalcnode.h.
defines possible types of node
| Enumerator | |
|---|---|
| tOperator | |
| tNumber | |
| tRasterRef | |
| tMatrix | |
Definition at line 32 of file qgsrastercalcnode.h.
| QgsRasterCalcNode::QgsRasterCalcNode | ( | ) |
Definition at line 19 of file qgsrastercalcnode.cpp.
| QgsRasterCalcNode::QgsRasterCalcNode | ( | double | number | ) |
Definition at line 29 of file qgsrastercalcnode.cpp.
| QgsRasterCalcNode::QgsRasterCalcNode | ( | QgsRasterMatrix * | matrix | ) |
Definition at line 39 of file qgsrastercalcnode.cpp.
| QgsRasterCalcNode::QgsRasterCalcNode | ( | Operator | op, |
| QgsRasterCalcNode * | left, | ||
| QgsRasterCalcNode * | right | ||
| ) |
Definition at line 50 of file qgsrastercalcnode.cpp.
| QgsRasterCalcNode::QgsRasterCalcNode | ( | const QString & | rasterName | ) |
Definition at line 60 of file qgsrastercalcnode.cpp.
| QgsRasterCalcNode::~QgsRasterCalcNode | ( | ) |
Definition at line 73 of file qgsrastercalcnode.cpp.
| bool QgsRasterCalcNode::calculate | ( | QMap< QString, QgsRasterBlock * > & | rasterData, |
| QgsRasterMatrix & | result, | ||
| int | row = -1 |
||
| ) | const |
Calculates result of raster calculation (might be real matrix or single number).
| rasterData | input raster data references, map of raster name to raster data block |
| result | destination raster matrix for calculation results |
| row | optional row number to calculate for calculating result by rows, or -1 to calculate entire result |
Definition at line 107 of file qgsrastercalcnode.cpp.
| bool QgsRasterCalcNode::calculate | ( | QMap< QString, QgsRasterMatrix * > & | rasterData, |
| QgsRasterMatrix & | result | ||
| ) | const |
Definition at line 85 of file qgsrastercalcnode.cpp.
|
static |
Definition at line 255 of file qgsrastercalcnode.cpp.
|
inline |
Definition at line 79 of file qgsrastercalcnode.h.
|
inline |
Definition at line 80 of file qgsrastercalcnode.h.
|
inline |
Definition at line 76 of file qgsrastercalcnode.h.
1.8.11