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
virtual bool prepareAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)
Prepares the algorithm to run using the specified parameters.
A rectangle specified with double values.
Base class for providing feedback from a processing algorithm.
virtual QString group() const
Returns the name of the group this algorithm belongs to.
DataType
Raster data types.
virtual QStringList tags() const
Returns a list of tags which relate to the algorithm, and are used to assist users in searching for s...
Thirty two bit floating point (float)
Abstract base class for processing algorithms.
virtual void initAlgorithm(const QVariantMap &configuration=QVariantMap())=0
Initializes the algorithm using the specified configuration.
virtual QVariantMap processAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)=0
Runs the algorithm using the specified parameters.
This class represents a coordinate reference system (CRS).
virtual QString groupId() const
Returns the unique ID of the group this algorithm belongs to.
Contains information about the context in which a processing algorithm is executed.