The QGeoBoundingArea class defines a geographic area. More...
#include <QGeoBoundingArea>
Inherited by: QGeoBoundingBox and QGeoBoundingCircle.
This class was introduced in Qt Mobility 1.1.
enum | AreaType { BoxType, CircleType } |
virtual | ~QGeoBoundingArea () |
virtual bool | contains ( const QGeoCoordinate & coordinate ) const = 0 |
virtual bool | isEmpty () const = 0 |
virtual bool | isValid () const = 0 |
virtual AreaType | type () const = 0 |
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 metres.
Describes the type of a bounding area.
Constant | Value | Description |
---|---|---|
QGeoBoundingArea::BoxType | 0 | A box shaped bounding area. |
QGeoBoundingArea::CircleType | 1 | A circular bounding area. |
Destroys this bounding area.
Returns whether the coordinate coordinate is contained within this area.
This function was introduced in Qt Mobility 1.1.
Returns whether this bounding area is empty.
An empty area is a region which has a geometrical area of 0.
This function was introduced in Qt Mobility 1.1.
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.
This function was introduced in Qt Mobility 1.1.
Returns the type of this area.
This function was introduced in Qt Mobility 1.1.