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.