18#ifndef QGSHUESATURATIONFILTER_H
19#define QGSHUESATURATIONFILTER_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; }
77 void setColorizeColor(
const QColor &colorizeColor );
82 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
85 void readXml(
const QDomElement &filterElem )
override;
89 void processSaturation(
int &r,
int &g,
int &b,
int &h,
int &s,
int &l );
91 void processColorization(
int &r,
int &g,
int &b,
int &h,
int &s,
int &l )
const;
95 double mSaturationScale = 1;
100 bool mInvertColors =
false;
103 bool mColorizeOn =
false;
104 QColor mColorizeColor;
105 int mColorizeH = 0, mColorizeS = 50;
106 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
bool invertColors() const
Returns true if the filter inverts colors.
void setGrayscaleMode(QgsHueSaturationFilter::GrayscaleMode grayscaleMode)
void setInvertColors(bool invertColors)
Sets whether the filter will invert colors.
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.