QGIS API Documentation  3.37.0-Master (a5b4d9743e8)
qgssinglebandcolordatarenderer.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssinglebandcolordatarenderer.h
3  --------------------------------
4  begin : January 2012
5  copyright : (C) 2012 by Marco Hugentobler
6  email : marco at sourcepole dot ch
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSSINGLEBANDCOLORDATARENDERER_H
19 #define QGSSINGLEBANDCOLORDATARENDERER_H
20 
21 #include "qgis_core.h"
22 #include "qgis_sip.h"
23 #include "qgsrasterrenderer.h"
24 
25 class QDomElement;
26 
32 {
33  public:
35 
40 
42  Qgis::RasterRendererFlags flags() const override;
43 
44  static QgsRasterRenderer *create( const QDomElement &elem, QgsRasterInterface *input ) SIP_FACTORY;
45 
46  bool setInput( QgsRasterInterface *input ) override;
47  int inputBand() const override;
48  bool setInputBand( int band ) override;
49 
50  QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback = nullptr ) override SIP_FACTORY;
51 
52  void writeXml( QDomDocument &doc, QDomElement &parentElem ) const override;
53 
54  QList<int> usesBands() const override;
55 
56  private:
57 #ifdef SIP_RUN
60 #endif
61  int mBand;
62 
63 };
64 
65 #endif // QGSSINGLEBANDCOLORDATARENDERER_H
The Qgis class provides global constants for use throughout the application.
Definition: qgis.h:54
Feedback object tailored for raster block reading.
Raster data container.
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.
Definition: qgsrectangle.h:42
Raster renderer pipe for single band color.
const QgsSingleBandColorDataRenderer & operator=(const QgsSingleBandColorDataRenderer &)=delete
QgsSingleBandColorDataRenderer cannot be copied. Use clone() instead.
QgsSingleBandColorDataRenderer(const QgsSingleBandColorDataRenderer &)=delete
QgsSingleBandColorDataRenderer cannot be copied. Use clone() instead.
#define SIP_FACTORY
Definition: qgis_sip.h:76