CMnCoordinateConverterBase Class Reference
class CMnCoordinateConverterBase : public CBase |
This is the base service interface to access coordinate conversion functionality of MapImage service capable provider applications.
This interface must be implemented by Map and Navigation provider applications, which support KMnAppServiceMapImage service.
mnclientlib.lib
- Since
- 5.0
Inherits from
- CMnCoordinateConverterBase
Constructor & Destructor Documentation
CMnCoordinateConverterBase()
IMPORT_C | CMnCoordinateConverterBase | ( | ) | [protected] |
~CMnCoordinateConverterBase()
IMPORT_C | ~CMnCoordinateConverterBase | ( | ) | |
Member Functions Documentation
GetImageCoordinate(const TCoordinate &, TPoint &)
Calculates coordinate in pixels of the point corresponding to given world coordinate.
Given world coordinate is allowed to be beyond image borders. In that case negative values in result value describe point to the left of left border and/or above top border of the image and values bigger than width or height describe point to the right of right image border or below its bottom border.
If such calculation is not possible (e.e given world coordinate is not part of the image) this function must return KErrUnknown.
Parameters
const TCoordinate & aWorldCoordinate | World coordinate (in WGS-84) |
TPoint & aImagePoint | Coordinate of corresponding pixel in image relative to image top left corner. |
GetWorldCoordinate(const TPoint &, TCoordinate &)
Calculates world coordinate of the given image point.
Given image point coordinate must be within the rectangle ( TPoint( 0, 0 ), Size() ).
If such calculation is not possible (e.g. given image coordinate does not match any world coordinate) this function must return KErrUnknown.
Parameters
const TPoint & aImagePoint | Coordinate of a point on map image in pixels, relative to image top left corner. |
TCoordinate & aWorldCoordinate | On successful return, corresponding world coordinate (in WGS-84). |
MapImageParams()
Returns drawing parameters of map image.
SetMapImageParams(const TMnMapImageParams &)
Member Data Documentation
TMnMapImageParams
iImageParams
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.