The QGeoTiledMapData class is a subclass of QGeoMapData provided to make working with tile based mapping services more convenient. More...
#include <QGeoTiledMapData>
Inherits: QGeoMapData.
This class was introduced in Qt Mobility 1.1.
QGeoTiledMapData ( QGeoMappingManagerEngine * engine ) | |
virtual | ~QGeoTiledMapData () |
virtual QPoint | coordinateToWorldReferencePosition ( const QGeoCoordinate & coordinate ) const |
void | triggerUpdateMapDisplay ( const QRectF & target = QRectF() ) |
virtual QGeoCoordinate | worldReferencePositionToCoordinate ( const QPoint & pixel ) const |
QSize | worldReferenceSize () const |
QPoint | worldReferenceViewportCenter () const |
QRect | worldReferenceViewportRect () const |
int | zoomFactor () const |
virtual QGeoCoordinate | center () const |
virtual QPointF | coordinateToScreenPosition ( const QGeoCoordinate & coordwgs ) const |
virtual void | fitInViewport ( const QGeoBoundingBox & bounds, bool preserveViewportCenter = false ) |
virtual QList<QGeoMapObject *> | mapObjectsAtScreenPosition ( const QPointF & screenPosition ) const |
virtual QList<QGeoMapObject *> | mapObjectsInScreenRect ( const QRectF & screenRect ) const |
virtual void | pan ( int dx, int dy ) |
virtual QGeoCoordinate | screenPositionToCoordinate ( const QPointF & screenPosition ) const |
virtual void | setCenter ( const QGeoCoordinate & center ) |
virtual void | setConnectivityMode ( QGraphicsGeoMap::ConnectivityMode connectivityMode ) |
virtual void | setMapType ( QGraphicsGeoMap::MapType mapType ) |
virtual void | setWindowSize ( const QSizeF & size ) |
virtual void | setZoomLevel ( qreal zoomLevelf ) |
virtual QGeoBoundingBox | viewport () const |
virtual QGeoMapObjectInfo * | createMapObjectInfo ( QGeoMapObject * mapObject ) |
virtual void | paintMap ( QPainter * painter, const QStyleOptionGraphicsItem * option ) |
virtual void | paintObjects ( QPainter * painter, const QStyleOptionGraphicsItem * option ) |
The QGeoTiledMapData class is a subclass of QGeoMapData provided to make working with tile based mapping services more convenient.
This class assumes that at a zoom level of z the world is represented as a 2^z by 2^z grid of tiles, and that the Mercator projection is used to map back and forth between coordinate and positions on the map.
Different projections can be provided by reimplementing coordinateToWorldReferencePosition() and worldReferencePositionToCoordinate().
Many of the internal calculations deal with positions as though they are pixel positions on the map at the maximum zoom level. Several functions are provided which expose information about the map and the viewport onto the map in these terms for use with custom QGeoMapObjectInfo subclasses.
These functions include worldReferenceViewportCenter(), worldReferenceSize() and worldReferenceViewportRect().
NOTE: QGeoTiledMapData blocks property change signals from QGeoMapData by calling QGeoMapData::setBlockPropertyChangeSignals() with true. Changing this in QGeoTiledMapData subclasses will cause the signals being emitted at wrong time.
Constructs a new tiled map data object, which makes use of the functionality provided by engine.
Destroys this tiled map data object.
Reimplemented from QGeoMapData::center().
This function was introduced in Qt Mobility 1.1.
See also setCenter().
Reimplemented from QGeoMapData::coordinateToScreenPosition().
This function was introduced in Qt Mobility 1.1.
Converts the coordinate coordinate to a pixel position on the entire map at the maximum zoom level.
The default implementation is based on the Mercator projection.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::createMapObjectInfo().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::fitInViewport().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::mapObjectsAtScreenPosition().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::mapObjectsInScreenRect().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::paintMap().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::paintObjects().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::pan().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::screenPositionToCoordinate().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::setCenter().
This function was introduced in Qt Mobility 1.1.
See also center().
Reimplemented from QGeoMapData::setConnectivityMode().
Reimplemented from QGeoMapData::setMapType().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::setWindowSize().
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::setZoomLevel().
This function was introduced in Qt Mobility 1.1.
Forces the map display to update in the region specified by target.
If target is empty the entire map display will be updated.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapData::viewport().
This function was introduced in Qt Mobility 1.1.
Converts the pixel position pixel on the map to a coordinate.
The pixel position is relative the entire map at the maximum zoom level.
The default implementation is based on the Mercator projection.
This function was introduced in Qt Mobility 1.1.
Returns the size, in pixels, of the entire map as a pixmap at the maximum zoom level.
This function was introduced in Qt Mobility 1.1.
Returns the center of the viewport, in pixels on the entire map as a pixmap at the maximum zoom level.
This function was introduced in Qt Mobility 1.1.
Returns the visible screen rectangle, in pixels on the entire map as a pixmap at the maximum zoom level.
This function was introduced in Qt Mobility 1.1.
Returns the ratio between a single pixel on the screen and a pixel on the entire map as a pixmap at the maximum zoom level.
This function was introduced in Qt Mobility 1.1.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.