marble/src
GeoDataPoint Class Reference
#include <GeoDataPoint.h>
Detailed Description
Definition at line 24 of file GeoDataPoint.h.
Public Types | |
| enum | Unit { Radian, Degree } |
| enum | Notation { Decimal, DMS } |
| typedef QVector< GeoDataPoint > | Vector |
Public Member Functions | |
| GeoDataPoint () | |
| GeoDataPoint (double _lon, double _lat, double alt=0, GeoDataPoint::Unit _unit=GeoDataPoint::Radian, int _detail=0) | |
| ~GeoDataPoint () | |
| double | altitude () const |
| void | setAltitude (const double altitude) |
| int | detail () const |
| void | geoCoordinates (double &lon, double &lat, GeoDataPoint::Unit unit=GeoDataPoint::Radian) const |
| const Quaternion & | quaternion () const |
| QString | toString (GeoDataPoint::Notation notation=GeoDataPoint::DMS) |
| bool | operator== (const GeoDataPoint &) const |
Member Typedef Documentation
| typedef QVector<GeoDataPoint> GeoDataPoint::Vector |
Definition at line 75 of file GeoDataPoint.h.
Member Enumeration Documentation
| enum GeoDataPoint::Unit |
enum used constructor to specify the units used
Internally we always use radian for mathematical convenience. However the Marble's interfaces to the outside should default to degrees.
Definition at line 33 of file GeoDataPoint.h.
enum used to specify the notation / numerical system
For degrees there exist two notations: "Decimal" (base-10) and the "Sexagesimal DMS" (base-60) which is traditionally used in cartography. Decimal notation uses floating point numbers to specify parts of a degree. The Sexagesimal DMS notation uses integer based Degrees-(Arc)Minutes-(Arc)Seconds to describe parts of a degree.
Definition at line 44 of file GeoDataPoint.h.
Constructor & Destructor Documentation
| GeoDataPoint::GeoDataPoint | ( | ) | [inline] |
Definition at line 46 of file GeoDataPoint.h.
| GeoDataPoint::GeoDataPoint | ( | double | _lon, | |
| double | _lat, | |||
| double | alt = 0, |
|||
| GeoDataPoint::Unit | _unit = GeoDataPoint::Radian, |
|||
| int | _detail = 0 | |||
| ) |
create a geopoint from longitude and latitude
- Parameters:
-
_lon longitude _lat latitude _unit units that lon and lat get measured in (default for Radian: north pole at -pi/2, southpole at pi/2)
Definition at line 23 of file GeoDataPoint.cpp.
| GeoDataPoint::~GeoDataPoint | ( | ) | [inline] |
Definition at line 58 of file GeoDataPoint.h.
Member Function Documentation
| double GeoDataPoint::altitude | ( | ) | const [inline] |
Definition at line 60 of file GeoDataPoint.h.
| void GeoDataPoint::setAltitude | ( | const double | altitude | ) |
Definition at line 41 of file GeoDataPoint.cpp.
| int GeoDataPoint::detail | ( | ) | const [inline] |
Definition at line 63 of file GeoDataPoint.h.
| void GeoDataPoint::geoCoordinates | ( | double & | lon, | |
| double & | lat, | |||
| GeoDataPoint::Unit | unit = GeoDataPoint::Radian | |||
| ) | const |
Definition at line 46 of file GeoDataPoint.cpp.
| const Quaternion& GeoDataPoint::quaternion | ( | ) | const [inline] |
Definition at line 69 of file GeoDataPoint.h.
| QString GeoDataPoint::toString | ( | GeoDataPoint::Notation | notation = GeoDataPoint::DMS |
) |
Definition at line 62 of file GeoDataPoint.cpp.
| bool GeoDataPoint::operator== | ( | const GeoDataPoint & | test | ) | const |
Definition at line 96 of file GeoDataPoint.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference