QGeoSatelliteInfo 類

The QGeoSatelliteInfo class contains basic information about a satellite. 更多...

頭: #include <QGeoSatelliteInfo>
qmake: QT += positioning
Since: Qt 5.2

公共類型

enum Attribute { Elevation, Azimuth }
enum SatelliteSystem { Undefined, GPS, GLONASS }

公共函數

QGeoSatelliteInfo ()
QGeoSatelliteInfo (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
QGeoSatelliteInfo & operator= (const QGeoSatelliteInfo & other )
bool operator== (const QGeoSatelliteInfo & other ) const
QDataStream & operator<< (QDataStream & stream , const QGeoSatelliteInfo & info )
QDataStream & operator>> (QDataStream & stream , QGeoSatelliteInfo & info )

詳細描述

The QGeoSatelliteInfo class contains basic information about a satellite.

另請參閱 QGeoSatelliteInfoSource .

成員類型文檔編製

enum QGeoSatelliteInfo:: Attribute

定義用於衛星信息的屬性。

常量 描述
QGeoSatelliteInfo::Elevation 0 衛星仰角 (以度為單位)。
QGeoSatelliteInfo::Azimuth 1 正北方位角 (以度為單位)。

enum QGeoSatelliteInfo:: SatelliteSystem

定義衛星的 GNSS 係統。

常量 描述
QGeoSatelliteInfo::Undefined 0x00 未定義。
QGeoSatelliteInfo::GPS 0x01 全球定位係統 (USA 美國)。
QGeoSatelliteInfo::GLONASS 0x02 全球定位係統 (俄羅斯)。

成員函數文檔編製

QGeoSatelliteInfo:: QGeoSatelliteInfo ()

創建衛星信息對象。

QGeoSatelliteInfo:: QGeoSatelliteInfo (const QGeoSatelliteInfo & other )

創建衛星信息對象采用值為 other .

QGeoSatelliteInfo:: ~QGeoSatelliteInfo ()

銷毀衛星信息對象。

qreal QGeoSatelliteInfo:: attribute ( QGeoSatelliteInfo::Attribute attribute ) const

返迴值為指定 attribute 如 qreal 值。

返迴 -1 若值未設置。

另請參閱 hasAttribute () 和 setAttribute ().

bool QGeoSatelliteInfo:: hasAttribute ( QGeoSatelliteInfo::Attribute attribute ) const

返迴 true 若指定 attribute 呈現在此更新中。

void QGeoSatelliteInfo:: removeAttribute ( QGeoSatelliteInfo::Attribute attribute )

移除指定 attribute 及其值。

int QGeoSatelliteInfo:: satelliteIdentifier () const

返迴衛星標識符編號。

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 ().

QGeoSatelliteInfo::SatelliteSystem QGeoSatelliteInfo:: satelliteSystem () const

返迴衛星係統 (GPS、GLONASS...)

另請參閱 setSatelliteSystem ().

void QGeoSatelliteInfo:: setAttribute ( QGeoSatelliteInfo::Attribute attribute , qreal value )

設置值為 attribute to value .

另請參閱 attribute ().

void QGeoSatelliteInfo:: setSatelliteIdentifier ( int satId )

將衛星標識編號設為 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 ().

void QGeoSatelliteInfo:: setSatelliteSystem ( QGeoSatelliteInfo::SatelliteSystem system )

設置衛星係統 (GPS、GLONASS...) 為 system .

另請參閱 satelliteSystem ().

void QGeoSatelliteInfo:: setSignalStrength ( int signalStrength )

將信號強度設為 signalStrength (以分貝為單位)。

另請參閱 signalStrength ().

int QGeoSatelliteInfo:: signalStrength () const

Returns the signal strength, or -1 if the value has not been set.

另請參閱 setSignalStrength ().

bool QGeoSatelliteInfo:: operator!= (const QGeoSatelliteInfo & other ) const

Returns true if any of the information for this satellite are not the same as those of other .

QGeoSatelliteInfo &QGeoSatelliteInfo:: operator= (const QGeoSatelliteInfo & other )

賦值值從 other 到此對象。

bool QGeoSatelliteInfo:: operator== (const QGeoSatelliteInfo & other ) const

Returns true if all the information for this satellite are the same as those of other .

相關非成員

QDataStream & operator<< ( QDataStream & stream , const QGeoSatelliteInfo & info )

寫入給定 info 到指定 stream .

另請參閱 序列化 Qt 數據類型 .

QDataStream & operator>> ( QDataStream & stream , QGeoSatelliteInfo & info )

Reads satellite information from the specified stream 進給定 info .

另請參閱 序列化 Qt 數據類型 .