18 #ifndef QGSSINGLEBANDPSEUDOCOLORRENDERER_H 19 #define QGSSINGLEBANDPSEUDOCOLORRENDERER_H 56 int band()
const {
return mBand; }
62 void setBand(
int bandNo );
77 double mClassificationMin;
78 double mClassificationMax;
80 int mClassificationMinMaxOrigin;
86 #endif // QGSSINGLEBANDPSEUDOCOLORRENDERER_H A rectangle specified with double values.
Interface for all raster shaders.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
int classificationMinMaxOrigin() const
void setClassificationMinMaxOrigin(int origin)
QgsRasterShader * shader()
const QgsRasterShader * shader() const
void setClassificationMax(double max)
double ANALYSIS_EXPORT max(double x, double y)
Returns the maximum of two doubles or the first argument if both are equal.
int band() const
Returns the band used by the renderer.
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Raster renderer pipe for single band pseudocolor.
Base class for processing filters like renderers, reprojector, resampler etc.
double classificationMax() const
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Get symbology items if provided by renderer.
void setClassificationMin(double min)
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
double ANALYSIS_EXPORT min(double x, double y)
Returns the minimum of two doubles or the first argument if both are equal.
double classificationMin() const
Raster renderer pipe that applies colors to a raster.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height) override=0
Read block of data using given extent and size.