18 #ifndef QGSSINGLEBANDGRAYRENDERER_H 19 #define QGSSINGLEBANDGRAYRENDERER_H 21 #include "qgis_core.h" 55 int grayBand()
const {
return mGrayBand; }
64 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
80 std::unique_ptr< QgsContrastEnhancement > mContrastEnhancement;
84 #endif // QGSSINGLEBANDGRAYRENDERER_H A rectangle specified with double values.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
const QgsContrastEnhancement * contrastEnhancement() const
Gradient gradient() const
QMap< QString, QString > QgsStringMap
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 void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Raster renderer pipe for single band gray.
void setGradient(Gradient gradient)
Base class for processing filters like renderers, reprojector, resampler etc.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Gets symbology items if provided by renderer.
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
void setGrayBand(int band)
Manipulates raster pixel values so that they enhanceContrast or clip into a specified numerical range...
Feedback object tailored for raster block reading.
Raster renderer pipe that applies colors to a raster.