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