QgsRasterCalcNode Class Reference

#include <qgsrastercalcnode.h>

Collaboration diagram for QgsRasterCalcNode:

Collaboration graph
[legend]

List of all members.

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
}
 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 QgsRasterCalcNodeparseRasterCalcString (const QString &str, QString &parserErrorMsg)

Private Attributes

Type mType
QgsRasterCalcNodemLeft
QgsRasterCalcNodemRight
QgsRasterMatrixmRasterMatrix
QString mRasterName
double mNumber
Operator mOperator


Detailed Description

Definition at line 26 of file qgsrastercalcnode.h.


Member Enumeration Documentation

defines possible types of node

Enumerator:
tOperator 
tNumber 
tRasterRef 

Definition at line 30 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 

Definition at line 38 of file qgsrastercalcnode.h.


Constructor & Destructor Documentation

QgsRasterCalcNode::QgsRasterCalcNode (  ) 

Definition at line 4 of file qgsrastercalcnode.cpp.

QgsRasterCalcNode::QgsRasterCalcNode ( double  number  ) 

Definition at line 8 of file qgsrastercalcnode.cpp.

QgsRasterCalcNode::QgsRasterCalcNode ( Operator  op,
QgsRasterCalcNode left,
QgsRasterCalcNode right 
)

Definition at line 12 of file qgsrastercalcnode.cpp.

QgsRasterCalcNode::QgsRasterCalcNode ( const QString &  rasterName  ) 

Definition at line 16 of file qgsrastercalcnode.cpp.

QgsRasterCalcNode::~QgsRasterCalcNode (  ) 

Definition at line 20 of file qgsrastercalcnode.cpp.

References mLeft, and mRight.


Member Function Documentation

Type QgsRasterCalcNode::type (  )  const [inline]

Definition at line 66 of file qgsrastercalcnode.h.

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

Definition at line 69 of file qgsrastercalcnode.h.

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

Definition at line 70 of file qgsrastercalcnode.h.

bool QgsRasterCalcNode::calculate ( QMap< QString, QgsRasterMatrix * > &  rasterData,
QgsRasterMatrix result 
) const

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

Definition at line 138 of file qgsrastercalcnode.cpp.

Referenced by QgsRasterCalculator::processCalculation().


Member Data Documentation

Definition at line 78 of file qgsrastercalcnode.h.

Referenced by calculate().

Definition at line 79 of file qgsrastercalcnode.h.

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

Definition at line 80 of file qgsrastercalcnode.h.

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

Definition at line 81 of file qgsrastercalcnode.h.

QString QgsRasterCalcNode::mRasterName [private]

Definition at line 82 of file qgsrastercalcnode.h.

Referenced by calculate().

double QgsRasterCalcNode::mNumber [private]

Definition at line 83 of file qgsrastercalcnode.h.

Referenced by calculate().

Definition at line 84 of file qgsrastercalcnode.h.

Referenced by calculate().


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

Generated on Sat Feb 4 19:17:46 2012 for Quantum GIS API Documentation by  doxygen 1.5.6