Quantum GIS API Documentation  1.8
src/core/raster/qgspseudocolorshader.h
Go to the documentation of this file.
00001 /* **************************************************************************
00002                 qgspseudocolorshader.h -  description
00003                        -------------------
00004 begin                : Fri Dec 28 2007
00005 copyright            : (C) 2007 by Peter J. Ersts
00006 email                : ersts@amnh.org
00007 
00008 This class contains code that was originally part of the larger QgsRasterLayer
00009 class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
00010 ****************************************************************************/
00011 
00012 /* **************************************************************************
00013  *                                                                         *
00014  *   This program is free software; you can redistribute it and/or modify  *
00015  *   it under the terms of the GNU General Public License as published by  *
00016  *   the Free Software Foundation; either version 2 of the License, or     *
00017  *   (at your option) any later version.                                   *
00018  *                                                                         *
00019  ***************************************************************************/
00020 
00021 #ifndef QGSPSEUDOCOLORSHADER_H
00022 #define QGSPSEUDOCOLORSHADER_H
00023 
00024 #include "qgsrastershaderfunction.h"
00025 
00029 class CORE_EXPORT QgsPseudoColorShader : public QgsRasterShaderFunction
00030 {
00031 
00032   public:
00033     QgsPseudoColorShader( double theMinimumValue = 0.0, double theMaximumValue = 255.0 );
00034 
00036     bool shade( double, int*, int*, int* );
00037 
00039     bool shade( double, double, double, int*, int*, int* );
00040 
00042     void setMaximumValue( double );
00043 
00045     void setMinimumValue( double );
00046 
00047     double classBreakMin1() const { return mClassBreakMin1; }
00048     double classBreakMax1() const { return mClassBreakMax1; }
00049     double classBreakMin2() const { return mClassBreakMin2; }
00050     double classBreakMax2() const { return mClassBreakMax2; }
00051     double classBreakMin3() const { return mClassBreakMin3; }
00052 
00053   private:
00054     void setClassBreaks();
00055 
00056     double mBreakSize;
00057     double mClassBreakMin1;
00058     double mClassBreakMax1;
00059     double mClassBreakMin2;
00060     double mClassBreakMax2;
00061     double mClassBreakMin3;
00062 };
00063 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines