MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches

Detailed Description

Vxworks defines a define called m_flags... This class represents a single coordinate.

It allows changes to the coordinate, through its latitude, longitude and altitude, as well as provides relational operators for coordinates.

Deprecated
Deprecated as of MapLink 11.1. Advised to use MapLink Earth SDK instead.

Public Member Functions

 TSL3DCoord ()
 
 TSL3DCoord (Double lat, Double lon, Double alt, TSL3DAltitudeType altType=TSL3DAltitudeTypeMeanSeaLevel)
 
double altitude () const
 
void altitude (double altitude)
 
const TSL3DAltitudeType altitudeType () const
 
void altitudeType (TSL3DAltitudeType altitudeType)
 
double latitude () const
 
void latitude (double latitude)
 
double longitude () const
 
void longitude (double longitude)
 
TSL3DCoord operator+ (const TSL3DCoord &another3DCoord) const
 
TSL3DCoord operator- (const TSL3DCoord &another3DCoord) const
 
TSL3DCoordoperator= (const TSL3DCoord &another3DCoord)
 
bool operator> (const TSL3DCoord &another3DCoord) const
 
bool operator< (const TSL3DCoord &another3DCoord) const
 
bool operator== (const TSL3DCoord &another3DCoord) const
 
bool operator!= (const TSL3DCoord &another3DCoord) const
 
void translate (Double dLat, Double dLon, Double dAlt)
 
 TSL3DCoord (TSL3DCoordType scaledLat, TSL3DCoordType scaledLon, TSL3DAltitudeCoordType scaledAlt)
 
TSL3DCoordType scaledLat () const
 
void scaledLat (TSL3DCoordType scaledLat)
 
TSL3DCoordType scaledLon () const
 
void scaledLon (TSL3DCoordType scaledLon)
 
TSL3DAltitudeCoordType scaledAlt () const
 
void scaledAlt (TSL3DAltitudeCoordType scaledAlt)
 

Constructor & Destructor Documentation

◆ TSL3DCoord() [1/3]

TSL3DCoord::TSL3DCoord ( )
inline

◆ TSL3DCoord() [2/3]

TSL3DCoord::TSL3DCoord ( Double lat,
Double lon,
Double alt,
TSL3DAltitudeType altType = TSL3DAltitudeTypeMeanSeaLevel )
inline

Constructor by argument of a TSL3DCoord class object.

Parameters
latThe latitude
lonThe longitude
altThe altitude
altTypethe altitude type (default TSL3DAltitudeTypeMeanSeaLevel)

◆ TSL3DCoord() [3/3]

TSL3DCoord::TSL3DCoord ( TSL3DCoordType scaledLat,
TSL3DCoordType scaledLon,
TSL3DAltitudeCoordType scaledAlt )
inline

Internal methods - subject to change.

Member Function Documentation

◆ altitude() [1/2]

double TSL3DCoord::altitude ( ) const
inline

Query the altitude

◆ altitude() [2/2]

void TSL3DCoord::altitude ( double altitude)
inline

Set the altitude

Parameters
altitudeNew value

◆ altitudeType() [1/2]

const TSL3DAltitudeType TSL3DCoord::altitudeType ( ) const
inline

◆ altitudeType() [2/2]

void TSL3DCoord::altitudeType ( TSL3DAltitudeType altitudeType)
inline

Sets the altitude type for a coordinate.

Parameters
altitudeTypealtitudeType to set

◆ latitude() [1/2]

double TSL3DCoord::latitude ( ) const
inline

Query the latitude

◆ latitude() [2/2]

void TSL3DCoord::latitude ( double latitude)
inline

Set the latitude. If the new latitude value is greater then 90 degrees or less then -90 degrees, then the value will be wrapped around the earth and will also cause the longitude to change appropriately.

Parameters
latitudeNew value

◆ longitude() [1/2]

double TSL3DCoord::longitude ( ) const
inline

Query the longitude.

◆ longitude() [2/2]

void TSL3DCoord::longitude ( double longitude)
inline

Set the longitude. If the new longitude value is greater then 180 degrees or less then -180 degrees, then the value will be wrapped around the earth.

Parameters
longitudeNew value

◆ operator!=()

bool TSL3DCoord::operator!= ( const TSL3DCoord & another3DCoord) const
inline

Compares two coordinates.

Note: The altitude type is ignored.

Parameters
another3DCoordSource for comparison.
Returns
true if one or all of lat, long and alt values are different.

◆ operator+()

TSL3DCoord TSL3DCoord::operator+ ( const TSL3DCoord & another3DCoord) const
inline

Adds two coordinates.

Translates the coordinate by the specified delta coordinate.

Parameters
another3DCoordDelta coordinate.
Returns
a TSL3DCoord containing the summed value.

◆ operator-()

TSL3DCoord TSL3DCoord::operator- ( const TSL3DCoord & another3DCoord) const
inline

Subtracts two coordinates.

Translates the coordinate by the negative of the specified delta coordinate.

Parameters
another3DCoordDelta coordinate.
Returns
a TSL3DCoord containing the subtracted value.

◆ operator<()

bool TSL3DCoord::operator< ( const TSL3DCoord & another3DCoord) const
inline

Less than operator.

Performs a comparison between two coordinates.

Note: The altitude type is ignored.

Parameters
another3DCoordSource for comparison.
Returns
true if the altitude is less, or, if the altitudes are equal, the longitude is less, or, if the altitudes and longitudes are equal, the latitude is less.

◆ operator=()

TSL3DCoord & TSL3DCoord::operator= ( const TSL3DCoord & another3DCoord)
inline

Assignment operator.

Assigns the lat, long and alt values of the argument coordinate to those of this coordinate.

Parameters
another3DCoordSource for new value.
Returns
reference to updated value.

◆ operator==()

bool TSL3DCoord::operator== ( const TSL3DCoord & another3DCoord) const
inline

Compares two coordinates.

Note: The altitude type is ignored.

Parameters
another3DCoordSource for comparison.
Returns
true if lat, lon and alt values are all equal.

◆ operator>()

bool TSL3DCoord::operator> ( const TSL3DCoord & another3DCoord) const
inline

Greater than operator.

Performs a comparison between two coordinates.

Note: The altitude type is ignored.

Parameters
another3DCoordSource comparison.
Returns
true if the altitude is greater or, if the altitudes are equal, and the longitude is greater, or if the altitude and longitude are equal and the latitude is greater.

◆ scaledAlt() [1/2]

TSL3DAltitudeCoordType TSL3DCoord::scaledAlt ( ) const
inline

Query the scaled altitude value.

◆ scaledAlt() [2/2]

void TSL3DCoord::scaledAlt ( TSL3DAltitudeCoordType scaledAlt)
inline

Set the scaled altitude value.

◆ scaledLat() [1/2]

TSL3DCoordType TSL3DCoord::scaledLat ( ) const
inline

Query the scaled latitude value.

◆ scaledLat() [2/2]

void TSL3DCoord::scaledLat ( TSL3DCoordType scaledLat)
inline

Set the scaled latitude value.

◆ scaledLon() [1/2]

TSL3DCoordType TSL3DCoord::scaledLon ( ) const
inline

Query the scaled longitude value.

◆ scaledLon() [2/2]

void TSL3DCoord::scaledLon ( TSL3DCoordType scaledLon)
inline

Set the scaled longitude value.

◆ translate()

void TSL3DCoord::translate ( Double dLat,
Double dLon,
Double dAlt )
inline

Translates the point by the delta values passed in.

Parameters
dLatlatitude value to translate by (degrees).
dLonlongitude value to translate by (degrees).
dAltheight value to translate by (meters).