Quantum GIS API Documentation
1.7.4
|
00001 /* ************************************************************************** 00002 qgsrastershaderfunction.h - description 00003 ------------------- 00004 begin : Fri Dec 28 2007 00005 copyright : (C) 2007 by Peter J. Ersts 00006 email : ersts@amnh.org 00007 00008 ****************************************************************************/ 00009 00010 /* ************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 00020 #ifndef QGSRASTERSHADERFUNCTION_H 00021 #define QGSRASTERSHADERFUNCTION_H 00022 00027 class CORE_EXPORT QgsRasterShaderFunction 00028 { 00029 00030 public: 00031 QgsRasterShaderFunction( double theMinimumValue = 0.0, double theMaximumValue = 255.0 ); 00032 virtual ~QgsRasterShaderFunction() {} 00033 00035 virtual void setMaximumValue( double ); 00036 00038 virtual void setMinimumValue( double ); 00039 00041 virtual bool shade( double, int*, int*, int* ); 00042 00044 virtual bool shade( double, double, double, int*, int*, int* ); 00045 00046 protected: 00048 double mMaximumValue; 00049 00051 double mMinimumValue; 00052 00054 double mMinimumMaximumRange; 00055 }; 00056 #endif