Raster values range container.
More...
#include <qgsrasterrange.h>
Raster values range container.
Represents range of values between min and max including min and max value.
Definition at line 35 of file qgsrasterrange.h.
◆ BoundsType
Handling for min and max bounds.
Enumerator |
---|
IncludeMinAndMax | Min and max values are inclusive.
|
IncludeMax | Include the max value, but not the min value, e.g. min < value <= max.
|
IncludeMin | Include the min value, but not the max value, e.g. min <= value < max.
|
Exclusive | Don't include either the min or max value, e.g. min < value < max.
|
Definition at line 40 of file qgsrasterrange.h.
◆ QgsRasterRange() [1/2]
QgsRasterRange::QgsRasterRange |
( |
| ) |
|
|
default |
Default constructor, both min and max value for the range will be set to NaN.
◆ QgsRasterRange() [2/2]
Constructor for a range with the given min and max values.
The bounds argument dictates how the min and max value themselves will be handled by the range.
Definition at line 20 of file qgsrasterrange.cpp.
◆ asText()
QString QgsRasterRange::asText |
( |
| ) |
const |
Returns a text representation of the range.
- Since
- QGIS 3.2
Definition at line 68 of file qgsrasterrange.cpp.
◆ bounds()
Returns the bounds type for the range, which specifies whether or not the min and max values themselves are included in the range.
- See also
- setBounds()
- Since
- QGIS 3.2
Definition at line 80 of file qgsrasterrange.h.
◆ contains() [1/2]
bool QgsRasterRange::contains |
( |
double |
value | ) |
const |
|
inline |
Returns true
if this range contains the specified value.
- Since
- QGIS 3.2
Definition at line 114 of file qgsrasterrange.h.
◆ contains() [2/2]
static bool QgsRasterRange::contains |
( |
double |
value, |
|
|
const QgsRasterRangeList & |
rangeList |
|
) |
| |
|
inlinestatic |
Tests if a value is within the list of ranges.
- Parameters
-
value | value |
rangeList | list of ranges |
- Returns
true
if value is in at least one of ranges
Definition at line 131 of file qgsrasterrange.h.
◆ max()
double QgsRasterRange::max |
( |
| ) |
const |
|
inline |
◆ min()
double QgsRasterRange::min |
( |
| ) |
const |
|
inline |
◆ operator==()
◆ overlaps()
Returns true
if this range overlaps another range.
- Since
- QGIS 3.2
Definition at line 27 of file qgsrasterrange.cpp.
◆ setBounds()
Sets the bounds type for the range, which specifies whether or not the min and max values themselves are included in the range.
- See also
- bounds()
- Since
- QGIS 3.2
Definition at line 101 of file qgsrasterrange.h.
◆ setMax()
double QgsRasterRange::setMax |
( |
double |
max | ) |
|
|
inline |
◆ setMin()
double QgsRasterRange::setMin |
( |
double |
min | ) |
|
|
inline |
The documentation for this class was generated from the following files: