Skip to content
Permalink
Browse files

Expose a method to Python

  • Loading branch information
nyalldawson committed Jun 7, 2018
1 parent 0ab6327 commit a2042a4aced11d033cdd96d26a7d04843f121ddc
Showing with 10 additions and 2 deletions.
  1. +9 −0 python/core/auto_generated/raster/qgsrasterrange.sip.in
  2. +1 −2 src/core/raster/qgsrasterrange.h
@@ -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();

0 comments on commit a2042a4

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