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  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

BoundingBox

The BoundingBox element represents a rectangular geographic area. More...

Inherits QtObject

This type was introduced in Qt Location 5.0.

Properties

Detailed Description

A BoundingBox is described by a Coordinate which represents the top-left of the BoundingBox and a second Coordinate which represents the bottom-right of BoundingBox.

A BoundingBox is considered invalid if the top-left or bottom-right coordinates are invalid or if the top-left coordinate is South of the bottom-right coordinate.

Bounding boxes can never cross the poles.

If the height or center of a bounding box is adjusted such that it would cross one of the poles the height is modified such that the bounding box touches but does not cross the pole and that the center coordinate is still in the center of the bounding box.

Example Usage

The following code snippet shows the declaration of a BoundingBox element.

 BoundingBox {
     topLeft: Coordinate {
         latitude: 23.34
         longitude: 44.4
     }
     bottomRight: Coordinate {
         latitude: 22.25
         longitude: 42.88
     }
 }

This could then be used, for example, as a region to scan for landmarks, or refining searches.

See also QGeoBoundingBox and ..

Property Documentation

bottomLeft : Coordinate

This property holds the bottom left coordinate of this bounding box.

Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change.

See also QGeoBoundingBox.


bottomRight : Coordinate

This property holds the bottom right coordinate of this bounding box.

Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change.

See also QGeoBoundingBox.


For details on how to use this property to interface between C++ and QML see "Interfaces between C++ and QML Code".


center : Coordinate

This property holds the center coordinate of this bounding box.

Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change.

See also QGeoBoundingBox.


height : double

This property holds the height of this bounding box (in degrees).

See also QGeoBoundingBox.


topLeft : Coordinate

This property holds the top left coordinate of this bounding box.

Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change.

See also QGeoBoundingBox.


topRight : Coordinate

This property holds the top right coordinate of this bounding box.

Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change.

See also QGeoBoundingBox.


width : double

This property holds the width of this bounding box (in degrees).

See also QGeoBoundingBox.


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 5.0-snapshot
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