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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.