VisioMove
2.1.5
|
This struct encapsulates a 3D position. More...
Public Member Functions | |
VgPosition () | |
Default constructor. More... | |
VgPosition (VgEngine::VgConstRefPtr< VgEngine::VgSRS >const &pSRS) | |
Constructor. More... | |
VgPosition (const VgPosition &pOther) | |
Copy constructor. More... | |
VgPosition (double pXOrLongitude, double pYOrLatitude, double pZOrAltitude) | |
constructor for WGS84 position (because it uses NULL SRS). More... | |
VgPosition (double pXOrLongitude, double pYOrLatitude, double pZOrAltitude, VgEngine::VgConstRefPtr< VgEngine::VgSRS >const &pSRS) | |
constructor for position with SRS. More... | |
bool | operator== (const VgPosition &pPositionToCompare) const |
This is an equality test operator. More... | |
bool | operator!= (const VgPosition &pPositionToCompare) const |
This is an inequality test operator. More... | |
Public Attributes | |
VgEngine::VgConstRefPtr < VgEngine::VgSRS > | mSRS |
The SRS the position is expressed in. More... | |
double | mXOrLongitude |
Depending on the SRS used this may be local metric X coordinate, or longitude. More... | |
double | mYOrLatitude |
Depending on the SRS used this may be local metric Y coordinate, or latitude. More... | |
double | mZOrAltitude |
Depending on the SRS used this may be local metric Z coordinate, or altitude. More... | |
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).
|
inline |
Default constructor.
Initializes to default values: mYOrLatitude = 0.0 mXOrLongitude = 0.0 mZOrAltitude = 0.0 mSRS = NULL
|
inline |
Constructor.
Initializes to default values: mYOrLatitude = 0.0 mXOrLongitude = 0.0 mZOrAltitude = 0.0
pSRS | A pointer to the spatiual reference system to express the position in. |
|
inline |
Copy constructor.
Initializes the position.
pOther | The position object to copy. |
|
inline |
constructor for WGS84 position (because it uses NULL SRS).
pXOrLongitude | longitude of point |
pYOrLatitude | latitude of point |
pZOrAltitude | altitude of point. |
Initializes to default values: mSRS = NULL
|
inline |
constructor for position with SRS.
The parameters will be interpreted as a function of the pSRS parameters.
pXOrLongitude | longitude of point |
pYOrLatitude | latitude of point |
pZOrAltitude | altitude of point. |
pSRS | A pointer to the spatiual reference system to express the position in. |
|
inline |
This is an inequality test operator.
pPositionToCompare | The position to compare. |
|
inline |
This is an equality test operator.
pPositionToCompare | The position to compare to. |
References mXOrLongitude, mYOrLatitude, and mZOrAltitude.
VgEngine::VgConstRefPtr< VgEngine::VgSRS > VgEngine::VgPosition::mSRS |
The SRS the position is expressed in.
If NULL, it means the position is expressed in WGS84 coordinates.
double VgEngine::VgPosition::mXOrLongitude |
Depending on the SRS used this may be local metric X coordinate, or longitude.
Referenced by operator==().
double VgEngine::VgPosition::mYOrLatitude |
Depending on the SRS used this may be local metric Y coordinate, or latitude.
Referenced by operator==().
double VgEngine::VgPosition::mZOrAltitude |
Depending on the SRS used this may be local metric Z coordinate, or altitude.
Referenced by operator==().