|
| | MapExtent ()=default |
| | Constructs a default (null) extent.
|
| |
| | MapExtent (double xMin, double yMin, double xMax, double yMax) |
| | Constructs an extent from explicit coordinates.
|
| |
| | MapExtent (const QRectF &rect) |
| | Constructs an extent from a QRectF (x-left, y-bottom, width, height).
|
| |
| double | xMin () const |
| |
| double | yMin () const |
| |
| double | xMax () const |
| |
| double | yMax () const |
| |
| double | width () const |
| |
| double | height () const |
| |
| double | centerX () const |
| |
| double | centerY () const |
| |
| bool | isValid () const |
| | Returns true when all coordinates are finite and xMin < xMax and yMin < yMax.
|
| |
| bool | isNull () const |
| | Returns true when this extent is equal to a default-constructed one.
|
| |
| QRectF | toRectF () const |
| | Returns a QRectF(xMin, yMin, width, height) representation.
|
| |
| QString | toString () const |
| | Returns a human-readable "[xMin, yMin] — [xMax, yMax]" string.
|
| |
| void | setXMin (double v) |
| |
| void | setYMin (double v) |
| |
| void | setXMax (double v) |
| |
| void | setYMax (double v) |
| |
| void | expandToInclude (double x, double y) |
| | Expands this extent to include the point (x, y).
|
| |
| void | expandToInclude (const MapExtent &other) |
| | Expands this extent to include all of other.
|
| |
| void | growByFactor (double factor) |
| | Grows the extent by factor on all sides (relative to centre).
|
| |
| MapExtent | scaled (double factor) const |
| | Returns a new extent scaled by factor around the centre point.
|
| |
| MapExtent | panned (double dx, double dy) const |
| | Returns a new extent panned by the given delta values.
|
| |
| MapExtent | intersected (const MapExtent &other) const |
| | Returns the intersection of this extent and other. Returns a null extent if they do not overlap.
|
| |
| MapExtent | united (const MapExtent &other) const |
| | Returns an extent that exactly contains both this and other.
|
| |
| bool | contains (double x, double y) const |
| | Returns true when this extent contains the given point.
|
| |
| bool | contains (const MapExtent &other) const |
| | Returns true when this extent fully contains other.
|
| |
| bool | intersects (const MapExtent &other) const |
| | Returns true when this extent intersects (overlaps) other.
|
| |
| bool | operator== (const MapExtent &other) const |
| |
| bool | operator!= (const MapExtent &other) const |
| |
An axis-aligned bounding box in the coordinate space of a given CRS.
Stores the geographic or projected envelope used by the MapCanvas to define the visible area and by layers to report their spatial extent. All coordinate values are in the units of the associated CRS.