QGIS/python/core/auto_generated/raster/qgscontrastenhancementfunction.sip.in

92 lines
2.5 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
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.
%End
2017-06-01 10:54:33 +02:00
%TypeHeaderCode
#include "qgscontrastenhancementfunction.h"
%End
public:
QgsContrastEnhancementFunction( Qgis::DataType, double, double );
2017-06-01 10:54:33 +02:00
QgsContrastEnhancementFunction( const QgsContrastEnhancementFunction &f );
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
void setMaximumValue( double value );
2017-06-01 10:54:33 +02:00
%Docstring
Sets the maximum ``value``.
.. seealso:: :py:func:`maximumValue`
.. seealso:: :py:func:`setMinimumValue`
2017-06-01 10:54:33 +02:00
%End
void setMinimumValue( double value );
2017-06-01 10:54:33 +02:00
%Docstring
Sets the minimum ``value``.
.. seealso:: :py:func:`minimumValue`
.. seealso:: :py:func:`setMaximumValue`
%End
double maximumValue() const;
%Docstring
Returns the maximum value.
.. seealso:: :py:func:`setMaximumValue`
.. 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:
};
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 *
************************************************************************/