QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSRASTERCONTOURRENDERER_H
17 #define QGSRASTERCONTOURRENDERER_H
47 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
101 std::unique_ptr<QgsLineSymbol> mContourSymbol;
102 std::unique_ptr<QgsLineSymbol> mContourIndexSymbol;
103 double mDownscale = 8.;
104 double mContourInterval = 100.;
105 double mContourIndexInterval = 0.;
110 #endif // QGSRASTERCONTOURRENDERER_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.
void setInputBand(int band)
Sets the number of the input raster band.
void setDownscale(double scale)
Sets by how much the renderer will scale down the request to the data provider.
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
QgsLineSymbol * contourSymbol() const
Returns the symbol used for contour lines.
double contourInterval() const
Returns the interval of contour lines generation.
void setContourIndexInterval(double interval)
Sets the interval of index contour lines (index contour lines are typical further apart and with a wi...
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
int inputBand() const
Returns the number of the input raster band.
QgsLineSymbol * contourIndexSymbol() const
Returns the symbol of index contour lines.
void setContourInterval(double interval)
Sets the interval of contour lines generation.
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
double downscale() const
Returns by how much the renderer will scale down the request to the data provider.
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
double contourIndexInterval() const
Returns the interval of index contour lines (index contour lines are typical further apart and with a...