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.

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.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  2. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  5. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  6. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 50
  4. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  5. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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.2
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