QtMobility Reference Documentation

QGeoMapObjectInfo Class Reference

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.

Public Functions

QGeoMapObjectInfo ( QGeoMapData * mapData, QGeoMapObject * mapObject )
virtual ~QGeoMapObjectInfo ()
virtual QGeoBoundingBox boundingBox () const
virtual bool contains ( const QGeoCoordinate & coordinate ) const
virtual void init ()
  • 29 public functions inherited from QObject

Public Slots

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 )
  • 1 public slot inherited from QObject

Protected Functions

QGeoMapData * mapData ()
QGeoMapObject * mapObject ()
QGeoMapObject * mapObject () const
  • 7 protected functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

void QGeoMapObjectInfo::init () [virtual]

This function is run after the constructor.

The default implementation does nothing.

This function was introduced in Qt Mobility 1.1.

QGeoMapData * QGeoMapObjectInfo::mapData () [protected]

Returns the QGeoMapData instance associated with this info object.

This function was introduced in Qt Mobility 1.1.

QGeoMapObject * QGeoMapObjectInfo::mapObject () [protected]

Returns the QGeoMapObject instance associated with this info object.

This function was introduced in Qt Mobility 1.1.

QGeoMapObject * QGeoMapObjectInfo::mapObject () const [protected]

Returns the QGeoMapObject instance associated with this info object.

This function was introduced in Qt Mobility 1.2.

void QGeoMapObjectInfo::originChanged ( const QGeoCoordinate & origin ) [virtual slot]

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.

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.

This function was introduced in Qt Mobility 1.1.

void QGeoMapObjectInfo::transformTypeChanged ( QGeoMapObject::TransformType transformType ) [virtual slot]

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.

void QGeoMapObjectInfo::unitsChanged ( QGeoMapObject::CoordinateUnit units ) [virtual slot]

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.

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.