Skip to content

Commit

Permalink
Add missing getters to QgsContrastEnhancementFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 26, 2018
1 parent 8f770c3 commit ff55cfc
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
Expand Up @@ -40,14 +40,40 @@ a specified bounding range.
%Docstring
Sets the maximum ``value``.

.. seealso:: :py:func:`maximumValue`

.. seealso:: :py:func:`setMinimumValue`
%End

void setMinimumValue( double value );
%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
%End

protected:
Expand Down
18 changes: 18 additions & 0 deletions src/core/raster/qgscontrastenhancementfunction.h
Expand Up @@ -45,16 +45,34 @@ class CORE_EXPORT QgsContrastEnhancementFunction

/**
* Sets the maximum \a value.
* \see maximumValue()
* \see setMinimumValue()
*/
void setMaximumValue( double value );

/**
* Sets the minimum \a value.
* \see minimumValue()
* \see setMaximumValue()
*/
void setMinimumValue( double value );

/**
* Returns the maximum value.
* \see setMaximumValue()
* \see minimumValue()
* \since QGIS 3.2
*/
double maximumValue() const { return mMaximumValue; }

/**
* Returns the minimum value.
* \see setMinimumValue()
* \see maximumValue()
* \since QGIS 3.2
*/
double minimumValue() const { return mMinimumValue; }

protected:
//! \brief User defineable maximum value for the band, used for enhanceContrasting
double mMaximumValue;
Expand Down

0 comments on commit ff55cfc

Please sign in to comment.