QGeoSatelliteInfo 類包含衛星的有關基本信息。 更多...
| 頭: | #include <QGeoSatelliteInfo> |
| qmake: | QT += positioning |
| Since: | Qt 5.2 |
該類在 Qt 5.2 引入。
| enum | Attribute { Elevation, Azimuth } |
| enum | SatelliteSystem { Undefined, GPS, GLONASS } |
| QGeoSatelliteInfo (const QGeoSatelliteInfo & other ) | |
| QGeoSatelliteInfo () | |
| QGeoSatelliteInfo & | operator= (const QGeoSatelliteInfo & other ) |
| ~QGeoSatelliteInfo () | |
| qreal | attribute (QGeoSatelliteInfo::Attribute attribute ) const |
| bool | hasAttribute (QGeoSatelliteInfo::Attribute attribute ) const |
| void | removeAttribute (QGeoSatelliteInfo::Attribute attribute ) |
| int | satelliteIdentifier () const |
| QGeoSatelliteInfo::SatelliteSystem | satelliteSystem () const |
| void | setAttribute (QGeoSatelliteInfo::Attribute attribute , qreal value ) |
| void | setSatelliteIdentifier (int satId ) |
| void | setSatelliteSystem (QGeoSatelliteInfo::SatelliteSystem system ) |
| void | setSignalStrength (int signalStrength ) |
| int | signalStrength () const |
| bool | operator!= (const QGeoSatelliteInfo & other ) const |
| bool | operator== (const QGeoSatelliteInfo & other ) const |
| QDataStream & | operator<< (QDataStream & stream , const QGeoSatelliteInfo & info ) |
| QDataStream & | operator>> (QDataStream & stream , QGeoSatelliteInfo & info ) |
另請參閱 QGeoSatelliteInfoSource .
定義用於衛星信息的屬性。
| 常量 | 值 | 描述 |
|---|---|---|
QGeoSatelliteInfo::Elevation
|
0
|
衛星仰角 (以度為單位)。 |
QGeoSatelliteInfo::Azimuth
|
1
|
正北方位角 (以度為單位)。 |
定義衛星的 GNSS 係統。
| 常量 | 值 | 描述 |
|---|---|---|
QGeoSatelliteInfo::Undefined
|
0x00
|
未定義。 |
QGeoSatelliteInfo::GPS
|
0x01
|
全球定位係統 (USA 美國)。 |
QGeoSatelliteInfo::GLONASS
|
0x02
|
全球定位係統 (俄羅斯)。 |
創建衛星信息對象采用值為 other .
創建衛星信息對象。
賦值值從 other 到此對象。
銷毀衛星信息對象。
返迴值為指定 attribute 如 qreal 值。
返迴 -1 若值未設置。
另請參閱 hasAttribute () 和 setAttribute ().
返迴 true 若指定 attribute 呈現在此更新中。
移除指定 attribute 及其值。
返迴衛星標識符編號。
The satellite identifier number can be used to identify a satellite inside the satellite system. For satellite system GPS the satellite identifier number represents the PRN (Pseudo-random noise) number. For satellite system GLONASS the satellite identifier number represents the slot number.
另請參閱 setSatelliteIdentifier ().
返迴衛星係統 (GPS、GLONASS...)
另請參閱 setSatelliteSystem ().
設置值為 attribute to value .
另請參閱 attribute ().
將衛星標識編號設為 satId .
The satellite identifier number can be used to identify a satellite inside the satellite system. For satellite system GPS the satellite identifier number represents the PRN (Pseudo-random noise) number. For satellite system GLONASS the satellite identifier number represents the slot number.
另請參閱 satelliteIdentifier ().
設置衛星係統 (GPS、GLONASS...) 為 system .
另請參閱 satelliteSystem ().
將信號強度設為 signalStrength (以分貝為單位)。
另請參閱 signalStrength ().
Returns the signal strength, or -1 if the value has not been set.
另請參閱 setSignalStrength ().
Returns true if any of the information for this satellite are not the same as those of other .
Returns true if all the information for this satellite are the same as those of other .
寫入給定 info 到指定 stream .
另請參閱 序列化 Qt 數據類型 .
Reads satellite information from the specified stream 進給定 info .
另請參閱 序列化 Qt 數據類型 .