Expose a method to Python

This commit is contained in:
Nyall Dawson 2018-06-07 10:23:18 +10:00
parent 0ab63274f6
commit a2042a4ace
2 changed files with 10 additions and 2 deletions

View File

@ -64,6 +64,15 @@ Sets the maximum value for the range.
bool operator==( QgsRasterRange o ) const;
static bool contains( double value, const QgsRasterRangeList &rangeList );
%Docstring
Tests if a ``value`` is within the list of ranges
:param value: value
:param rangeList: list of ranges
:return: true if value is in at least one of ranges
%End
};

View File

@ -80,9 +80,8 @@ class CORE_EXPORT QgsRasterRange
* \param value value
* \param rangeList list of ranges
* \returns true if value is in at least one of ranges
* \note not available in Python bindings
*/
static bool contains( double value, const QgsRasterRangeList &rangeList ) SIP_SKIP;
static bool contains( double value, const QgsRasterRangeList &rangeList );
private:
double mMin = std::numeric_limits<double>::quiet_NaN();