QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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; }
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;
110 #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)
bool invertColors() const
Returns true if the filter inverts colors.
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
QColor colorizeColor() const
void setInvertColors(bool invertColors)
Sets whether the filter will invert colors.
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)