Detailed Description
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.
Member Function Documentation
QGeoMapObjectInfo::QGeoMapObjectInfo ( QGeoMapData * mapData, QGeoMapObject * mapObject )
Constructs a new object info instance which will provide the behaviours of mapObject which are specific to mapData.
QGeoMapObjectInfo::~QGeoMapObjectInfo () [virtual]
Destroys this info object.
QGeoBoundingBox QGeoMapObjectInfo::boundingBox () const [virtual]
Returns a bounding box which contains this map object.
The default implementation returns an invalid bounding box.
void QGeoMapObjectInfo::centerChanged ( const QGeoCoordinate & coordinate ) [virtual slot]
This function is called when the center of the map changes to coordinate.
The default implementation does nothing.
bool QGeoMapObjectInfo::contains ( const QGeoCoordinate & coordinate ) const [virtual]
Returns whether coordinate is contained with the boundary of this map object.
The default implementation returns false.
void QGeoMapObjectInfo::init () [virtual]
This function is run after the constructor.
The default implementation does nothing.
QGeoMapData * QGeoMapObjectInfo::mapData () [protected]
Returns the QGeoMapData instance associated with this info object.
QGeoMapObject * QGeoMapObjectInfo::mapObject () [protected]
Returns the QGeoMapObject instance associated with this info object.
void QGeoMapObjectInfo::selectedChanged ( bool selected ) [virtual slot]
This function is run when the selected state of the object changes to selected.
The default implementation does nothing.
void QGeoMapObjectInfo::visibleChanged ( bool visible ) [virtual slot]
This function is run when the visible state of the object changes to visible.
The default implementation does nothing.
void QGeoMapObjectInfo::windowSizeChanged ( const QSizeF & windowSize ) [virtual slot]
This function is called when the window size of the map changes to windowSize.
The default implementation does nothing.
void QGeoMapObjectInfo::zValueChanged ( int zValue ) [virtual slot]
This function is run when the z value of the object changes to zValue.
The default implementation does nothing.
void QGeoMapObjectInfo::zoomLevelChanged ( qreal zoomLevel ) [virtual slot]
This function is called when the zoom level of the map changes to zoomLevel.
The default implementation does nothing.