2013-04-10 18:58:19 +02:00
|
|
|
typedef QList<QgsRasterRange> QgsRasterRangeList;
|
|
|
|
|
|
|
|
class QgsRasterRange
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasterrange.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2014-01-27 09:22:24 +01:00
|
|
|
/** \brief Constructor.
|
|
|
|
*/
|
2013-04-10 18:58:19 +02:00
|
|
|
QgsRasterRange();
|
2013-09-17 12:33:57 +02:00
|
|
|
|
2014-01-27 09:22:24 +01:00
|
|
|
/** \brief Constructor
|
|
|
|
* @param theMin minimum value
|
|
|
|
* @param theMax max value
|
|
|
|
*/
|
|
|
|
QgsRasterRange( double theMin, double theMax );
|
2013-09-17 12:33:57 +02:00
|
|
|
|
2013-04-10 18:58:19 +02:00
|
|
|
double min() const;
|
|
|
|
double max() const;
|
2013-09-17 12:33:57 +02:00
|
|
|
|
2013-04-10 18:58:19 +02:00
|
|
|
double setMin( double theMin );
|
|
|
|
double setMax( double theMax );
|
2013-09-17 12:33:57 +02:00
|
|
|
|
2016-02-02 19:46:18 +11:00
|
|
|
bool operator==( QgsRasterRange o ) const;
|
2013-04-10 18:58:19 +02:00
|
|
|
|
2014-01-27 09:22:24 +01:00
|
|
|
/** \brief Test if 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
|
|
|
|
* @note not available in python bindings
|
|
|
|
*/
|
|
|
|
static bool contains( double value, const QgsRasterRangeList &rangeList );
|
2013-04-10 18:58:19 +02:00
|
|
|
};
|