18 #ifndef QGSPALETTEDRASTERRENDERER_H 19 #define QGSPALETTEDRASTERRENDERER_H 52 QRgb* rgbArray()
const;
60 void setLabel(
int idx,
const QString& label );
81 #endif // QGSPALETTEDRASTERRENDERER_H A rectangle specified with double values.
Renderer for paletted raster images.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
int nColors() const
Returns number of colors.
virtual QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)
Read block of data using given extent and size.
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
QString label(int idx) const
Return optional category label.
Base class for processing filters like renderers, reprojector, resampler etc.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Get symbology items if provided by renderer.
Feedback object tailored for raster block reading.
Raster renderer pipe that applies colors to a raster.