QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSMULTIBANDCOLORRENDERER_H
19 #define QGSMULTIBANDCOLORRENDERER_H
21 #include "qgis_core.h"
118 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
123 void toSld( QDomDocument &doc, QDomElement &element,
const QVariantMap &props = QVariantMap() )
const override;
141 #endif // QGSMULTIBANDCOLORRENDERER_H
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 writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
const QgsContrastEnhancement * redContrastEnhancement() const
Returns the contrast enhancement to use for the red channel.
void setRedBand(int band)
const QgsContrastEnhancement * greenContrastEnhancement() const
Returns the contrast enhancement to use for the green channel.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
A rectangle specified with double values.
Raster renderer pipe that applies colors to a raster.
Layer tree node points to a map layer.
const QgsContrastEnhancement * blueContrastEnhancement() const
Returns the contrast enhancement to use for the blue channel.
virtual void toSld(QDomDocument &doc, QDomElement &element, const QVariantMap &props=QVariantMap()) const
Used from subclasses to create SLD Rule elements following SLD v1.0 specs.
Renderer for multiband images with the color components.
Manipulates raster or point cloud pixel values so that they enhanceContrast or clip into a specified ...
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
Base class for processing filters like renderers, reprojector, resampler etc.
void setBlueBand(int band)
Feedback object tailored for raster block reading.
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
void setGreenBand(int band)
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.