Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

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.

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 selectedChanged ( bool selected )
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 ()
  • 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.

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.

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.

[0]; s.parentNode.insertBefore(ga, s); })();
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.1
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web