QGIS API Documentation  master-59fd5e0
QgsRasterCalcNode Class Reference

#include <qgsrastercalcnode.h>

+ Collaboration diagram for QgsRasterCalcNode:

List of all members.

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
}
 possible operators More...
enum  Type { tOperator = 1, tNumber, tRasterRef }
 defines possible types of node More...

Public Member Functions

 QgsRasterCalcNode ()
 QgsRasterCalcNode (double number)
 QgsRasterCalcNode (Operator op, QgsRasterCalcNode *left, QgsRasterCalcNode *right)
 QgsRasterCalcNode (const QString &rasterName)
 ~QgsRasterCalcNode ()
bool calculate (QMap< QString, QgsRasterMatrix * > &rasterData, QgsRasterMatrix &result) const
 Calculates result (might be real matrix or single number)
void setLeft (QgsRasterCalcNode *left)
void setRight (QgsRasterCalcNode *right)
Type type () const

Static Public Member Functions

static QgsRasterCalcNodeparseRasterCalcString (const QString &str, QString &parserErrorMsg)

Private Attributes

QgsRasterCalcNodemLeft
double mNumber
Operator mOperator
QgsRasterMatrixmRasterMatrix
QString mRasterName
QgsRasterCalcNodemRight
Type mType

Detailed Description

Definition at line 26 of file qgsrastercalcnode.h.


Member Enumeration Documentation

possible operators

Enumerator:
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

Enumerator:
tOperator 
tNumber 
tRasterRef 

Definition at line 30 of file qgsrastercalcnode.h.


Constructor & Destructor Documentation

Definition at line 22 of file qgsrastercalcnode.cpp.

QgsRasterCalcNode::QgsRasterCalcNode ( const QString &  rasterName)

Definition at line 30 of file qgsrastercalcnode.cpp.

Definition at line 34 of file qgsrastercalcnode.cpp.

References mLeft, and mRight.


Member Function Documentation

QgsRasterCalcNode * QgsRasterCalcNode::parseRasterCalcString ( const QString &  str,
QString &  parserErrorMsg 
) [static]

Definition at line 160 of file qgsrastercalcnode.cpp.

Referenced by QgsRasterCalculator::processCalculation().

void QgsRasterCalcNode::setLeft ( QgsRasterCalcNode left) [inline]

Definition at line 72 of file qgsrastercalcnode.h.

void QgsRasterCalcNode::setRight ( QgsRasterCalcNode right) [inline]

Definition at line 73 of file qgsrastercalcnode.h.

Type QgsRasterCalcNode::type ( ) const [inline]

Definition at line 69 of file qgsrastercalcnode.h.


Member Data Documentation

Definition at line 82 of file qgsrastercalcnode.h.

Referenced by calculate(), and ~QgsRasterCalcNode().

double QgsRasterCalcNode::mNumber [private]

Definition at line 85 of file qgsrastercalcnode.h.

Referenced by calculate().

Definition at line 87 of file qgsrastercalcnode.h.

Referenced by calculate().

QString QgsRasterCalcNode::mRasterName [private]

Definition at line 86 of file qgsrastercalcnode.h.

Referenced by calculate().

Definition at line 83 of file qgsrastercalcnode.h.

Referenced by calculate(), and ~QgsRasterCalcNode().

Definition at line 81 of file qgsrastercalcnode.h.

Referenced by calculate().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines