The QGeoMapObjectInfo class is the base class used to define the parts of QGeoMapObject and its subclasses that are specific to a particular QGeoMapData subclass. More...
#include <QGeoMapObjectInfo>
Inherits: QObject.
This class was introduced in Qt Mobility 1.1.
QGeoMapObjectInfo ( QGeoMapData * mapData, QGeoMapObject * mapObject ) | |
virtual | ~QGeoMapObjectInfo () |
virtual QGeoBoundingBox | boundingBox () const |
virtual bool | contains ( const QGeoCoordinate & coordinate ) const |
virtual void | init () |
virtual void | centerChanged ( const QGeoCoordinate & coordinate ) |
virtual void | originChanged ( const QGeoCoordinate & origin ) |
virtual void | selectedChanged ( bool selected ) |
virtual void | transformTypeChanged ( QGeoMapObject::TransformType transformType ) |
virtual void | unitsChanged ( QGeoMapObject::CoordinateUnit units ) |
virtual void | visibleChanged ( bool visible ) |
virtual void | windowSizeChanged ( const QSizeF & windowSize ) |
virtual void | zValueChanged ( int zValue ) |
virtual void | zoomLevelChanged ( qreal zoomLevel ) |
QGeoMapData * | mapData () |
QGeoMapObject * | mapObject () |
QGeoMapObject * | mapObject () const |
The QGeoMapObjectInfo class is the base class used to define the parts of QGeoMapObject and its subclasses that are specific to a particular QGeoMapData subclass.
Most of the mapping functionality is provided by a QGeoMapData subclass, including the rendering of the map itself.
This means that QGeoMapData subclasses need to be able to render each of the QGeoMapObject instances and instances of the QGeoMapObject subclasses.
Furthermore, the need to be able to create and manipulate map objects independently from the QGeoMapData instance precludes the use of a set of factory methods for creating QGeoMapData specific map objects.
The QGeoMapObjectInfo class is used to provide the QGeoMapData subclass specific behaviours for the map objects in a way which fulfils this need, as the QGeoMapObjectInfo instances are only created at the point when a map object becomes associated with a QGeoMapData subclass - which is most commonly when the object is added to a QGraphicsGeoMap.
Constructs a new object info instance which will provide the behaviours of mapObject which are specific to mapData.
Destroys this info object.
Returns a bounding box which contains this map object.
The default implementation returns an invalid bounding box.
This function was introduced in Qt Mobility 1.1.
This function is called when the center of the map changes to coordinate.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.1.
Returns whether coordinate is contained with the boundary of this map object.
The default implementation returns false.
This function was introduced in Qt Mobility 1.1.
This function is run after the constructor.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.1.
Returns the QGeoMapData instance associated with this info object.
This function was introduced in Qt Mobility 1.1.
Returns the QGeoMapObject instance associated with this info object.
This function was introduced in Qt Mobility 1.1.
Returns the QGeoMapObject instance associated with this info object.
This function was introduced in Qt Mobility 1.2.
This function is run when the origin of the object changes to origin.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.2.
This function is run when the selected state of the object changes to selected.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.1.
This function is run when the transform type of the object changes to transformType.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.2.
This function is run when the coordinate units of the object changes to units.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.2.
This function is run when the visible state of the object changes to visible.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.1.
This function is called when the window size of the map changes to windowSize.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.1.
This function is run when the z value of the object changes to zValue.
The default implementation does nothing.
This function was introduced in Qt Mobility 1.1.
This function is called when the zoom level of the map changes to zoomLevel.
The default implementation does nothing.
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.