Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
25 
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 );
43 
45  void setMinimumValue( double );
46 
47  private:
48  void setClassBreaks();
49 
50  double mBreakSize;
56 };
57 #endif