class TMnMapImageParams |
center coordinate of map image,
size of the image,
image scale
image direction
Public Member Functions | |
---|---|
TMnMapImageParams () | |
TReal32 | Direction () |
void | GetCenterPoint ( TCoordinate &) |
void | GetVisibleArea ( TReal32 &, TReal32 &) |
TMapImageType | ImageType () |
TInt | ProjectionId () |
void | SetCenterPoint (const TCoordinate &) |
void | SetDirection ( TReal32 ) |
void | SetImageType ( TMapImageType ) |
void | SetProjectionId ( TInt ) |
void | SetSize (const TSize &) |
void | SetVisibleArea ( TReal32 , TReal32 ) |
TSize | Size () |
Public Member Enumerations | |
---|---|
enum | TMapImageType { ETypeUnspecified = 0x00, ETypeVectorMap = 0x01, ETypeSatelliteImage = 0x02 } |
Public Member Type Definitions | |
---|---|
typedef | TUint32 TMapImageTypes |
Private Attributes | |
---|---|
TReal32 | iAreaHeight |
TReal32 | iAreaWidth |
TCoordinate | iCenterPoint |
TReal32 | iDirection |
TMapImageType | iImageType |
TInt | iProjectionId |
TSize | iSize |
TInt8 | reserved |
TReal32 | Direction | ( | ) | const [inline] |
Returns selected direction of the map. For details of direction definition, see SetDirection() .
void | GetCenterPoint | ( | TCoordinate & | aCoordinate | ) | const [inline] |
Returns world location, selected by client as the map center.
TCoordinate & aCoordinate | Coordinate of map's center. |
void | GetVisibleArea | ( | TReal32 & | aWidth, |
TReal32 & | aHeight | |||
) | const [inline] |
Returns the width and heigth of the world area to be covered by the map image. These two parameters define an ellipse, covering the world area, which is required to be visible on the map. Actual visible area can be larger, if given image size and area have different aspect ratios.
TMapImageType | ImageType | ( | ) | const [inline] |
Returns type of last rendered map image. (It always matches the value specified by client in SetImageType except if ETypeUnspecified is given by client.)
TInt | ProjectionId | ( | ) | [inline] |
Sets internal ID of a projection used by renderer. It is meaningful if provider supports several projections. Currently must not be used by clients, only for internal purposes of provider application.
void | SetCenterPoint | ( | const TCoordinate & | aCoordinate | ) | [inline] |
Sets a world coordinate as a center of desired image.
const TCoordinate & aCoordinate | World location to be center of rendered map. |
void | SetDirection | ( | TReal32 | aDirection | ) | [inline] |
a. vector from center point towards true North Pole parallel to center s longitude. If center is positioned at North Pole, then this vector is directed towards South Pole parallel to center s longitude.
b. vector from center point (see SetCenterPoint() ) towards center of image s top side.
This direction parameter can be thought of as "true heading" of the image.
TReal32 aDirection | Direction in degrees. |
void | SetImageType | ( | TMapImageType | aImageType | ) | [inline] |
Sets desired type of map image. If set, then rendering will provide (if supported) maps of specified type. Default value is ETypeUnspecified, which allows provider to select best suitable image for given scale, center etc.
TMapImageType aImageType |
void | SetProjectionId | ( | TInt | aProjectionId | ) | [inline] |
Sets internal ID of a projection used by renderer. It is useful if provider supports several projections. Currently must not be used by clients, only for internal purposes of provider application.
TInt aProjectionId | Renderer'd internal id of used projection |
void | SetSize | ( | const TSize & | aImageSize | ) | [inline] |
Sets size of desired map image in pixels.
const TSize & aImageSize | Width and height of the map image. |
void | SetVisibleArea | ( | TReal32 | aWidth, |
TReal32 | aHeight | |||
) | [inline] |
Sets the width and heigth of the world area to be covered by the map image. These two parameters define an ellipse, covering the world area, which is required to be visible on the map. Actual visible area can be larger, if given image size and area have different aspect ratios.
Types of map images
ETypeUnspecified = 0x00 |
Type is unknown or unspecified |
ETypeVectorMap = 0x01 |
Scalable graphical maps (e.g. street maps) |
ETypeSatelliteImage = 0x02 |
Image built of satellite photographs of Earth |
typedef TUint32 | TMapImageTypes |
Type for bitmap of image types defined in TMapImageType
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.