QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
raster
qgspseudocolorshader.h
Go to the documentation of this file.
1
/* **************************************************************************
2
qgspseudocolorshader.h - description
3
-------------------
4
begin : Fri Dec 28 2007
5
copyright : (C) 2007 by Peter J. Ersts
6
email : ersts@amnh.org
7
8
This class contains code that was originally part of the larger QgsRasterLayer
9
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
10
****************************************************************************/
11
12
/* **************************************************************************
13
* *
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
18
* *
19
***************************************************************************/
20
21
#ifndef QGSPSEUDOCOLORSHADER_H
22
#define QGSPSEUDOCOLORSHADER_H
23
24
#include "
qgsrastershaderfunction.h
"
25
29
class
CORE_EXPORT
QgsPseudoColorShader
:
public
QgsRasterShaderFunction
30
{
31
32
public
:
33
QgsPseudoColorShader
(
double
theMinimumValue = 0.0,
double
theMaximumValue = 255.0 );
34
36
bool
shade
(
double
,
int
*,
int
*,
int
* );
37
39
bool
shade
(
double
,
double
,
double
,
int
*,
int
*,
int
* );
40
42
void
setMaximumValue
(
double
)
override
;
43
45
void
setMinimumValue
(
double
)
override
;
46
47
double
classBreakMin1
()
const
{
return
mClassBreakMin1; }
48
double
classBreakMax1
()
const
{
return
mClassBreakMax1; }
49
double
classBreakMin2
()
const
{
return
mClassBreakMin2; }
50
double
classBreakMax2
()
const
{
return
mClassBreakMax2; }
51
double
classBreakMin3
()
const
{
return
mClassBreakMin3; }
52
53
private
:
54
void
setClassBreaks();
55
56
double
mBreakSize;
57
double
mClassBreakMin1;
58
double
mClassBreakMax1;
59
double
mClassBreakMin2;
60
double
mClassBreakMax2;
61
double
mClassBreakMin3;
62
};
63
#endif
Generated on Sun May 10 2015 16:33:25 for QGIS API Documentation by
1.8.1.2