marble
#include <GeoDataLatLonAltBox.h>
Static Public Member Functions | |
static GeoDataLatLonAltBox | fromLineString (const GeoDataLineString &lineString) |
Static Public Member Functions inherited from Marble::GeoDataLatLonBox | |
static GeoDataLatLonBox | fromLineString (const GeoDataLineString &lineString) |
Friends | |
bool GEODATA_EXPORT | operator== (GeoDataLatLonAltBox const &lhs, GeoDataLatLonAltBox const &rhs) |
Additional Inherited Members | |
Protected Member Functions inherited from Marble::GeoDataObject | |
virtual bool | equals (const GeoDataObject &other) const |
Detailed Description
A class that defines a 3D bounding box for geographic data.
GeoDataLatLonAltBox is a 3D bounding box that describes a geographic area in terms of latitude, longitude and altitude.
The bounding box gets described by assigning the northern, southern, eastern and western boundary. So usually the value of the eastern boundary is bigger than the value of the western boundary. Only if the bounding box crosses the date line then the eastern boundary has got a smaller value than the western one.
Definition at line 49 of file GeoDataLatLonAltBox.h.
Constructor & Destructor Documentation
Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox | ( | ) |
Definition at line 75 of file GeoDataLatLonAltBox.cpp.
Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox | ( | const GeoDataLatLonAltBox & | other | ) |
Definition at line 81 of file GeoDataLatLonAltBox.cpp.
Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox | ( | const GeoDataLatLonBox & | other, |
qreal | minAltitude, | ||
qreal | maxAltitude | ||
) |
Definition at line 87 of file GeoDataLatLonAltBox.cpp.
|
explicit |
A LatLonAltBox with the data from a GeoDataCoordinate This way of creating a GeoDataLatLonAltBox sets the north and south values of this box to the Latitude value in the GeoDataCoordinate, resulting in a Box that has a 0 Area.
This is useful for building LatLonAltBoxes from GeoDataCoordinates.
Definition at line 102 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Definition at line 116 of file GeoDataLatLonAltBox.cpp.
Member Function Documentation
AltitudeMode Marble::GeoDataLatLonAltBox::altitudeMode | ( | ) | const |
Get the reference system for the altitude.
- Returns
- the point of reference which marks the origin for measuring the altitude.
Definition at line 146 of file GeoDataLatLonAltBox.cpp.
|
virtual |
returns the center of this box
- Returns
- a coordinate, body-center of the box
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 151 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Resets the bounding box to its uninitialised state (and thus contains nothing).
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 283 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 170 of file GeoDataLatLonAltBox.cpp.
bool Marble::GeoDataLatLonAltBox::contains | ( | const GeoDataLatLonAltBox & | other | ) | const |
Definition at line 182 of file GeoDataLatLonAltBox.cpp.
|
static |
Create the smallest bounding box from a line string.
- Returns
- the smallest bounding box that contains the linestring.
Definition at line 215 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Check if this GeoDataLatLonAltBox intersects with the given one.
Definition at line 196 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Indicates whether the bounding box only contains a single 2D point ("singularity").
- Returns
- Return value is true if the height and the width of the bounding box equal zero.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 275 of file GeoDataLatLonAltBox.cpp.
qreal Marble::GeoDataLatLonAltBox::maxAltitude | ( | ) | const |
Get the upper altitude boundary of the bounding box.
- Returns
- the height of the upper altitude boundary in meters.
Definition at line 136 of file GeoDataLatLonAltBox.cpp.
qreal Marble::GeoDataLatLonAltBox::minAltitude | ( | ) | const |
Get the lower altitude boundary of the bounding box.
- Returns
- the height of the lower altitude boundary in meters.
Definition at line 126 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 121 of file GeoDataLatLonAltBox.cpp.
GeoDataLatLonAltBox & Marble::GeoDataLatLonAltBox::operator= | ( | const GeoDataLatLonAltBox & | other | ) |
Definition at line 56 of file GeoDataLatLonAltBox.cpp.
GeoDataLatLonAltBox & Marble::GeoDataLatLonAltBox::operator= | ( | const GeoDataCoordinates & | other | ) |
Definition at line 64 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Serialize the contents of the feature to stream
.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 291 of file GeoDataLatLonAltBox.cpp.
uint Marble::GeoDataLatLonAltBox::qHash | ( | const GeoDataLatLonAltBox & | ) |
qHash, for using GeoDataLatLonAltBox in a QCache as Key
- Returns
- the hash of the GeoDataLatLonAltBox
void Marble::GeoDataLatLonAltBox::setAltitudeMode | ( | const AltitudeMode | altitudeMode | ) |
Definition at line 165 of file GeoDataLatLonAltBox.cpp.
void Marble::GeoDataLatLonAltBox::setMaxAltitude | ( | const qreal | maxAltitude | ) |
Definition at line 141 of file GeoDataLatLonAltBox.cpp.
void Marble::GeoDataLatLonAltBox::setMinAltitude | ( | const qreal | minAltitude | ) |
Definition at line 131 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Creates a text string of the bounding box.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 254 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Unserialize the contents of the feature from stream
.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 299 of file GeoDataLatLonAltBox.cpp.
Friends And Related Function Documentation
|
friend |
Definition at line 44 of file GeoDataLatLonAltBox.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.