QGIS API Documentation
2.0.1-Dufour
|
#include <qgsrastercalcnode.h>
Public Types | |
enum | Type { tOperator = 1, tNumber, tRasterRef } |
defines possible types of node More... | |
enum | Operator { opPLUS, opMINUS, opMUL, opDIV, opPOW, opSQRT, opSIN, opCOS, opTAN, opASIN, opACOS, opATAN, opEQ, opNE, opGT, opLT, opGE, opLE, opAND, opOR, opSIGN } |
possible operators More... |
Public Member Functions | |
QgsRasterCalcNode () | |
QgsRasterCalcNode (double number) | |
QgsRasterCalcNode (Operator op, QgsRasterCalcNode *left, QgsRasterCalcNode *right) | |
QgsRasterCalcNode (const QString &rasterName) | |
~QgsRasterCalcNode () | |
Type | type () const |
void | setLeft (QgsRasterCalcNode *left) |
void | setRight (QgsRasterCalcNode *right) |
bool | calculate (QMap< QString, QgsRasterMatrix * > &rasterData, QgsRasterMatrix &result) const |
Calculates result (might be real matrix or single number) |
Static Public Member Functions | |
static QgsRasterCalcNode * | parseRasterCalcString (const QString &str, QString &parserErrorMsg) |
Private Attributes | |
Type | mType |
QgsRasterCalcNode * | mLeft |
QgsRasterCalcNode * | mRight |
double | mNumber |
QString | mRasterName |
Operator | mOperator |
Definition at line 26 of file qgsrastercalcnode.h.
possible operators
opPLUS | |
opMINUS | |
opMUL | |
opDIV | |
opPOW | |
opSQRT | |
opSIN | |
opCOS | |
opTAN | |
opASIN | |
opACOS | |
opATAN | |
opEQ | |
opNE | |
opGT |
= |
opLT | |
opGE | |
opLE | |
opAND | |
opOR | |
opSIGN |
Definition at line 38 of file qgsrastercalcnode.h.
defines possible types of node
Definition at line 30 of file qgsrastercalcnode.h.
QgsRasterCalcNode::QgsRasterCalcNode | ( | ) |
Definition at line 18 of file qgsrastercalcnode.cpp.
QgsRasterCalcNode::QgsRasterCalcNode | ( | double | number | ) |
Definition at line 25 of file qgsrastercalcnode.cpp.
QgsRasterCalcNode::QgsRasterCalcNode | ( | Operator | op, |
QgsRasterCalcNode * | left, | ||
QgsRasterCalcNode * | right | ||
) |
Definition at line 33 of file qgsrastercalcnode.cpp.
QgsRasterCalcNode::QgsRasterCalcNode | ( | const QString & | rasterName | ) |
Definition at line 42 of file qgsrastercalcnode.cpp.
QgsRasterCalcNode::~QgsRasterCalcNode | ( | ) |
Definition at line 51 of file qgsrastercalcnode.cpp.
bool QgsRasterCalcNode::calculate | ( | QMap< QString, QgsRasterMatrix * > & | rasterData, |
QgsRasterMatrix & | result | ||
) | const |
Calculates result (might be real matrix or single number)
Definition at line 63 of file qgsrastercalcnode.cpp.
References QgsRasterMatrix::acosinus(), QgsRasterMatrix::add(), QgsRasterMatrix::asinus(), QgsRasterMatrix::atangens(), calculate(), QgsRasterMatrix::changeSign(), QgsRasterMatrix::cosinus(), QgsRasterMatrix::divide(), QgsRasterMatrix::equal(), QgsRasterMatrix::greaterEqual(), QgsRasterMatrix::greaterThan(), QgsRasterMatrix::lesserEqual(), QgsRasterMatrix::lesserThan(), QgsRasterMatrix::logicalAnd(), QgsRasterMatrix::logicalOr(), mLeft, mNumber, mOperator, mRasterName, mRight, mType, QgsRasterMatrix::multiply(), QgsRasterMatrix::nColumns(), QgsRasterMatrix::nodataValue(), QgsRasterMatrix::notEqual(), QgsRasterMatrix::nRows(), opACOS, opAND, opASIN, opATAN, opCOS, opDIV, opEQ, opGE, opGT, opLE, opLT, opMINUS, opMUL, opNE, opOR, opPLUS, opPOW, opSIGN, opSIN, opSQRT, opTAN, QgsRasterMatrix::power(), QgsRasterMatrix::setData(), QgsRasterMatrix::sinus(), QgsRasterMatrix::squareRoot(), QgsRasterMatrix::subtract(), QgsRasterMatrix::takeData(), QgsRasterMatrix::tangens(), tNumber, tOperator, and tRasterRef.
Referenced by calculate(), and QgsRasterCalculator::processCalculation().
|
static |
Definition at line 177 of file qgsrastercalcnode.cpp.
Referenced by QgsRasterCalculator::processCalculation().
|
inline |
Definition at line 72 of file qgsrastercalcnode.h.
|
inline |
Definition at line 73 of file qgsrastercalcnode.h.
|
inline |
Definition at line 69 of file qgsrastercalcnode.h.
|
private |
Definition at line 82 of file qgsrastercalcnode.h.
Referenced by calculate(), and ~QgsRasterCalcNode().
|
private |
Definition at line 84 of file qgsrastercalcnode.h.
Referenced by calculate().
|
private |
Definition at line 86 of file qgsrastercalcnode.h.
Referenced by calculate().
|
private |
Definition at line 85 of file qgsrastercalcnode.h.
Referenced by calculate().
|
private |
Definition at line 83 of file qgsrastercalcnode.h.
Referenced by calculate(), and ~QgsRasterCalcNode().
|
private |
Definition at line 81 of file qgsrastercalcnode.h.
Referenced by calculate().