18 #ifndef QGSALGORITHMRASTERLOGICALOP_H
19 #define QGSALGORITHMRASTERLOGICALOP_H
38 QgsRasterBooleanLogicAlgorithmBase() =
default;
40 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
41 QStringList
tags()
const override;
42 QString
group()
const override;
43 QString
groupId()
const override;
51 std::function<void(
const std::vector< std::unique_ptr< QgsRasterBlock > > &,
bool &,
bool &,
int,
int,
bool )> mExtractValFunc;
55 std::vector< QgsRasterAnalysisUtils::RasterLogicInput > mInputs;
57 double mNoDataValue = -9999;
62 double mRasterUnitsPerPixelX;
63 double mRasterUnitsPerPixelY;
64 bool mTreatNodataAsFalse =
false;
65 friend class TestQgsProcessingAlgs;
71 class ANALYSIS_EXPORT QgsRasterLogicalOrAlgorithm :
public QgsRasterBooleanLogicAlgorithmBase
76 QgsRasterLogicalOrAlgorithm();
78 QString name()
const override;
79 QString displayName()
const override;
80 QString shortHelpString()
const override;
81 QString shortDescription()
const override;
82 QgsRasterLogicalOrAlgorithm *createInstance() const override
SIP_FACTORY;
89 class ANALYSIS_EXPORT QgsRasterLogicalAndAlgorithm : public QgsRasterBooleanLogicAlgorithmBase
94 QgsRasterLogicalAndAlgorithm();
96 QString name()
const override;
97 QString displayName()
const override;
98 QString shortHelpString()
const override;
99 QString shortDescription()
const override;
100 QgsRasterLogicalAndAlgorithm *createInstance() const override
SIP_FACTORY;
106 #endif // QGSALGORITHMRASTERLOGICALOP_H