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  · 

QGeoBoundingCircle Class

The QGeoBoundingCircle class defines a circular geographic area. More...

 #include <QGeoBoundingCircle>

Inherits: QGeoBoundingArea.

This class was introduced in Qt Location 5.0.

Public Functions

QGeoBoundingCircle()
QGeoBoundingCircle(const QGeoCoordinate & center, qreal radius = -1.0)
QGeoBoundingCircle(const QGeoBoundingCircle & other)
QGeoBoundingCircle(const QGeoBoundingArea & other)
~QGeoBoundingCircle()
QGeoCoordinate center() const
qreal radius() const
void setCenter(const QGeoCoordinate & center)
void setRadius(qreal radius)
void translate(double degreesLatitude, double degreesLongitude)
QGeoBoundingCircle translated(double degreesLatitude, double degreesLongitude) const
bool operator!=(const QGeoBoundingArea & other) const
bool operator!=(const QGeoBoundingCircle & other) const
QGeoBoundingCircle & operator=(const QGeoBoundingCircle & other)
bool operator==(const QGeoBoundingArea & other) const
bool operator==(const QGeoBoundingCircle & other) const

Detailed Description

The QGeoBoundingCircle class defines a circular geographic area.

The circle is defined in terms of a QGeoCoordinate which specifies the center of the circle and a qreal which specifies the radius of the circle in meters.

The circle is considered invalid if the center coordinate is invalid or if the radius is less than zero.

Member Function Documentation

QGeoBoundingCircle::QGeoBoundingCircle()

Constructs a new, invalid bounding circle.

QGeoBoundingCircle::QGeoBoundingCircle(const QGeoCoordinate & center, qreal radius = -1.0)

Constructs a new bounding circle centered at center and with a radius of radius meters.

QGeoBoundingCircle::QGeoBoundingCircle(const QGeoBoundingCircle & other)

Constructs a new bounding circle from the contents of other.

QGeoBoundingCircle::QGeoBoundingCircle(const QGeoBoundingArea & other)

Constructs a new bounding circle from the contents of other.

QGeoBoundingCircle::~QGeoBoundingCircle()

Destroys this bounding circle.

QGeoCoordinate QGeoBoundingCircle::center() const

Returns the center coordinate of this bounding circle.

See also setCenter().

qreal QGeoBoundingCircle::radius() const

Returns the radius in meters of this bounding circle.

See also setRadius().

void QGeoBoundingCircle::setCenter(const QGeoCoordinate & center)

Sets the center coordinate of this bounding circle to center.

See also center().

void QGeoBoundingCircle::setRadius(qreal radius)

Sets the radius in meters of this bounding circle to radius.

See also radius().

void QGeoBoundingCircle::translate(double degreesLatitude, double degreesLongitude)

Translates this bounding circle by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

QGeoBoundingCircle QGeoBoundingCircle::translated(double degreesLatitude, double degreesLongitude) const

Returns a copy of this bounding circle translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

See also translate().

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

Returns true if other is not equal to this bounding circle; otherwise returns false.

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

Returns whether this bounding circle is not equal to other.

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

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

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

Returns true if other is equal to this bounding circle; otherwise returns false.

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

Returns whether this bounding circle is equal to other.

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