QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QgsRasterCalcNode Class Reference

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

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 

defines possible types of node

Enumerator:
tOperator 
tNumber 
tRasterRef 

Constructor & Destructor Documentation

QgsRasterCalcNode::QgsRasterCalcNode ( )
QgsRasterCalcNode::QgsRasterCalcNode ( double  number)
QgsRasterCalcNode::QgsRasterCalcNode ( Operator  op,
QgsRasterCalcNode left,
QgsRasterCalcNode right 
)
QgsRasterCalcNode::QgsRasterCalcNode ( const QString &  rasterName)
QgsRasterCalcNode::~QgsRasterCalcNode ( )

Member Function Documentation

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

Calculates result (might be real matrix or single number)

QgsRasterCalcNode * QgsRasterCalcNode::parseRasterCalcString ( const QString &  str,
QString &  parserErrorMsg 
)
static
void QgsRasterCalcNode::setLeft ( QgsRasterCalcNode left)
inline
void QgsRasterCalcNode::setRight ( QgsRasterCalcNode right)
inline
Type QgsRasterCalcNode::type ( ) const
inline

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