00001 /* ************************************************************************** 00002 qgscliptominmaxenhancement.h - description 00003 ------------------- 00004 begin : Fri Nov 16 2007 00005 copyright : (C) 2007 by Peter J. Ersts 00006 email : [email protected] 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 #ifndef QGSCLIPTOMINMAXENHANCEMENT_H 00020 #define QGSCLIPTOMINMAXENHANCEMENT_H 00021 00022 #include "qgscontrastenhancementfunction.h" 00023 00030 class CORE_EXPORT QgsClipToMinMaxEnhancement : public QgsContrastEnhancementFunction 00031 { 00032 00033 public: 00034 QgsClipToMinMaxEnhancement( QgsContrastEnhancement::QgsRasterDataType, double, double ); 00035 00036 int enhance( double ); 00037 00038 bool isValueInDisplayableRange( double ); 00039 }; 00040 00041 #endif