VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtGeodeticCoord Class Reference

Instances of DtGeodeticCoord are used to explicitly represent Geodetic coordinates. More...

+ Inheritance diagram for DtGeodeticCoord:
+ Collaboration diagram for DtGeodeticCoord:

Public Member Functions

 DtGeodeticCoord (const DtReferenceEllipsoid *ellipse=DtGlobalEllipsoid())
 default constructor If no reference ellipse is specified, a global one will be used
 DtGeodeticCoord (double lat, double lon, double alt, const DtReferenceEllipsoid *ellipse=DtGlobalEllipsoid())
 constructor If no reference ellipse is specified, a global one will be used
virtual ~DtGeodeticCoord ()
 destructor
 DtGeodeticCoord (const DtGeodeticCoord &src)
 copy constructor
DtGeodeticCoordoperator= (const DtGeodeticCoord &src)
 assignment operator
virtual DtGeodeticCoordsetGeocentric (const DtVector &geocentric)
 Set from geocentric coordinate (convert geocentric to geodetic).
virtual void getGeocentric (DtVector &geocentric) const
 Get geocentric coordinate equivalent (convert geodetic to geocentric).
virtual DtVector geocentric () const
 Get geocentric coordinate equivalent (convert geodetic to geocentric).
virtual void printDataToStream (std::ostream &str) const
 prints out a formated string to the stream
virtual void setLat (DtFloat64 lat)
 Set/Get the latitude.
virtual DtFloat64 lat () const
virtual void setLon (DtFloat64 lon)
 Set/Get the longitude.
virtual DtFloat64 lon () const
virtual void setAlt (DtFloat64 alt)
 Set/Get the altitude.
virtual DtFloat64 alt () const
virtual const DtMapDatummapDatum () const
- Public Member Functions inherited from DtVector
 DtVector ()
 DtVector (const double &x, const double &y, const double &z)
 Construct from three doubles.
 ~DtVector ()
 destructor
 DtVector (const DtVector &vec)
 copy constructor
DtVectoroperator= (const DtVector &vec)
 assignment operator
void setToZero ()
 set Vector to all zeros
DtVectoroperator+= (const DtVector &other)
 adds other to this vector
DtVectoroperator-= (const DtVector &other)
 subtracts other from this vector (this - other)
double & operator[] (int ind)
 Get the value for the specified subscript. (int version)
double operator[] (int ind) const
 A const version to get the value for the specified subscript.
double & operator[] (DtVectorOffset ind)
 Get the value for the specified subscript. (enum version)
double operator[] (DtVectorOffset ind) const
 a const version to get the value for the specified subscript. (enum version)
int operator== (const DtVector &vec) const
 Get whether another vector equals this vector.
int operator!= (const DtVector &vec) const
 Get whether another vector does not equal this vector.
DtString string () const
 Get a string representation of the vector.
double magnitudeSquared () const
 Get the magnitude of the vector squared, i.e.
void normalize ()
 Normalize the vector; i.e., magnitude = 1.
bool isNormalized () const
 Returns true of the vector is Normalized.
DtVector crossProduct (const DtVector &v) const
 Compute cross product with another vector.
double dotProduct (const DtVector &v) const
 Compute dot product with another vector.
bool approxEq (const DtVector &v, const double &tolerance) const
 check if the vector is zero-ed out withing the tolerance passed
bool magnitudeIsZero () const
 check if the magnitude of this vector is zero
bool magnitudeIsZero (double tolerance) const
 check if the magnitude of this vector is zero, within the tolerance passed.
const double & x () const
 gets/sets the x component of a Vector
void setX (const double &x)
 gets/sets the x component of a Vector
const double & y () const
 gets/sets the y component of a Vector
void setY (const double &y)
 gets/sets the y component of a Vector
const double & z () const
 gets/sets the z component of a Vector
void setZ (const double &z)
 gets/sets the z component of a Vector
 operator double * ()
 operator const double * () const

Protected Attributes

const DtReferenceEllipsoidmyEllipsoid
- Protected Attributes inherited from DtVector
double myRep [3]

Additional Inherited Members

- Static Public Member Functions inherited from DtVector
static const DtVectorzero ()
 Get a zeroed vector.
static const DtVectori ()
 Get a (1,0,0) vector.
static const DtVectorj ()
 Get a (0,1,0) vector.
static const DtVectork ()
 Get a (0,0,1) vector.
static const DtVectorones ()
 Get a vector set to all ones.

Detailed Description

Instances of DtGeodeticCoord are used to explicitly represent Geodetic coordinates.

Constructor & Destructor Documentation

DtGeodeticCoord::DtGeodeticCoord ( const DtReferenceEllipsoid ellipse = DtGlobalEllipsoid())

default constructor If no reference ellipse is specified, a global one will be used

DtGeodeticCoord::DtGeodeticCoord ( double  lat,
double  lon,
double  alt,
const DtReferenceEllipsoid ellipse = DtGlobalEllipsoid() 
)

constructor If no reference ellipse is specified, a global one will be used

virtual DtGeodeticCoord::~DtGeodeticCoord ( )
virtual

destructor

DtGeodeticCoord::DtGeodeticCoord ( const DtGeodeticCoord src)

copy constructor

Member Function Documentation

DtFloat64 DtGeodeticCoord::alt ( ) const
inlinevirtual
virtual DtVector DtGeodeticCoord::geocentric ( ) const
virtual

Get geocentric coordinate equivalent (convert geodetic to geocentric).

Note that this is not returning a reference.

virtual void DtGeodeticCoord::getGeocentric ( DtVector geocentric) const
virtual

Get geocentric coordinate equivalent (convert geodetic to geocentric).

DtFloat64 DtGeodeticCoord::lat ( ) const
inlinevirtual
DtFloat64 DtGeodeticCoord::lon ( ) const
inlinevirtual
virtual const DtMapDatum& DtGeodeticCoord::mapDatum ( ) const
virtual
DtGeodeticCoord& DtGeodeticCoord::operator= ( const DtGeodeticCoord src)

assignment operator

virtual void DtGeodeticCoord::printDataToStream ( std::ostream &  str) const
virtual

prints out a formated string to the stream

Reimplemented from DtVector.

void DtGeodeticCoord::setAlt ( DtFloat64  alt)
inlinevirtual

Set/Get the altitude.

Specified in meters.

virtual DtGeodeticCoord& DtGeodeticCoord::setGeocentric ( const DtVector geocentric)
virtual

Set from geocentric coordinate (convert geocentric to geodetic).

Can also use assignment operator.

Referenced by DtGeocentricToMgFlatEarth().

void DtGeodeticCoord::setLat ( DtFloat64  lat)
inlinevirtual

Set/Get the latitude.

Specified in radians.

void DtGeodeticCoord::setLon ( DtFloat64  lon)
inlinevirtual

Set/Get the longitude.

Specified in radians.

Member Data Documentation

const DtReferenceEllipsoid* DtGeodeticCoord::myEllipsoid
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)