1
/* **************************************************************************
2
qgsfreakoutshader.h - description
4
begin : Fri Dec 28 2007
5
copyright : (C) 2007 by Peter J. Ersts
8
This class contains code that was originally part of the larger QgsRasterLayer
9
class originally created circa 2004 by T.Sutton, Gary E.Sherman, Steve Halasz
10
****************************************************************************/
12
/* **************************************************************************
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
19
***************************************************************************/
21
#ifndef QGSFREAKOUTSHADER_H
22
#define QGSFREAKOUTSHADER_H
24
#include "qgsrastershaderfunction.h"
27
* A colorful false color shader that will frighten your granny and make your dogs howl.
29
class CORE_EXPORT QgsFreakOutShader : public QgsRasterShaderFunction
33
QgsFreakOutShader( double theMinimumValue = 0.0, double theMaximumValue = 255.0 );
35
/** \brief generates and new RGB value based on one input value */
36
bool shade( double, int*, int*, int* );
38
/** \brief generates and new RGB value based on original RGB value */
39
bool shade( double, double, double, int*, int*, int* );
41
/** \brief Set the maximum value */
42
void setMaximumValue( double );
44
/** \brief Return the minimum value */
45
void setMinimumValue( double );
48
void setClassBreaks();
51
double mClassBreakMin1;
52
double mClassBreakMax1;
53
double mClassBreakMin2;
54
double mClassBreakMax2;
55
double mClassBreakMin3;