QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSHUESATURATIONFILTER_H
19 #define QGSHUESATURATIONFILTER_H
21 #include "qgis_core.h"
48 int bandCount() const override;
50 Qgis::DataType dataType(
int bandNo ) const override;
56 void setSaturation(
int saturation );
57 int saturation()
const {
return mSaturation; }
64 void setColorizeColor(
const QColor &colorizeColor );
69 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
72 void readXml(
const QDomElement &filterElem )
override;
76 void processSaturation(
int &r,
int &g,
int &b,
int &h,
int &s,
int &l );
78 void processColorization(
int &r,
int &g,
int &b,
int &h,
int &s,
int &l );
82 double mSaturationScale = 1;
88 bool mColorizeOn =
false;
89 QColor mColorizeColor;
90 int mColorizeH = 0, mColorizeS = 50;
91 int mColorizeStrength = 100;
95 #endif // QGSHUESATURATIONFILTER_H
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
A rectangle specified with double values.
QgsHueSaturationFilter::GrayscaleMode grayscaleMode() const
void setGrayscaleMode(QgsHueSaturationFilter::GrayscaleMode grayscaleMode)
void setColorizeStrength(int colorizeStrength)
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
QColor colorizeColor() const
Color and saturation filter pipe for rasters.
virtual void readXml(const QDomElement &filterElem)
Sets base class members from xml. Usually called from create() methods of subclasses.
int colorizeStrength() const
Base class for processing filters like renderers, reprojector, resampler etc.
Feedback object tailored for raster block reading.
The Qgis class provides global constants for use throughout the application.
void setColorizeOn(bool colorizeOn)