Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
24 
28 class CORE_EXPORT QgsRasterShader
29 {
30 
31  public:
32  QgsRasterShader( double theMinimumValue = 0.0, double theMaximumValue = 255.0 );
33  ~QgsRasterShader();
34 
35  /*
36  *
37  * Non-Static Inline methods
38  *
39  */
41  double maximumValue() { return mMaximumValue; }
42 
44  double minimumValue() { return mMinimumValue; }
45 
46  QgsRasterShaderFunction* rasterShaderFunction() { return mRasterShaderFunction; }
47 
48  /*
49  *
50  * Non-Static methods
51  *
52  */
54  bool shade( double, int*, int*, int* );
55 
57  bool shade( double, double, double, int*, int*, int* );
58 
61  void setRasterShaderFunction( QgsRasterShaderFunction* );
62 
64  void setMaximumValue( double );
65 
67  void setMinimumValue( double );
68 
69  private:
71  double mMinimumValue;
72 
74  double mMaximumValue;
75 
78 };
79 #endif