mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04: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;
|
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 value value
|
||||||
* \param rangeList list of ranges
|
* \param rangeList list of ranges
|
||||||
* \returns true if value is in at least one 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:
|
private:
|
||||||
double mMin = std::numeric_limits<double>::quiet_NaN();
|
double mMin = std::numeric_limits<double>::quiet_NaN();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user