QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
core
raster
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
31
class
CORE_EXPORT
QgsSingleBandColorDataRenderer
:
public
QgsRasterRenderer
32
{
33
public
:
34
QgsSingleBandColorDataRenderer
(
QgsRasterInterface
*input,
int
band );
35
37
QgsSingleBandColorDataRenderer
(
const
QgsSingleBandColorDataRenderer
& ) =
delete
;
39
const
QgsSingleBandColorDataRenderer
&
operator=
(
const
QgsSingleBandColorDataRenderer
& ) =
delete
;
40
41
QgsSingleBandColorDataRenderer
*
clone
()
const
override
SIP_FACTORY
;
42
43
static
QgsRasterRenderer
*create(
const
QDomElement &elem,
QgsRasterInterface
*input )
SIP_FACTORY
;
44
45
bool
setInput
(
QgsRasterInterface
*input )
override
;
46
47
QgsRasterBlock
*
block
(
int
bandNo,
const
QgsRectangle
&extent,
int
width,
int
height,
QgsRasterBlockFeedback
*feedback =
nullptr
)
override
SIP_FACTORY
;
48
49
void
writeXml
( QDomDocument &doc, QDomElement &parentElem )
const override
;
50
51
QList<int>
usesBands
()
const override
;
52
53
private
:
54
#ifdef SIP_RUN
55
QgsSingleBandColorDataRenderer
(
const
QgsSingleBandColorDataRenderer
& );
56
const
QgsSingleBandColorDataRenderer
&
operator=
(
const
QgsSingleBandColorDataRenderer
& );
57
#endif
58
int
mBand;
59
60
};
61
62
#endif // QGSSINGLEBANDCOLORDATARENDERER_H
QgsRasterRenderer::block
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.
QgsRasterInterface::writeXml
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Definition:
qgsrasterinterface.h:461
qgsrasterrenderer.h
QgsRasterRenderer::usesBands
virtual QList< int > usesBands() const
Returns a list of band numbers used by the renderer.
Definition:
qgsrasterrenderer.h:132
QgsRectangle
Definition:
qgsrectangle.h:41
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsRasterRenderer::setInput
bool setInput(QgsRasterInterface *input) override
Set input.
Definition:
qgsrasterrenderer.cpp:63
QgsSingleBandColorDataRenderer
Definition:
qgssinglebandcolordatarenderer.h:31
QgsRasterRenderer
Definition:
qgsrasterrenderer.h:38
qgis_sip.h
QgsRasterRenderer::clone
QgsRasterRenderer * clone() const override=0
Clone itself, create deep copy.
QgsRasterInterface
Definition:
qgsrasterinterface.h:116
QgsRasterBlockFeedback
Definition:
qgsrasterinterface.h:40
QgsRasterRenderer::operator=
const QgsRasterRenderer & operator=(const QgsRasterRenderer &)=delete
QgsRasterRenderer cannot be copied. Use clone() instead.
QgsRasterBlock
Definition:
qgsrasterblock.h:36
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17