mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Expose a method to Python
This commit is contained in:
parent
0ab63274f6
commit
a2042a4ace
@ -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
|
||||
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user