QGIS/python/analysis/auto_generated/raster/qgsrastercalcnode.sip.in
Alessandro Pasotti d730c97f46 Fix multiple raster calc issues
Fixes #32023 Raster calculator change sign does not work when OpenCL is on
Fixes #32025 QGIS Raster Calculator outputs nodata only rasters

Bonus: three new operators with full test coverage
- ABS
- MIN
- MAX
2019-09-26 18:26:25 +02:00

110 lines
2.6 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/raster/qgsrastercalcnode.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterCalcNode
{
%TypeHeaderCode
#include "qgsrastercalcnode.h"
%End
public:
enum Type
{
tOperator,
tNumber,
tRasterRef,
tMatrix
};
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,
opABS,
opMAX,
opMIN,
opNONE,
};
QgsRasterCalcNode();
%Docstring
Constructor for QgsRasterCalcNode.
%End
QgsRasterCalcNode( double number );
QgsRasterCalcNode( QgsRasterMatrix *matrix );
QgsRasterCalcNode( Operator op, QgsRasterCalcNode *left, QgsRasterCalcNode *right );
QgsRasterCalcNode( const QString &rasterName );
~QgsRasterCalcNode();
Type type() const;
%Docstring
QgsRasterCalcNode cannot be copied
%End
void setLeft( QgsRasterCalcNode *left );
void setRight( QgsRasterCalcNode *right );
QString toString( bool cStyle = false ) const;
%Docstring
Returns a string representation of the expression
:param cStyle: if ``True`` operators will follow C syntax
.. versionadded:: 3.6
%End
QList<const QgsRasterCalcNode *> findNodes( const QgsRasterCalcNode::Type type ) const;
%Docstring
Returns a list of nodes of a specific ``type``
.. versionadded:: 3.6
%End
static QgsRasterCalcNode *parseRasterCalcString( const QString &str, QString &parserErrorMsg ) /Factory/;
private:
QgsRasterCalcNode( const QgsRasterCalcNode &rh );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/raster/qgsrastercalcnode.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/