QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Raster renderer pipe for single band gray.
Gradient gradient() const
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.
A rectangle specified with double values.
const QgsContrastEnhancement * contrastEnhancement() const
Raster renderer pipe that applies colors to a raster.
void setGrayBand(int band)
QgsSingleBandGrayRenderer(const QgsSingleBandGrayRenderer &)=delete
QgsSingleBandGrayRenderer cannot be copied. Use clone() instead.
Manipulates raster pixel values so that they enhanceContrast or clip into a specified numerical range...
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
QMap< QString, QString > QgsStringMap
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.
Feedback object tailored for raster block reading.
void setGradient(Gradient gradient)
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
const QgsSingleBandGrayRenderer & operator=(const QgsSingleBandGrayRenderer &)=delete
QgsSingleBandGrayRenderer cannot be copied. Use clone() instead.