QGeoPositionInfo Class ReferenceThe QGeoPositionInfo class contains information gathered on a global position, direction and velocity at a particular point in time. More... #include <QGeoPositionInfo> Public Types
Public Functions
Related Non-Members
Detailed DescriptionThe QGeoPositionInfo class contains information gathered on a global position, direction and velocity at a particular point in time. A QGeoPositionInfo contains, at a minimum, a geographical coordinate and a timestamp. It may also have heading and speed measurements as well as estimates of the accuracy of the provided data. See also QGeoPositionInfoSource. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QGeoPositionInfo::Heading | 0 | The bearing to true north, in degrees. |
QGeoPositionInfo::GroundSpeed | 1 | The ground speed, in metres/sec. |
QGeoPositionInfo::VerticalSpeed | 2 | The vertical speed, in metres/sec. |
QGeoPositionInfo::MagneticVariation | 3 | The angle between the horizontal component of the magnetic field and true north, in degrees. Also known as magnetic declination. A positive value indicates a clockwise direction from true north and a negative value indicates a counter-clockwise direction. |
QGeoPositionInfo::HorizontalAccuracy | 4 | The accuracy of the provided latitude-longitude value, in metres. |
QGeoPositionInfo::VerticalAccuracy | 5 | The accuracy of the provided altitude value, in metres. |
Creates an invalid QGeoPositionInfo object.
See also isValid().
Creates a QGeoPositionInfo for the given coordinate and dateTime.
Creates a QGeoPositionInfo with the values of other.
Destroys a QGeoPositionInfo object.
Returns the coordinate for this position.
Returns an invalid coordinate if no coordinate has been set.
See also setCoordinate().
Returns the date and time at which this position was reported, in UTC time.
Returns an invalid QDateTime if no date/time value has been set.
See also setDateTime().
Returns true if the specified property is present for this QGeoPositionInfo object.
Returns true if the dateTime() and coordinate() values are both valid.
See also QGeoCoordinate::isValid() and QDateTime::isValid().
Returns the value of the specified property as a qreal value.
Returns -1 if the value has not been set.
See also hasProperty() and setProperty().
Removes the specified property and its value.
Sets the coordinate for this position to coordinate.
See also coordinate().
Sets the date and time at which this position was reported to dateTime.
The dateTime must be in UTC time.
See also dateTime().
Sets the value for property to value.
See also property().
Returns true if any of this object's values are not the same as those of other.
Assigns the values from other to this QGeoPositionInfo.
Returns true if all of this object's values are the same as those of other.
Writes the given info to the specified stream.
See also Format of the QDataStream Operators.
Reads a coordinate from the specified stream into the given info.
See also Format of the QDataStream Operators.
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 qtmobility-1.0-tp | |
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 ! |
Copyright © 2000-2012 - www.developpez.com