Quantum GIS API Documentation  1.8
src/core/raster/qgsrastershaderfunction.h
Go to the documentation of this file.
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     double minimumMaximumRange() const { return mMinimumMaximumRange; }
00047 
00048     double minimumValue() const { return mMinimumValue; }
00049     double maximumValue() const { return mMaximumValue; }
00050 
00051   protected:
00053     double mMaximumValue;
00054 
00056     double mMinimumValue;
00057 
00059     double mMinimumMaximumRange;
00060 };
00061 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines