QGIS API Documentation  master-28efcda
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                : 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 #ifndef QGSCONTRASTENHANCEMENTFUNCTION_H
00020 #define QGSCONTRASTENHANCEMENTFUNCTION_H
00021 
00022 #include "qgis.h"
00023 #include "qgscontrastenhancement.h"
00024 
00031 class CORE_EXPORT QgsContrastEnhancementFunction
00032 {
00033 
00034   public:
00035     QgsContrastEnhancementFunction( QGis::DataType, double, double );
00036     QgsContrastEnhancementFunction( const QgsContrastEnhancementFunction& f );
00037     virtual ~QgsContrastEnhancementFunction() {}
00038 
00040     virtual int enhance( double );
00041 
00043     virtual bool isValueInDisplayableRange( double );
00044 
00046     void setMaximumValue( double );
00047 
00049     void setMinimumValue( double );
00050 
00051   protected:
00053     double mMaximumValue;
00054 
00056     double mMinimumValue;
00057 
00059     double mMinimumMaximumRange;
00060 
00062     QGis::DataType mQgsRasterDataType;
00063 };
00064 
00065 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines