18 #ifndef QGSHUESATURATIONFILTER_H 19 #define QGSHUESATURATIONFILTER_H 56 void setSaturation(
int saturation );
64 void setColorizeColor(
const QColor& colorizeColor );
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;
90 int mColorizeH, mColorizeS;
91 int mColorizeStrength;
95 #endif // QGSHUESATURATIONFILTER_H virtual int bandCount() const =0
Get number of bands.
A rectangle specified with double values.
virtual void readXML(const QDomElement &filterElem)
Sets base class members from xml.
int colorizeStrength() const
virtual QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)
Read block of data using given extent and size.
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
virtual QGis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
void setColorizeOn(bool colorizeOn)
Base class for processing filters like renderers, reprojector, resampler etc.
virtual bool setInput(QgsRasterInterface *input)
Set input.
QgsHueSaturationFilter::GrayscaleMode grayscaleMode() const
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
Color and saturation filter pipe for rasters.
DataType
Raster data types.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
QColor colorizeColor() const
void setColorizeStrength(int colorizeStrength)
Feedback object tailored for raster block reading.
void setGrayscaleMode(QgsHueSaturationFilter::GrayscaleMode grayscaleMode)