Marble
GeoDataLatLonBox.h
51 GeoDataLatLonBox(qreal north, qreal south, qreal east, qreal west, GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian);
93 void setRotation(const qreal rotation, GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian);
95 void boundaries(qreal &north, qreal &south, qreal &east, qreal &west, GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian) const;
96 void setBoundaries(qreal north, qreal south, qreal east, qreal west, GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian);
99 * @brief Changes the differences between the boundaries and the center by the given factor, keeping the center unchanged
116 static qreal width(qreal east, qreal west, GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian);
128 static qreal height(qreal north, qreal south, GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian);
178 * @return Returns the smallest bounding box that contains this LatLonBox rotated with its given angle.
206 static bool fuzzyCompare(const GeoDataLatLonBox &lhs, const GeoDataLatLonBox &rhs, const qreal factor = 0.01);
A class that defines a 2D bounding box for geographic data.
Definition GeoDataLatLonBox.h:45
void scale(qreal verticalFactor, qreal horizontalFactor) const
Changes the differences between the boundaries and the center by the given factor,...
Definition GeoDataLatLonBox.cpp:223
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:80
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:122
qreal height(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the height of the latitude interval.
Definition GeoDataLatLonBox.cpp:268
GeoDataLatLonBox united(const GeoDataLatLonBox &other) const
Returns the bounding LatLonBox of this box with the given one.
Definition GeoDataLatLonBox.cpp:453
const char * nodeType() const override
Provides type information for downcasting a GeoData.
Definition GeoDataLatLonBox.cpp:75
virtual bool isEmpty() const
Indicates whether the bounding box is not initialised (and contains nothing).
Definition GeoDataLatLonBox.cpp:752
GeoDataLatLonBox toCircumscribedRectangle() const
Definition GeoDataLatLonBox.cpp:511
static bool fuzzyCompare(const GeoDataLatLonBox &lhs, const GeoDataLatLonBox &rhs, const qreal factor=0.01)
Indicates whether two bounding boxes are roughly equal.
Definition GeoDataLatLonBox.cpp:757
qreal width(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the width of the longitude interval.
Definition GeoDataLatLonBox.cpp:246
virtual bool isNull() const
Indicates whether the bounding box only contains a single 2D point ("singularity").
Definition GeoDataLatLonBox.cpp:747
bool containsPole(Pole pole=AnyPole) const
Detect whether the bounding box contains one of the poles.
Definition GeoDataLatLonBox.cpp:305
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:143
void pack(QDataStream &stream) const override
Serialize the contents of the feature to stream.
Definition GeoDataLatLonBox.cpp:592
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:101
qreal rotation(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the rotation of the bounding box.
Definition GeoDataLatLonBox.cpp:177
bool crossesDateLine() const
Detect whether the bounding box crosses the IDL.
Definition GeoDataLatLonBox.cpp:284
void unpack(QDataStream &stream) override
Unserialize the contents of the feature from stream.
Definition GeoDataLatLonBox.cpp:599
GeoDataLatLonBox & operator|=(const GeoDataLatLonBox &other)
Unites this bounding box with the given one.
Definition GeoDataLatLonBox.cpp:586
static GeoDataLatLonBox fromLineString(const GeoDataLineString &lineString)
Create the smallest bounding box from a line string.
Definition GeoDataLatLonBox.cpp:606
virtual void clear()
Resets the bounding box to its uninitialised state (and thus contains nothing).
Definition GeoDataLatLonBox.cpp:815
virtual GeoDataCoordinates center() const
returns the center of this box
Definition GeoDataLatLonBox.cpp:294
A LineString that allows to store a contiguous set of line segments.
Definition GeoDataLineString.h:66
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.