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) |
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 76 of file GeoDataLatLonAltBox.cpp.
Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox | ( | const GeoDataLatLonAltBox & | other | ) |
Definition at line 82 of file GeoDataLatLonAltBox.cpp.
Marble::GeoDataLatLonAltBox::GeoDataLatLonAltBox | ( | const GeoDataLatLonBox & | other, |
qreal | minAltitude, | ||
qreal | maxAltitude | ||
) |
Definition at line 88 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 103 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Definition at line 117 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 147 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 152 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Resets the bounding box to its uninitialised state (and thus contains nothing).
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 284 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 171 of file GeoDataLatLonAltBox.cpp.
bool Marble::GeoDataLatLonAltBox::contains | ( | const GeoDataLatLonAltBox & | other | ) | const |
Definition at line 183 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 216 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Check if this GeoDataLatLonAltBox intersects with the given one.
Definition at line 197 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 276 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 137 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 127 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 122 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 65 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Serialize the contents of the feature to stream
.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 292 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 166 of file GeoDataLatLonAltBox.cpp.
void Marble::GeoDataLatLonAltBox::setMaxAltitude | ( | const qreal | maxAltitude | ) |
Definition at line 142 of file GeoDataLatLonAltBox.cpp.
void Marble::GeoDataLatLonAltBox::setMinAltitude | ( | const qreal | minAltitude | ) |
Definition at line 132 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Creates a text string of the bounding box.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 255 of file GeoDataLatLonAltBox.cpp.
|
virtual |
Unserialize the contents of the feature from stream
.
Reimplemented from Marble::GeoDataLatLonBox.
Definition at line 300 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.