Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Util::Ellipsoid Class Reference

Ellipsoid model of Earth It encapsulates (contains) osg::EllipsoidModel and capabilities of GeographicLib::Geodesic. More...

#include <ellipsoid.h>

Collaboration diagram for Updraft::Util::Ellipsoid:

List of all members.

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::Geodesicgeodesic
 Object for counting geodesics (shortest paths)

Detailed Description

Ellipsoid model of Earth It encapsulates (contains) osg::EllipsoidModel and capabilities of GeographicLib::Geodesic.


Constructor & Destructor Documentation

Updraft::Util::Ellipsoid::Ellipsoid ( const QString &  name_,
EllipsoidType  type_ 
)

Member Function Documentation

qreal Updraft::Util::Ellipsoid::countFlattening ( qreal  rE,
qreal  rP 
) [static]

Counts flattening from equatorial radius and polar radius.

Parameters:
rEequatorial radius
rPpolar radius
qreal Updraft::Util::Ellipsoid::countPolarRadius ( qreal  r,
qreal  f 
) [static]

Counts polar radius from equatorial radius and flattening.

Parameters:
requatorial radius
fflattening
qreal Updraft::Util::Ellipsoid::distance ( const Location l1,
const Location l2 
) const

Counts the shortest distance between two geographical points.

Parameters:
l1first point of measured segment
l2second point of measured segment
Returns:
Distance in meters between l1 and l2.
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.

Parameters:
l1first point of measured segment
l2second point of measured segment
azimuth[out] pointer to azimuth at l1. Can be NULL.
Returns:
Distance in meters between l1 and l2.
Returns:
The ellipsoid type corresponding to the given name
Returns:
The ellipsoid type represented as a string
Returns:
Equatorial radius of ellipsoid
Returns:
Flattening of ellipsoid
Returns:
Name of ellipsoid
const osg::EllipsoidModel * Updraft::Util::Ellipsoid::getOsgEllipsoidModel ( ) const
Returns:
Polar radius of ellipsoid
Returns:
The type of this ellipsoid

Member Data Documentation

Object for counting geodesics (shortest paths)

QString Updraft::Util::Ellipsoid::name [protected]
osg::EllipsoidModel* Updraft::Util::Ellipsoid::osgEllipsoidModel [protected]

Osg object representing this ellipsoid.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines