18 #ifndef QGSSINGLEBANDPSEUDOCOLORRENDERER_H 19 #define QGSSINGLEBANDPSEUDOCOLORRENDERER_H 21 #include "qgis_core.h" 72 void createShader(
QgsColorRamp *colorRamp SIP_TRANSFER =
nullptr,
79 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
91 int band()
const {
return mBand; }
98 void setBand(
int bandNo );
102 void setClassificationMin(
double min );
103 void setClassificationMax(
double max );
111 std::unique_ptr< QgsRasterShader > mShader;
116 double mClassificationMin;
117 double mClassificationMax;
121 #endif // QGSSINGLEBANDPSEUDOCOLORRENDERER_H A rectangle specified with double values.
double classificationMin() const
Interface for all raster shaders.
QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr) override=0
Read block of data using given extent and size.
virtual void toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props=QgsStringMap()) const
Used from subclasses to create SLD Rule elements following SLD v1.0 specs.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
Abstract base class for color ramps.
QgsRasterShader * shader()
Returns the raster shader.
QMap< QString, QString > QgsStringMap
Type
Supported methods for color interpolation.
double classificationMax() const
Raster renderer pipe for single band pseudocolor.
Base class for processing filters like renderers, reprojector, resampler etc.
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
Uses breaks from color palette.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
const QgsRasterShader * shader() const
Interpolates the color between two class breaks linearly.
ClassificationMode
Classification modes used to create the color ramp shader.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Gets symbology items if provided by renderer.
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Feedback object tailored for raster block reading.
Raster renderer pipe that applies colors to a raster.
int band() const
Returns the band used by the renderer.