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 A rectangle specified with double values.
virtual void readXml(const QDomElement &filterElem)
Sets base class members from xml. Usually called from create() methods of subclasses.
int colorizeStrength() const
The Qgis class provides global constants for use throughout the application.
void setColorizeOn(bool colorizeOn)
Base class for processing filters like renderers, reprojector, resampler etc.
QgsHueSaturationFilter::GrayscaleMode grayscaleMode() const
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
Color and saturation filter pipe for rasters.
QColor colorizeColor() const
void setColorizeStrength(int colorizeStrength)
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Feedback object tailored for raster block reading.
void setGrayscaleMode(QgsHueSaturationFilter::GrayscaleMode grayscaleMode)