Quantum GIS API Documentation  1.7.4
src/core/raster/qgscontrastenhancementfunction.h
Go to the documentation of this file.
00001 /* **************************************************************************
00002               qgscontrastenhancementfunction.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 QGSCONTRASTENHANCEMENTFUNCTION_H
00020 #define QGSCONTRASTENHANCEMENTFUNCTION_H
00021 
00022 #include "qgscontrastenhancement.h"
00023 
00030 class CORE_EXPORT QgsContrastEnhancementFunction
00031 {
00032 
00033   public:
00034     QgsContrastEnhancementFunction( QgsContrastEnhancement::QgsRasterDataType, double, double );
00035     virtual ~QgsContrastEnhancementFunction() {}
00036 
00038     virtual int enhance( double );
00039 
00041     virtual bool isValueInDisplayableRange( double );
00042 
00044     void setMaximumValue( double );
00045 
00047     void setMinimumValue( double );
00048 
00049   protected:
00051     double mMaximumValue;
00052 
00054     double mMinimumValue;
00055 
00057     double mMinimumMaximumRange;
00058 
00060     QgsContrastEnhancement::QgsRasterDataType mQgsRasterDataType;
00061 };
00062 
00063 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines