Updraft
1.0
Open source glider flight visualisation tool.
|
Ellipsoid model of Earth It encapsulates (contains) osg::EllipsoidModel and capabilities of GeographicLib::Geodesic. More...
#include <ellipsoid.h>
Public Member Functions | |
Ellipsoid (const QString &name_, EllipsoidType type_) | |
virtual | ~Ellipsoid () |
QString | getName () const |
EllipsoidType | getType () const |
EllipsoidType | getEllipsoidType (const QString &typeName) |
qreal | getEquatRadius () const |
qreal | getPolarRadius () const |
qreal | getFlattening () const |
const osg::EllipsoidModel * | getOsgEllipsoidModel () const |
qreal | distance (const Location &l1, const Location &l2) const |
Counts the shortest distance between two geographical points. | |
qreal | distanceAzimuth (const Location &l1, const Location &l2, qreal *azimuth) const |
Counts the shortest distance and corresponding azimuths between two geographical points. | |
Static Public Member Functions | |
static QString | getEllipsoidTypeName (EllipsoidType type) |
static qreal | countFlattening (qreal rE, qreal rP) |
Counts flattening from equatorial radius and polar radius. | |
static qreal | countPolarRadius (qreal r, qreal f) |
Counts polar radius from equatorial radius and flattening. | |
Protected Attributes | |
EllipsoidType | type |
QString | name |
qreal | equatRadius |
qreal | flattening |
osg::EllipsoidModel * | osgEllipsoidModel |
Osg object representing this ellipsoid. | |
GeographicLib::Geodesic * | geodesic |
Object for counting geodesics (shortest paths) |
Ellipsoid model of Earth It encapsulates (contains) osg::EllipsoidModel and capabilities of GeographicLib::Geodesic.
Updraft::Util::Ellipsoid::Ellipsoid | ( | const QString & | name_, |
EllipsoidType | type_ | ||
) |
Updraft::Util::Ellipsoid::~Ellipsoid | ( | ) | [virtual] |
qreal Updraft::Util::Ellipsoid::countFlattening | ( | qreal | rE, |
qreal | rP | ||
) | [static] |
Counts flattening from equatorial radius and polar radius.
rE | equatorial radius |
rP | polar radius |
qreal Updraft::Util::Ellipsoid::countPolarRadius | ( | qreal | r, |
qreal | f | ||
) | [static] |
Counts polar radius from equatorial radius and flattening.
r | equatorial radius |
f | flattening |
qreal Updraft::Util::Ellipsoid::distance | ( | const Location & | l1, |
const Location & | l2 | ||
) | const |
Counts the shortest distance between two geographical points.
l1 | first point of measured segment |
l2 | second point of measured segment |
qreal Updraft::Util::Ellipsoid::distanceAzimuth | ( | const Location & | l1, |
const Location & | l2, | ||
qreal * | azimuth | ||
) | const |
Counts the shortest distance and corresponding azimuths between two geographical points.
l1 | first point of measured segment |
l2 | second point of measured segment |
azimuth | [out] pointer to azimuth at l1. Can be NULL. |
EllipsoidType Updraft::Util::Ellipsoid::getEllipsoidType | ( | const QString & | typeName | ) |
QString Updraft::Util::Ellipsoid::getEllipsoidTypeName | ( | EllipsoidType | type | ) | [static] |
qreal Updraft::Util::Ellipsoid::getEquatRadius | ( | ) | const |
qreal Updraft::Util::Ellipsoid::getFlattening | ( | ) | const |
QString Updraft::Util::Ellipsoid::getName | ( | ) | const |
const osg::EllipsoidModel * Updraft::Util::Ellipsoid::getOsgEllipsoidModel | ( | ) | const |
qreal Updraft::Util::Ellipsoid::getPolarRadius | ( | ) | const |
qreal Updraft::Util::Ellipsoid::equatRadius [protected] |
qreal Updraft::Util::Ellipsoid::flattening [protected] |
Object for counting geodesics (shortest paths)
QString Updraft::Util::Ellipsoid::name [protected] |
osg::EllipsoidModel* Updraft::Util::Ellipsoid::osgEllipsoidModel [protected] |
Osg object representing this ellipsoid.
EllipsoidType Updraft::Util::Ellipsoid::type [protected] |