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  · 

QGeoBoundingArea Class

The QGeoBoundingArea class defines a geographic area. More...

 #include <QGeoBoundingArea>

Inherited by: QGeoBoundingBox and QGeoBoundingCircle.

This class was introduced in Qt Location 5.0.

Public Types

enum AreaType { UnknownType, BoxType, CircleType }

Public Functions

QGeoBoundingArea()
QGeoBoundingArea(const QGeoBoundingArea & other)
~QGeoBoundingArea()
bool contains(const QGeoCoordinate & coordinate) const
bool isEmpty() const
bool isValid() const
AreaType type() const
bool operator!=(const QGeoBoundingArea & other) const
QGeoBoundingArea & operator=(const QGeoBoundingArea & other)
bool operator==(const QGeoBoundingArea & other) const

Detailed Description

The QGeoBoundingArea class defines a geographic area.

This class is the base class for classes which specify a geographic area.

For the sake of consistency, subclasses should describe the specific details of the associated areas in terms of QGeoCoordinate instances and distances in meters.

Member Type Documentation

enum QGeoBoundingArea::AreaType

Describes the type of a bounding area.

ConstantValueDescription
QGeoBoundingArea::UnknownType0A bounding area of unknown type.
QGeoBoundingArea::BoxType1A box shaped bounding area.
QGeoBoundingArea::CircleType2A circular bounding area.

Member Function Documentation

QGeoBoundingArea::QGeoBoundingArea()

Constructs a new invalid bounding area of UnknownType.

QGeoBoundingArea::QGeoBoundingArea(const QGeoBoundingArea & other)

Constructs a new bounding area which is a copy of other.

QGeoBoundingArea::~QGeoBoundingArea()

Destroys this bounding area.

bool QGeoBoundingArea::contains(const QGeoCoordinate & coordinate) const

Returns whether the coordinate coordinate is contained within this area.

bool QGeoBoundingArea::isEmpty() const

Returns whether this bounding area is empty.

An empty area is a region which has a geometrical area of 0.

bool QGeoBoundingArea::isValid() const

Returns whether this bounding area is valid.

An area is considered to be invalid if some of the data that is required to unambiguously describe the area has not been set or has been set to an unsuitable value.

AreaType QGeoBoundingArea::type() const

Returns the type of this area.

bool QGeoBoundingArea::operator!=(const QGeoBoundingArea & other) const

Returns true if the other bounding area is not equivalent to this bounding area, otherwise returns false.

QGeoBoundingArea & QGeoBoundingArea::operator=(const QGeoBoundingArea & other)

Assigns other to this bounding area and returns a reference to this bounding area.

bool QGeoBoundingArea::operator==(const QGeoBoundingArea & other) const

Returns true if the other bounding area is equivalent to this bounding area, otherwise returns false

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