QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
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.
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.
const QgsContrastEnhancement * contrastEnhancement() const
void setGrayBand(int band)
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
QMap< QString, QString > QgsStringMap
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Gets symbology items if provided by renderer.
void setGradient(Gradient gradient)
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.