QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSRASTERCONTOURRENDERER_H
17 #define QGSRASTERCONTOURRENDERER_H
47 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
102 std::unique_ptr<QgsLineSymbol> mContourSymbol;
103 std::unique_ptr<QgsLineSymbol> mContourIndexSymbol;
104 double mDownscale = 8.;
105 double mContourInterval = 100.;
106 double mContourIndexInterval = 0.;
111 #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.
A rectangle specified with double values.
QgsLineSymbol * contourIndexSymbol() const
Returns the symbol of index contour lines.
void setContourInterval(double interval)
Sets the interval of contour lines generation.
Raster renderer pipe that applies colors to a raster.
Raster renderer that generates contours on the fly for a source raster band.
Layer tree node points to a map layer.
A line symbol type, for rendering LineString and MultiLineString geometries.
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.
Base class for processing filters like renderers, reprojector, resampler etc.
Feedback object tailored for raster block reading.
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...
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.