BaseLocationItem Class Reference

Baseclass for showing own and friends locations on the map. More...

#include <baselocationitem.h>

Inheritance diagram for BaseLocationItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BaseLocationItem (QObject *parent=0)
 Constructor of BaseLocationItem. Sets parent.
QRect sceneTransformedBoundingRect (int zoomLevel) const
 Return item rect transformed to given zoom level.

Detailed Description

Baseclass for showing own and friends locations on the map.

Author:
Ville Tiensuu - ville.tiensuu@ixonos.com
Sami Rämö - sami.ramo@ixonos.com

Constructor & Destructor Documentation

BaseLocationItem::BaseLocationItem ( QObject *  parent = 0  ) 

Constructor of BaseLocationItem. Sets parent.

Parameters:
parent 

Member Function Documentation

QRect BaseLocationItem::sceneTransformedBoundingRect ( int  zoomLevel  )  const

Return item rect transformed to given zoom level.

Because of using ItemIgnoresTransformations, and not scaling the item, the default sceneBoundingRect can't be used because it always returns the lowest map tile level scene bounding rect. This method does return rect scaled to given zoom level. Rect's center point is also normalized to be inside the map.

Parameters:
zoomLevel Zoom level for which the sceneBoundingRect should be transformed
Returns:
sceneBoundingRect transformed to given zoom level

The documentation for this class was generated from the following files:

Generated on Fri Sep 3 12:05:41 2010 for Situare client for Maemo by  doxygen 1.6.1