VisioMove SDK (Android)  2.1.22
 All Classes Functions Variables Pages
VgPosition Class Reference

Public Member Functions

 VgPosition ()
 
 VgPosition (VgSRSConstRefPtr pSRS)
 
 VgPosition (VgPosition pOther)
 
 VgPosition (double pXOrLongitude, double pYOrLatitude, double pZOrAltitude)
 
 VgPosition (double pXOrLongitude, double pYOrLatitude, double pZOrAltitude, VgSRSConstRefPtr pSRS)
 
void setMSRS (VgSRSConstRefPtr value)
 
VgSRSConstRefPtr getMSRS ()
 
void setMXOrLongitude (double value)
 
double getMXOrLongitude ()
 
void setMYOrLatitude (double value)
 
double getMYOrLatitude ()
 
void setMZOrAltitude (double value)
 
double getMZOrAltitude ()
 

Detailed Description

This struct encapsulates a 3D position. This interpretation of the contents depends on the spatial reference system member. As of now, it can either be local metric coordinates (x, y, z) or WGS84 coordinates (latitude, longitude, altitude) in decimal degrees (and meters above water for altitude).

Constructor & Destructor Documentation

VgPosition.VgPosition ( )

Default constructor.

Initializes to default values: mYOrLatitude = 0.0 mXOrLongitude = 0.0 mZOrAltitude = 0.0 mSRS = NULL

Note
This default value with a null SRS will probably be irrelevant for final applications. It denotes a spot in the atlantic ocean south of Togo.
VgPosition.VgPosition ( VgSRSConstRefPtr  pSRS)

Constructor.

Initializes to default values: mYOrLatitude = 0.0 mXOrLongitude = 0.0 mZOrAltitude = 0.0

Parameters
pSRSA pointer to the spatiual reference system to express the position in.
VgPosition.VgPosition ( VgPosition  pOther)

Copy constructor. Initializes the position.

Parameters
pOtherThe position object to copy.
VgPosition.VgPosition ( double  pXOrLongitude,
double  pYOrLatitude,
double  pZOrAltitude 
)

constructor for WGS84 position (because it uses NULL SRS).

Initializes to default values: mSRS = NULL

Parameters
pXOrLongitudelongitude of point
pYOrLatitudelatitude of point
pZOrAltitudealtitude of point.
Version
2.0.8744
VgPosition.VgPosition ( double  pXOrLongitude,
double  pYOrLatitude,
double  pZOrAltitude,
VgSRSConstRefPtr  pSRS 
)

constructor for position with SRS. The parameters will be interpreted as a function of the pSRS parameters.

Parameters
pXOrLongitudelongitude of point
pYOrLatitudelatitude of point
pZOrAltitudealtitude of point.
pSRSA pointer to the spatiual reference system to express the position in.
Version
2.0.8744

Member Function Documentation

VgSRSConstRefPtr VgPosition.getMSRS ( )
double VgPosition.getMXOrLongitude ( )
double VgPosition.getMYOrLatitude ( )
double VgPosition.getMZOrAltitude ( )
void VgPosition.setMSRS ( VgSRSConstRefPtr  value)
void VgPosition.setMXOrLongitude ( double  value)
void VgPosition.setMYOrLatitude ( double  value)
void VgPosition.setMZOrAltitude ( double  value)

The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016