TLocality Class Reference

class TLocality : public TCoordinate

Adds an error estimate for the horizontal and vertical accuracy of the point to TCoordinate. Accuracy information is held in a TReal32 and is measure in metres. The class also provides its own methods for determining the distance and bearing to a target point. These methods also provide an error estimate.

Inherits from

Constructor & Destructor Documentation

TLocality()

IMPORT_CTLocality()

TLocality(const TCoordinate &, TReal32)

IMPORT_CTLocality(const TCoordinate &aCoordinate,
TReal32aHorizontalAccuracy
)

Parameters

const TCoordinate & aCoordinate
TReal32 aHorizontalAccuracy

TLocality(const TCoordinate &, TReal32, TReal32)

IMPORT_CTLocality(const TCoordinate &aCoordinate,
TReal32aHorizontalAccuracy,
TReal32aVerticalAccuracy
)

Parameters

const TCoordinate & aCoordinate
TReal32 aHorizontalAccuracy
TReal32 aVerticalAccuracy

Member Functions Documentation

BearingTo(const TCoordinate &, TReal32 &)

IMPORT_C TIntBearingTo(const TCoordinate &aTargetCoordinate,
TReal32 &aBearing
)const

Parameters

const TCoordinate & aTargetCoordinate
TReal32 & aBearing

BearingTo(const TLocality &, TReal32 &, TReal32 &)

IMPORT_C TIntBearingTo(const TLocality &aTargetLocality,
TReal32 &aBearing,
TReal32 &aDelta
)const

Parameters

const TLocality & aTargetLocality
TReal32 & aBearing
TReal32 & aDelta

Distance(const TCoordinate &, TReal32 &)

IMPORT_C TIntDistance(const TCoordinate &aCoordinate,
TReal32 &aDistance
)const

Parameters

const TCoordinate & aCoordinate
TReal32 & aDistance

Distance(const TLocality &, TReal32 &, TReal32 &)

IMPORT_C TIntDistance(const TLocality &aLocality,
TReal32 &aDistance,
TReal32 &aDelta
)const

Parameters

const TLocality & aLocality
TReal32 & aDistance
TReal32 & aDelta

HorizontalAccuracy()

IMPORT_C TReal32HorizontalAccuracy()const

SetAccuracy(TReal32, TReal32)

IMPORT_C voidSetAccuracy(TReal32aHorizontalAccuracy,
TReal32aVerticalAccuracy
)

Parameters

TReal32 aHorizontalAccuracy
TReal32 aVerticalAccuracy

SetHorizontalAccuracy(TReal32)

IMPORT_C voidSetHorizontalAccuracy(TReal32aHorizontalAccuracy)

Parameters

TReal32 aHorizontalAccuracy

SetVerticalAccuracy(TReal32)

IMPORT_C voidSetVerticalAccuracy(TReal32aVerticalAccuracy)

Parameters

TReal32 aVerticalAccuracy

VerticalAccuracy()

IMPORT_C TReal32VerticalAccuracy()const

Member Data Documentation

TReal32 iHorizontalAccuracy

TReal32 iHorizontalAccuracy[protected]

Horizontal (earths-surface) accuracy, in metres.

TUint8 iReserved

TUint8 iReserved[private]

Unused variable for future expansion.

TReal32 iVerticalAccuracy

TReal32 iVerticalAccuracy[protected]

Altitudinal accuracy, in metres.