The QGeoMappingManagerEngine class provides an interface and convenience methods to implementors of QGeoServiceProvider plugins who want to provides support for displaying and interacting with maps. More...
#include <QGeoMappingManagerEngine>
Inherited by QGeoTiledMappingManagerEngine.
QGeoMappingManagerEngine ( const QMap<QString, QVariant> & parameters, QObject * parent = 0 ) | |
virtual | ~QGeoMappingManagerEngine () |
virtual QGeoMapData * | createMapData ( QGraphicsGeoMap * geoMap ) = 0 |
QLocale | locale () const |
QString | managerName () const |
int | managerVersion () const |
QSize | maximumImageSize () const |
qreal | maximumZoomLevel () const |
QSize | minimumImageSize () const |
qreal | minimumZoomLevel () const |
void | setLocale ( const QLocale & locale ) |
QList<QGraphicsGeoMap::MapType> | supportedMapTypes () const |
void | setMaximumImageSize ( const QSize & maximumImageSize ) |
void | setMaximumZoomLevel ( qreal maximumZoom ) |
void | setMinimumImageSize ( const QSize & minimumImageSize ) |
void | setMinimumZoomLevel ( qreal minimumZoom ) |
void | setSupportedMapTypes ( const QList<QGraphicsGeoMap::MapType> & mapTypes ) |
The QGeoMappingManagerEngine class provides an interface and convenience methods to implementors of QGeoServiceProvider plugins who want to provides support for displaying and interacting with maps.
Subclasses of QGeoMappingManagerEngine need to provide an implementations of createMapData(). The QGeoMapData instances returned by createMapData() can be used to contain and manage information concerning what a particular QGraphicsGeoMap is viewing.
The functions setSupportedMapTypes(const QList<QGraphicsGeoMap::MapType> &mapTypes), setMinimumZoomLevel(qreal minimumZoom), setMaximumZoomLevel(qreal maximumZoom), setMinimumImageSize(const QSize &minimumSize) and setMaximumImageSize(const QSize &maximumSize) should be used to configure the reported capabilities of the engine.
It is important that this is done before createMapData() or any of the capability reporting functions are used to prevent incorrect or inconsistent behaviour.
Constructs a new engine with the specified parent, using parameters to pass any implementation specific data to the engine.
Destroys this engine.
Returns a new QGeoMapData instance for geoMap, which will be managed by this manager.
A QGeoMapData instance contains and manages the information about what a QGraphicsGeoMap is looking at. A single manager can be used by several QGraphicsGeoMap instances since each instance has an associated QGeoMapData instance.
The QGeoMapData instance can be treated as a kind of session object, or as a model in a model-view-controller architecture, with QGraphicsGeoMap as the view and QGeoMappingManagerEngine as the controller.
Subclasses of QGeoMappingManagerEngine are free to override this function to return subclasses of QGeoMapData in order to customize the map.
Returns the locale used to hint to this mapping manager about what language to use for map labels.
See also setLocale().
Returns the name which this engine implementation uses to distinguish itself from the implementations provided by other plugins.
The combination of managerName() and managerVersion() should be unique amongst plugin implementations.
Returns the version of this engine implementation.
The combination of managerName() and managerVersion() should be unique amongst plugin implementations.
Returns the size of the largest map image which is supported by this engine.
An invalid size indicates that this QGeoMappingManagerEngine instance places no restrictions on the maximum size of the map image.
See also setMaximumImageSize().
Returns the maximum zoom level supported by this engine.
Larger values of the zoom level correspond to more detailed views of the map.
See also setMaximumZoomLevel().
Returns the size of the smallest map image which is supported by this engine.
An invalid size indicates that this QGeoMappingManagerEngine instance places no restrictions on the minimum size of the map image.
See also setMinimumImageSize().
Returns the minimum zoom level supported by this engine.
Larger values of the zoom level correspond to more detailed views of the map.
See also setMinimumZoomLevel().
Sets the locale to be used by the this manager to locale.
If this mapping manager supports returning map labels in different languages, they will be returned in the language of locale.
The locale used defaults to the system locale if this is not set.
See also locale().
Sets the size of the largest map image which is supported by this engine.
An invalid size indicates that this engine places no restrictions on the maximum size of the map image.
Subclasses of QGeoMappingManagerEngine should use this function to ensure maximumImageSize() provides accurate information.
See also maximumImageSize().
Sets the maximum zoom level supported by this engine.
Larger values of the zoom level correspond to more detailed views of the map.
Subclasses of QGeoMappingManagerEngine should use this function to ensure maximumZoomLevel() provides accurate information.
See also maximumZoomLevel().
Sets the size of the smallest map image which is supported by this engine.
An invalid size indicates that this engine places no restrictions on the minimum size of the map image.
Subclasses of QGeoMappingManagerEngine should use this function to ensure minimumImageSize() provides accurate information.
See also minimumImageSize().
Sets the minimum zoom level supported by this engine.
Larger values of the zoom level correspond to more detailed views of the map.
Subclasses of QGeoMappingManagerEngine should use this function to ensure minimumZoomLevel() provides accurate information.
See also minimumZoomLevel().
Sets the list of map types supported by this engine to mapTypes.
Subclasses of QGeoMappingManagerEngine should use this function to ensure that supportedMapTypes() provides accurate information.
See also supportedMapTypes().
Returns a list of the map types supported by this engine.
See also setSupportedMapTypes().