2008-01-11 06:42:56 +00:00
|
|
|
|
|
|
|
class QgsRasterShader
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrastershader.h>
|
|
|
|
#include <qgsrastershaderfunction.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsRasterShader(double theMinimumValue=0.0, double theMaximumValue=255.0);
|
|
|
|
~QgsRasterShader();
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Non-Static Inline methods
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/** \brief Return the maximum value for the raster shader */
|
2008-11-01 18:36:02 +00:00
|
|
|
double maximumValue();
|
2008-01-11 06:42:56 +00:00
|
|
|
|
|
|
|
/** \brief Return the minimum value for the raster shader */
|
2008-11-01 18:36:02 +00:00
|
|
|
double minimumValue();
|
2008-01-11 06:42:56 +00:00
|
|
|
|
2008-11-01 18:36:02 +00:00
|
|
|
QgsRasterShaderFunction* rasterShaderFunction();
|
2008-01-11 06:42:56 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Non-Static methods
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/** \brief generates and new RGB value based on one input value */
|
2008-11-01 18:36:02 +00:00
|
|
|
bool shade(double, int*, int*, int*);
|
2008-01-11 06:42:56 +00:00
|
|
|
/** \brief generates and new RGB value based on original RGB value */
|
2008-11-01 18:36:02 +00:00
|
|
|
bool shade(double, double, double, int*, int*, int*);
|
2008-01-11 06:42:56 +00:00
|
|
|
/** \brief A public method that allows the user to set their own shader function */
|
|
|
|
void setRasterShaderFunction(QgsRasterShaderFunction*);
|
|
|
|
/** \brief Set the maximum value */
|
|
|
|
void setMaximumValue(double);
|
|
|
|
/** \brief Return the minimum value */
|
|
|
|
void setMinimumValue(double);
|
|
|
|
};
|