16#ifndef QGSRASTERCONTOURRENDERER_H
17#define QGSRASTERCONTOURRENDERER_H
47 void writeXml( QDomDocument &doc, QDomElement &parentElem ) const override;
51 QList<
int> usesBands() const override;
57 int inputBand()
const {
return mInputBand; }
102 std::unique_ptr<QgsLineSymbol> mContourSymbol;
103 std::unique_ptr<QgsLineSymbol> mContourIndexSymbol;
104 double mDownscale = 8.;
105 double mContourInterval = 100.;
106 double mContourIndexInterval = 0.;
Layer tree node points to a map layer.
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
A line symbol type, for rendering LineString and MultiLineString geometries.
Feedback object tailored for raster block reading.
Raster renderer that generates contours on the fly for a source raster band.
void setDownscale(double scale)
Sets by how much the renderer will scale down the request to the data provider.
QgsLineSymbol * contourIndexSymbol() const
Returns the symbol of index contour lines.
void setContourInterval(double interval)
Sets the interval of contour lines generation.
QgsRasterContourRenderer(const QgsRasterContourRenderer &)=delete
QgsRasterContourRenderer cannot be copied. Use clone() instead.
~QgsRasterContourRenderer() override
double downscale() const
Returns by how much the renderer will scale down the request to the data provider.
void setContourIndexInterval(double interval)
Sets the interval of index contour lines (index contour lines are typical further apart and with a wi...
void setInputBand(int band)
Sets the number of the input raster band.
QgsLineSymbol * contourSymbol() const
Returns the symbol used for contour lines.
const QgsRasterContourRenderer & operator=(const QgsRasterContourRenderer &)=delete
QgsRasterContourRenderer cannot be copied. Use clone() instead.
double contourInterval() const
Returns the interval of contour lines generation.
double contourIndexInterval() const
Returns the interval of index contour lines (index contour lines are typical further apart and with a...
Base class for processing filters like renderers, reprojector, resampler etc.
Raster renderer pipe that applies colors to a raster.
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
A rectangle specified with double values.