#include <mw/lbtgeocircle.h>
class CLbtGeoCircle : public CLbtGeoAreaBase |
Public Member Functions | |
---|---|
~CLbtGeoCircle() | |
virtual TCoordinate | Center() |
IMPORT_C RPointerArray< CLbtGeoAreaBase > & | GetAdditionalGeoAreaInfo() |
IMPORT_C CLbtGeoCircle * | NewL() |
IMPORT_C CLbtGeoCircle * | NewL(const TCoordinate &, TReal) |
IMPORT_C CLbtGeoCircle * | NewLC() |
IMPORT_C CLbtGeoCircle * | NewLC(const TCoordinate &, TReal) |
IMPORT_C TReal | Radius() |
IMPORT_C void | SetAdditionalGeoAreaInfo(CLbtGeoAreaBase *) |
IMPORT_C void | SetCenter(const TCoordinate &) |
IMPORT_C void | SetRadius(TReal) |
virtual TGeoAreaType | Type() |
void | ValidateCircleInformationL() |
Protected Member Functions | |
---|---|
virtual void | DoExternalizeL(RWriteStream &) |
virtual void | DoInternalizeL(RReadStream &) |
Inherited Enumerations | |
---|---|
CLbtGeoAreaBase:TGeoAreaType |
Geographical circular area.
A geographical circular area is defined by the center of the circle and the radius. The radius is in meters. The altitude in the center's coordinate is always ignored. It is optionally also possible to provide additional geographical area information of CLbtGeoCell type. Providing additional cell information would enable further optimization by reducing the number of GPS fixes required to supervise the trigger, there by, reducing the impact on battery consumption. Triggers would, initially, be monitored using the cell information provided. GPS would be used to check the coordinates only when the mobile terminal reaches the cell / cells specified. If a particular location is served by multiple cells, then it is important to mention all available cell information. If not, there is a possibility of missing triggers even when the mobile terminal reaches the location specified by the coordinates.
TCoordinate | Center | ( | ) | const [virtual] |
Gets the center of the area. If the center has not been set before, the returned coordinate has latitude, longitude and altitude set to NaN,
Returns: The center of the area.
void | DoExternalizeL | ( | RWriteStream & | aStream | ) | const [protected, virtual] |
Reimplemented from CLbtGeoAreaBase::DoExternalizeL(RWriteStream &)const
Externalize method that subclass must implement.
Parameter | Description |
---|---|
aStream | Stream to which the object should be externalized. |
void | DoInternalizeL | ( | RReadStream & | aStream | ) | [protected, virtual] |
Reimplemented from CLbtGeoAreaBase::DoInternalizeL(RReadStream &)
Internalize method that subclass must implement.
Parameter | Description |
---|---|
aStream | Stream from which the object should be internalized. |
IMPORT_C RPointerArray< CLbtGeoAreaBase > & | GetAdditionalGeoAreaInfo | ( | ) |
Gets geographical area information. The following method is currently not supported. This method will only return empty array when invoked.
Returns: An array of geographical area instances
IMPORT_C CLbtGeoCircle * | NewL | ( | ) | [static] |
Allocates and constructs a new geographical circular area object. In the returned object, the latitude, longitude and altitude are set to NaN, and the radius is set to NaN.
Returns: Pointer to the new geographical circular area object.
IMPORT_C CLbtGeoCircle * | NewL | ( | const TCoordinate & | aCenter, |
TReal | aRadiusInMeters | |||
) | [static] |
Allocates and constructs a new geographical circular area object with specified center coordinate and radius.
Parameter | Description |
---|---|
aCenter | The coordinate of the center. |
aRadiusInMeters | The radius of the circle in meters. |
Returns: Pointer to the new geographical circle area object.
IMPORT_C CLbtGeoCircle * | NewLC | ( | ) | [static] |
Constructs a new geographical circular area object and pushes it onto cleanup stack. In the returned object, the latitude, longitude and altitude are set to NaN, and the radius is set to NaN.
Returns: Pointer to the new geographical circular area object.
IMPORT_C CLbtGeoCircle * | NewLC | ( | const TCoordinate & | aCenter, |
TReal | aRadiusInMeters | |||
) | [static] |
Allocates and constructs a new geographical circular area object with specified center coordinate and radius. The constructed object is pushed onto cleanup stack.
Parameter | Description |
---|---|
aCenter | The coordinate of the center. |
aRadiusInMeters | The radius of the circle in meters. |
Returns: Pointer to the new geographical circle area object.
IMPORT_C TReal | Radius | ( | ) | const |
Gets the radius of the circle. If the radius has not been set before, the returned value is NaN.
Returns: The radius of the circle in meters.
IMPORT_C void | SetAdditionalGeoAreaInfo | ( | CLbtGeoAreaBase * | aGeoArea | ) |
Sets additional geographical area information. The geographical information provided can only be of CLbtGeoCell type. This is optional and clients may specify this information when available.The following method is currently not supported.
Parameter | Description |
---|---|
aGeoArea | A pointer representing a geographical area. |
IMPORT_C void | SetCenter | ( | const TCoordinate & | aCenter | ) |
Sets the center of the circle.
Parameter | Description |
---|---|
aCenter | The coordinate of the center. |
IMPORT_C void | SetRadius | ( | TReal | aRadiusInMeters | ) |
Sets the radius of the circle.
Parameter | Description |
---|---|
aRadiusInMeters | The radius of the circle in meters. |
TGeoAreaType | Type | ( | ) | const [virtual] |
Reimplemented from CLbtGeoAreaBase::Type()const
Returns the type of geographical area, CLbtGeoAreaBase::ECircle
Returns: CLbtGeoAreaBase::ECircle.