QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
raster
qgsrastershader.h
Go to the documentation of this file.
1
/* **************************************************************************
2
qgsrastershader.h - description
3
-------------------
4
begin : Fri Dec 28 2007
5
copyright : (C) 2007 by Peter J. Ersts
6
email : ersts@amnh.org
7
8
****************************************************************************/
9
10
/* **************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
20
#ifndef QGSRASTERSHADER_H
21
#define QGSRASTERSHADER_H
22
23
#include "qgis_core.h"
24
#include "
qgis_sip.h
"
25
#include "
qgsreadwritecontext.h
"
26
27
class
QDomDocument;
28
class
QDomElement;
29
class
QgsRasterShaderFunction
;
30
35
class
CORE_EXPORT
QgsRasterShader
36
{
37
38
public
:
39
QgsRasterShader
(
double
minimumValue = 0.0,
double
maximumValue = 255.0 );
40
42
QgsRasterShader
(
const
QgsRasterShader
&rh ) =
delete
;
44
QgsRasterShader
&
operator=
(
const
QgsRasterShader
&rh ) =
delete
;
45
46
/*
47
*
48
* Non-Static Inline methods
49
*
50
*/
51
57
double
maximumValue
()
const
{
return
mMaximumValue; }
58
64
double
minimumValue
()
const
{
return
mMinimumValue; }
65
66
QgsRasterShaderFunction
*
rasterShaderFunction
() {
return
mRasterShaderFunction.get(); }
67
const
QgsRasterShaderFunction
*
rasterShaderFunction
()
const
{
return
mRasterShaderFunction.get(); }
SIP_SKIP
68
69
/*
70
*
71
* Non-Static methods
72
*
73
*/
74
85
bool
shade(
double
value,
86
int
*returnRedValue
SIP_OUT
,
87
int
*returnGreenValue
SIP_OUT
,
88
int
*returnBlueValue
SIP_OUT
,
89
int
*returnAlpha
SIP_OUT
);
90
103
bool
shade(
double
redValue,
104
double
greenValue,
105
double
blueValue,
106
double
alphaValue,
107
int
*returnRedValue
SIP_OUT
,
108
int
*returnGreenValue
SIP_OUT
,
109
int
*returnBlueValue
SIP_OUT
,
110
int
*returnAlpha
SIP_OUT
);
111
116
void
setRasterShaderFunction(
QgsRasterShaderFunction
*
function
SIP_TRANSFER
);
117
123
void
setMaximumValue(
double
value );
124
130
void
setMinimumValue(
double
value );
131
135
void
writeXml( QDomDocument &doc, QDomElement &parent,
const
QgsReadWriteContext
&context =
QgsReadWriteContext
() )
const
;
136
140
void
readXml(
const
QDomElement &elem,
const
QgsReadWriteContext
&context =
QgsReadWriteContext
() );
141
142
private
:
143
#ifdef SIP_RUN
144
QgsRasterShader
(
const
QgsRasterShader
&rh );
145
#endif
146
148
double
mMinimumValue;
149
151
double
mMaximumValue;
152
154
std::unique_ptr< QgsRasterShaderFunction > mRasterShaderFunction;
155
156
};
157
#endif
QgsRasterShaderFunction
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
Definition:
qgsrastershaderfunction.h:35
QgsRasterShader
Interface for all raster shaders.
Definition:
qgsrastershader.h:36
QgsRasterShader::maximumValue
double maximumValue() const
Returns the maximum value for the raster shader.
Definition:
qgsrastershader.h:57
QgsRasterShader::rasterShaderFunction
const QgsRasterShaderFunction * rasterShaderFunction() const
Definition:
qgsrastershader.h:67
QgsRasterShader::rasterShaderFunction
QgsRasterShaderFunction * rasterShaderFunction()
Definition:
qgsrastershader.h:66
QgsRasterShader::QgsRasterShader
QgsRasterShader(const QgsRasterShader &rh)=delete
QgsRasterShader cannot be copied.
QgsRasterShader::operator=
QgsRasterShader & operator=(const QgsRasterShader &rh)=delete
QgsRasterShader cannot be copied.
QgsRasterShader::minimumValue
double minimumValue() const
Returns the minimum value for the raster shader.
Definition:
qgsrastershader.h:64
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition:
qgsreadwritecontext.h:35
qgis_sip.h
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:126
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
SIP_OUT
#define SIP_OUT
Definition:
qgis_sip.h:58
qgsreadwritecontext.h
Generated on Thu Feb 24 2022 10:41:09 for QGIS API Documentation by
1.9.1