2017-06-01 10:54:33 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgscontrastenhancementfunction.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
class QgsContrastEnhancementFunction
|
|
|
|
{
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A contrast enhancement function is the base class for all raster contrast enhancements.
|
2017-06-01 10:54:33 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
The purpose of a contrast enhancement is to enhanceContrast or clip a pixel value into
|
|
|
|
a specified bounding range.
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-06-01 10:54:33 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgscontrastenhancementfunction.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2016-07-21 22:01:38 +10:00
|
|
|
QgsContrastEnhancementFunction( Qgis::DataType, double, double );
|
2017-06-01 10:54:33 +02:00
|
|
|
QgsContrastEnhancementFunction( const QgsContrastEnhancementFunction &f );
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual ~QgsContrastEnhancementFunction();
|
|
|
|
|
2014-01-27 09:22:24 +01:00
|
|
|
virtual int enhance( double );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
|
|
|
A customizable method that takes in a double and returns a int between 0 and 255
|
|
|
|
%End
|
2014-01-27 09:22:24 +01:00
|
|
|
|
|
|
|
virtual bool isValueInDisplayableRange( double );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
|
|
|
A customicable method to indicate if the pixels is displayable
|
|
|
|
%End
|
2014-01-27 09:22:24 +01:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setMaximumValue( double );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
|
|
|
Mustator for the maximum value
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void setMinimumValue( double );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
|
|
|
Mutator for the minimum value
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
|
|
|
|
2017-06-01 10:54:33 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgscontrastenhancementfunction.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|