Subgroup: Double
Class: QgsDoubleRange¶
-
class
qgis.core.
QgsDoubleRange
¶ Bases:
sip.wrapper
A template based class for storing ranges (lower to upper values).
QgsRange classes represent a range of values of some element type. For instance, ranges of int might be used to represent integer ranges.
Ranges can indicate whether the upper and lower values are inclusive or exclusive. The inclusivity or exclusivity of bounds is considered when determining things like whether ranges overlap or during calculation of range intersections.
New in version 3.0.
See also
See also
Note
not available in Python bindings (but class provided for template-based inheritance)Methods
contains
Returns true if this range contains another range. includeLower
Returns true if the lower bound is inclusive, or false if the lower bound is exclusive. includeUpper
Returns true if the upper bound is inclusive, or false if the upper bound is exclusive. isEmpty
Returns true if the range is empty, ie the lower bound equals (or exceeds) the upper bound and either the bounds are exclusive. isSingleton
Returns true if the range consists only of a single value or instant. lower
Returns the lower bound of the range. overlaps
Returns true if this range overlaps another range. upper
Returns the upper bound of the range. Attributes
-
contains
(self, other: QgsDoubleRange) → bool¶ Returns true if this range contains another range.
See also
contains(self, element: float) -> bool Returns true if this range contains a specified
element
.
-
includeLower
(self) → bool¶ Returns true if the lower bound is inclusive, or false if the lower bound is exclusive.
See also
See also
-
includeUpper
(self) → bool¶ Returns true if the upper bound is inclusive, or false if the upper bound is exclusive.
See also
See also
-
isEmpty
(self) → bool¶ Returns true if the range is empty, ie the lower bound equals (or exceeds) the upper bound and either the bounds are exclusive.
See also
-
isSingleton
(self) → bool¶ Returns true if the range consists only of a single value or instant.
See also
-
lower
(self) → float¶ Returns the lower bound of the range.
See also
See also
-
overlaps
(self, other: QgsDoubleRange) → bool¶ Returns true if this range overlaps another range.
See also
-
upper
(self) → float¶ Returns the upper bound of the range.
See also
See also
-