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();
|
|
|
|
|
2018-05-26 14:35:20 +10:00
|
|
|
virtual int enhance( double value );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
2018-05-26 14:35:20 +10:00
|
|
|
A customizable method that takes in a double ``value`` and returns a int between 0 and 255.
|
2017-06-01 10:54:33 +02:00
|
|
|
%End
|
2014-01-27 09:22:24 +01:00
|
|
|
|
2018-05-26 14:35:20 +10:00
|
|
|
virtual bool isValueInDisplayableRange( double value );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
2018-05-26 14:35:20 +10:00
|
|
|
A customizable method to indicate if a pixel's value is within the displayable range.
|
2017-06-01 10:54:33 +02:00
|
|
|
%End
|
2014-01-27 09:22:24 +01:00
|
|
|
|
2018-05-26 14:25:21 +10:00
|
|
|
void setMaximumValue( double value );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
2018-05-26 14:25:21 +10:00
|
|
|
Sets the maximum ``value``.
|
|
|
|
|
2018-05-26 14:32:48 +10:00
|
|
|
.. seealso:: :py:func:`maximumValue`
|
|
|
|
|
2018-05-26 14:25:21 +10:00
|
|
|
.. seealso:: :py:func:`setMinimumValue`
|
2017-06-01 10:54:33 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2018-05-26 14:25:21 +10:00
|
|
|
void setMinimumValue( double value );
|
2017-06-01 10:54:33 +02:00
|
|
|
%Docstring
|
2018-05-26 14:25:21 +10:00
|
|
|
Sets the minimum ``value``.
|
|
|
|
|
2018-05-26 14:32:48 +10:00
|
|
|
.. seealso:: :py:func:`minimumValue`
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setMaximumValue`
|
|
|
|
%End
|
|
|
|
|
|
|
|
double maximumValue() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the maximum value.
|
|
|
|
|
2018-05-26 14:25:21 +10:00
|
|
|
.. seealso:: :py:func:`setMaximumValue`
|
2018-05-26 14:32:48 +10:00
|
|
|
|
|
|
|
.. seealso:: :py:func:`minimumValue`
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
double minimumValue() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the minimum value.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setMinimumValue`
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`maximumValue`
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
2017-06-01 10:54:33 +02:00
|
|
|
%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 *
|
|
|
|
************************************************************************/
|