Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
core
raster
qgsrastershaderfunction.cpp
Go to the documentation of this file.
1
/* **************************************************************************
2
qgsrastershaderfunction.cpp - 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
#include "
qgslogger.h
"
19
20
#include "
qgsrastershaderfunction.h
"
21
22
QgsRasterShaderFunction::QgsRasterShaderFunction
(
double
theMinimumValue,
double
theMaximumValue )
23
{
24
QgsDebugMsg
(
"entered."
);
25
26
mMinimumValue
= theMinimumValue;
27
mMaximumValue
= theMaximumValue;
28
mMinimumMaximumRange
=
mMaximumValue
-
mMinimumValue
;
29
}
30
36
void
QgsRasterShaderFunction::setMaximumValue
(
double
theValue )
37
{
38
QgsDebugMsg
(
"value = "
+ QString::number( theValue ) );
39
40
mMaximumValue
= theValue;
41
mMinimumMaximumRange
=
mMaximumValue
-
mMinimumValue
;
42
}
43
49
void
QgsRasterShaderFunction::setMinimumValue
(
double
theValue )
50
{
51
QgsDebugMsg
(
"value = "
+ QString::number( theValue ) );
52
53
mMinimumValue
= theValue;
54
mMinimumMaximumRange
=
mMaximumValue
-
mMinimumValue
;
55
}
56
66
bool
QgsRasterShaderFunction::shade
(
double
theValue,
int
* theReturnRedValue,
int
* theReturnGreenValue,
int
* theReturnBlueValue )
67
{
68
*theReturnRedValue = 0;
69
*theReturnGreenValue = 0;
70
*theReturnBlueValue = 0;
71
72
return
false
;
73
}
74
87
bool
QgsRasterShaderFunction::shade
(
double
theRedValue,
double
theGreenValue,
double
theBlueValue,
int
* theReturnRedValue,
int
* theReturnGreenValue,
int
* theReturnBlueValue )
88
{
89
*theReturnRedValue = 0;
90
*theReturnGreenValue = 0;
91
*theReturnBlueValue = 0;
92
93
return
false
;
94
}
Generated on Thu Sep 19 2013 17:30:55 for Quantum GIS API Documentation by
1.8.4