|
||
class TPosition : public TLocality;
This class is the standard data structure for retrieving location information. It adds a time dimension to the inherited TLocality
information. This enables the speed to be calculated from two TPosition instances.
The time reflects the system time (that is, the mobile terminal) of when the location fix was obtained. It does not indicate the time as obtained from the position technology (for example network or satellite time).
The time is contained in a TTime
data structure that provides microsecond resolution. However, it should be noted that system clocks only provide a resolution
of milliseconds or indeed hundredths of a second.
TCoordinate
- TCoordinate is used to hold the basic coordinates of a location (latitude, longi...
TLocality
- Adds an error estimate for the horizontal and vertical accuracy of the point to ...
TPosition
- This class is the standard data structure for retrieving location information. I...
Defined in TPosition
:
SetCurrentTime()
Sets the time of this position data to the current universal time as indicated b...SetTime(TTime)
Sets the time of this position data.Speed(const TPosition &,TReal32 &)const
This method calculates the horizontal speed between the current position and the...Speed(const TPosition &,TReal32 &,TReal32 &)const
This method calculates the horizontal speed between the current position and the...TPosition()
Default constructor for TCoordinate. Sets the member data to default values (NaN...TPosition(const TLocality &,TTime)
Constructor for TPosition. Allows the client to set a locality and an associated...Time()const
Retrieves the time of this position data.iTime
This is the system time when the position related member data was obtained. Inherited from TCoordinate
:
Altitude()const
Accessor for altitude.Datum()const
Accessor for the datum.Latitude()const
Accessor for latitude.Longitude()const
Accessor for longitude.Move(TReal32,TReal32)
This method moves this coordinate aDistance in the direction specified by aBeari...SetCoordinate(const TReal64 &,const TReal64 &)
This method assigns a new latitude and longitude to the object. The altitude is ...SetCoordinate(const TReal64 &,const TReal64 &,TReal32)
This method assigns a new latitude, longitude and altitude to the object.SetDatum(TPositionDatumId)
This method assigns a new datum to the object.TCoordinate(const TReal64 &,const TReal64 &)
Constructor for TCoordinate. Allows the client to set just latitude and longitud...TCoordinate(const TReal64 &,const TReal64 &,TReal32)
Constructor for TCoordinate. Allows the client to set the latitude, longitude an...iAltitude
Altitude, defaults to WGS-84 format. iDatum
The ID of the datum the coordinate is in, defaults to WGS-84 format. iLatitude
Latitude, defaults to WGS-84 format. iLongitude
Longitude, defaults to WGS-84 format. iReserved
Unused variable for future expansion. Inherited from TLocality
:
BearingTo(const TCoordinate &,TReal32 &)const
This method calculates the bearing from this coordinate to the supplied coordina...BearingTo(const TLocality &,TReal32 &,TReal32 &)const
This method calculates the bearing from this locality to the supplied locality.Distance(const TCoordinate &,TReal32 &)const
This method calculates the distance between this coordinate and the supplied coo...Distance(const TLocality &,TReal32 &,TReal32 &)const
This method calculates the distance between this locality and the supplied local...HorizontalAccuracy()const
Retrieves the horizontal accuracy of this coordinate.SetAccuracy(TReal32,TReal32)
Sets both the horizontal and vertical accuracy of this coordinate.SetHorizontalAccuracy(TReal32)
Sets the horizontal accuracy of this coordinate.SetVerticalAccuracy(TReal32)
Sets the vertical accuracy of this coordinate.TLocality(const TCoordinate &,TReal32)
Constructor for TLocality. Allows the client to set a coordinate and a 'surface'...TLocality(const TCoordinate &,TReal32,TReal32)
Constructor for TLocality. Allows the client to set a coordinate and both a hori...VerticalAccuracy()const
Retrieves the vertical accuracy of this coordinate.iHorizontalAccuracy
Horizontal (earths-surface) accuracy, in metres. iVerticalAccuracy
Altitudinal accuracy, in metres. IMPORT_C TPosition();
Default constructor for TCoordinate
. Sets the member data to default values (NaN for coordinates, 0 for time).
IMPORT_C TPosition(const TLocality &aLocality, TTime aTime);
Constructor for TPosition. Allows the client to set a locality and an associated time.
|
IMPORT_C void SetTime(TTime aTime);
Sets the time of this position data.
|
IMPORT_C void SetCurrentTime();
Sets the time of this position data to the current universal time as indicated by the systems clock.
IMPORT_C TTime Time() const;
Retrieves the time of this position data.
|
IMPORT_C TInt Speed(const TPosition &aPosition, TReal32 &aSpeed) const;
This method calculates the horizontal speed between the current position and the supplied instance aPosition. The speed is calculated based on the coordinates and time associated with each instance.
|
|
IMPORT_C TInt Speed(const TPosition &aPosition, TReal32 &aSpeed, TReal32 &aDelta) const;
This method calculates the horizontal speed between the current position and the supplied instance aPosition. The speed is calculated based on the coordinates and time associated with each instance. An estimate of the accuracy of the result is also provided.
|
|
protected: TTime iTime;
This is the system time when the position related member data was obtained.