Quantum GIS API Documentation
1.7.4
|
00001 /* ************************************************************************** 00002 qgsfreakoutshader.h - description 00003 ------------------- 00004 begin : Fri Dec 28 2007 00005 copyright : (C) 2007 by Peter J. Ersts 00006 email : ersts@amnh.org 00007 00008 This class contains code that was originally part of the larger QgsRasterLayer 00009 class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz 00010 ****************************************************************************/ 00011 00012 /* ************************************************************************** 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 ***************************************************************************/ 00020 00021 #ifndef QGSFREAKOUTSHADER_H 00022 #define QGSFREAKOUTSHADER_H 00023 00024 #include "qgsrastershaderfunction.h" 00025 00029 class CORE_EXPORT QgsFreakOutShader : public QgsRasterShaderFunction 00030 { 00031 00032 public: 00033 QgsFreakOutShader( double theMinimumValue = 0.0, double theMaximumValue = 255.0 ); 00034 00036 bool shade( double, int*, int*, int* ); 00037 00039 bool shade( double, double, double, int*, int*, int* ); 00040 00042 void setMaximumValue( double ); 00043 00045 void setMinimumValue( double ); 00046 00047 private: 00048 void setClassBreaks(); 00049 00050 double mBreakSize; 00051 double mClassBreakMin1; 00052 double mClassBreakMax1; 00053 double mClassBreakMin2; 00054 double mClassBreakMax2; 00055 double mClassBreakMin3; 00056 }; 00057 00058 #endif