Skip to content
Permalink
Browse files

Add missing getters to QgsContrastEnhancementFunction

  • Loading branch information
nyalldawson committed May 26, 2018
1 parent 8f770c3 commit ff55cfc99d271ef2476d7f18e1ec89964bbf00c4
@@ -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:
@@ -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;

0 comments on commit ff55cfc

Please sign in to comment.
You can’t perform that action at this time.