Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
qgscontrastenhancementfunction.cpp
Go to the documentation of this file.
1 /* **************************************************************************
2  qgscontrastenhancementfunction.cpp - description
3  -------------------
4 begin : Fri Nov 16 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 
20 
22 {
23  mQgsRasterDataType = theDataType;
24  mMaximumValue = theMaximumValue;
25  mMinimumValue = theMinimumValue;
27 }
28 
29 
31 {
33  {
34  return static_cast<int>( theValue );
35  }
36  else
37  {
39  }
40 }
41 
43 {
44  //A default check is to see if the provided value is with the range for the data type
46  {
47  return false;
48  }
49 
50  return true;
51 }
52 
54 {
56  {
58  }
59  else
60  {
61  mMaximumValue = theValue;
62  }
63 
65 }
66 
68 {
69 
71  {
73  }
74  else
75  {
76  mMinimumValue = theValue;
77  }
78 
80 }