Skip to content

Commit ff55cfc

Browse files
committed
Add missing getters to QgsContrastEnhancementFunction
1 parent 8f770c3 commit ff55cfc

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

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

+26
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,40 @@ a specified bounding range.
4040
%Docstring
4141
Sets the maximum ``value``.
4242

43+
.. seealso:: :py:func:`maximumValue`
44+
4345
.. seealso:: :py:func:`setMinimumValue`
4446
%End
4547

4648
void setMinimumValue( double value );
4749
%Docstring
4850
Sets the minimum ``value``.
4951

52+
.. seealso:: :py:func:`minimumValue`
53+
54+
.. seealso:: :py:func:`setMaximumValue`
55+
%End
56+
57+
double maximumValue() const;
58+
%Docstring
59+
Returns the maximum value.
60+
5061
.. seealso:: :py:func:`setMaximumValue`
62+
63+
.. seealso:: :py:func:`minimumValue`
64+
65+
.. versionadded:: 3.2
66+
%End
67+
68+
double minimumValue() const;
69+
%Docstring
70+
Returns the minimum value.
71+
72+
.. seealso:: :py:func:`setMinimumValue`
73+
74+
.. seealso:: :py:func:`maximumValue`
75+
76+
.. versionadded:: 3.2
5177
%End
5278

5379
protected:

src/core/raster/qgscontrastenhancementfunction.h

+18
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,34 @@ class CORE_EXPORT QgsContrastEnhancementFunction
4545

4646
/**
4747
* Sets the maximum \a value.
48+
* \see maximumValue()
4849
* \see setMinimumValue()
4950
*/
5051
void setMaximumValue( double value );
5152

5253
/**
5354
* Sets the minimum \a value.
55+
* \see minimumValue()
5456
* \see setMaximumValue()
5557
*/
5658
void setMinimumValue( double value );
5759

60+
/**
61+
* Returns the maximum value.
62+
* \see setMaximumValue()
63+
* \see minimumValue()
64+
* \since QGIS 3.2
65+
*/
66+
double maximumValue() const { return mMaximumValue; }
67+
68+
/**
69+
* Returns the minimum value.
70+
* \see setMinimumValue()
71+
* \see maximumValue()
72+
* \since QGIS 3.2
73+
*/
74+
double minimumValue() const { return mMinimumValue; }
75+
5876
protected:
5977
//! \brief User defineable maximum value for the band, used for enhanceContrasting
6078
double mMaximumValue;

0 commit comments

Comments
 (0)