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  · 

QGeoMapGroupObject Class Reference

The QGeoMapGroupObject class is a QGeoMapObject used to manager a group of other map objects. More...

 #include <QGeoMapGroupObject>

Inherits: QGeoMapObject.

This class was introduced in Qt Mobility 1.1.

Public Functions

QGeoMapGroupObject ()
~QGeoMapGroupObject ()
void addChildObject ( QGeoMapObject * childObject )
QList<QGeoMapObject *> childObjects () const
void clearChildObjects ()
void removeChildObject ( QGeoMapObject * childObject )
void setVisible ( bool visible )

Reimplemented Public Functions

virtual QGeoBoundingBox boundingBox () const
virtual bool contains ( const QGeoCoordinate & coordinate ) const
virtual void setMapData ( QGeoMapData * mapData )
virtual QGeoMapObject::Type type () const

Signals

void childAdded ( QGeoMapObject * childObject )
void childRemoved ( QGeoMapObject * childObject )
void childUpdated ( QGeoMapObject * childObject )

Additional Inherited Members

  • 6 properties inherited from QGeoMapObject
  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 3 protected functions inherited from QGeoMapObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QGeoMapGroupObject class is a QGeoMapObject used to manager a group of other map objects.

The QGeoMapGroupObject class can be used to quickly add and remove groups of objects to a map.

The map objects contained in the group will be ordered relative to one another in the usual manner, such that objects with higher z-values will be drawn over objects with lower z-values and objects with equal z-values will be drawn in insertion order.

This ordering of the objects will be independent of the other objects that are added to the map, since the z-value and insertion order of the QGeoMapGroupObject is used to determine where the group is placed in the scene.

Member Function Documentation

QGeoMapGroupObject::QGeoMapGroupObject ()

Constructs a new group object.

QGeoMapGroupObject::~QGeoMapGroupObject ()

Destroys this group object.

void QGeoMapGroupObject::addChildObject ( QGeoMapObject * childObject )

Adds childObject to the list of children of this map object.

The children objects are drawn in order of the QGeoMapObject::zValue() value. Children objects having the same z value will be drawn in the order they were added.

The map object will take ownership of childObject.

This function was introduced in Qt Mobility 1.1.

QGeoBoundingBox QGeoMapGroupObject::boundingBox () const [virtual]

Reimplemented from QGeoMapObject::boundingBox().

Returns a bounding box which contains this map object.

If this map object has children, the bounding box will be large enough to contain both this map object and all of its children.

This function was introduced in Qt Mobility 1.1.

void QGeoMapGroupObject::childAdded ( QGeoMapObject * childObject ) [signal]

This signal will be emitted when the map object childObject is added to the group.

This function was introduced in Qt Mobility 1.1.

QList<QGeoMapObject *> QGeoMapGroupObject::childObjects () const

Returns the children of this object.

This function was introduced in Qt Mobility 1.1.

void QGeoMapGroupObject::childRemoved ( QGeoMapObject * childObject ) [signal]

This signal will be emitted when the map object childObject is removed from the group.

This function was introduced in Qt Mobility 1.1.

void QGeoMapGroupObject::childUpdated ( QGeoMapObject * childObject ) [signal]

This signal will be emitted if the map object childObject has changed such that the corresponding QGeoMapObjectInfo class that handles the map-specific behaviours of the object needs to be informed of the change.

The map object childObject must belong to this group.

At the moment this is only emitted when the z-value of the child-objects are changed.

This function was introduced in Qt Mobility 1.2.

void QGeoMapGroupObject::clearChildObjects ()

Clears the children of this object.

The child objects will be deleted.

This function was introduced in Qt Mobility 1.1.

bool QGeoMapGroupObject::contains ( const QGeoCoordinate & coordinate ) const [virtual]

Reimplemented from QGeoMapObject::contains().

Returns whether coordinate is contained with the boundary of this map object.

If this map object has children, this function will return whether coordinate is contained within the boundary of this map object or within the boundary of any of its children.

This function was introduced in Qt Mobility 1.1.

void QGeoMapGroupObject::removeChildObject ( QGeoMapObject * childObject )

Removes childObject from the list of children of this map object.

The map object will release ownership of childObject.

This function was introduced in Qt Mobility 1.1.

void QGeoMapGroupObject::setMapData ( QGeoMapData * mapData ) [virtual]

Reimplemented from QGeoMapObject::setMapData().

This function was introduced in Qt Mobility 1.1.

void QGeoMapGroupObject::setVisible ( bool visible )

Sets whether this group of objects is visible to visible.

This function was introduced in Qt Mobility 1.2.

QGeoMapObject::Type QGeoMapGroupObject::type () const [virtual]

Reimplemented from QGeoMapObject::type().

This function was introduced in Qt Mobility 1.1.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  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 ? 43
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 9
Page suivante

Le Qt Labs au hasard

Logo

Génération de contenu dans des threads

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. 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