18 #ifndef QGSPALETTEDRASTERRENDERER_H
19 #define QGSPALETTEDRASTERRENDERER_H
46 QColor* colors()
const;
51 QRgb* rgbArray()
const;
55 QString
label(
int idx )
const {
return mLabels.value( idx ); }
59 void setLabel(
int idx, QString label );
61 void writeXML( QDomDocument& doc, QDomElement& parentElem )
const;
77 #endif // QGSPALETTEDRASTERRENDERER_H
A rectangle specified with double values.
int mNColors
Number of colors.
QString label(int idx) const
Return optional category label.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
Renderer for paletted raster images.
QRgb * mColors
Color array.
QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
int nColors() const
Returns number of colors.
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Base class for processing filters like renderers, reprojector, resampler etc.
virtual void legendSymbologyItems(QList< QPair< QString, QColor > > &symbolItems) const
Get symbology items if provided by renderer.
QVector< QString > mLabels
Optional category labels, size of vector may be < mNColors.
Raster renderer pipe that applies colors to a raster.