QGeoSatelliteInfo Class

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

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

该类在 Qt 5.2 引入。

公共类型

enum 属性 { Elevation, Azimuth }
enum SatelliteSystem { Undefined, GPS, GLONASS }

公共函数

QGeoSatelliteInfo (const QGeoSatelliteInfo & other )
QGeoSatelliteInfo ()
QGeoSatelliteInfo & operator= (const QGeoSatelliteInfo & other )
~QGeoSatelliteInfo ()
qreal 属性 (QGeoSatelliteInfo::Attribute 属性 ) const
bool hasAttribute (QGeoSatelliteInfo::Attribute 属性 ) const
void removeAttribute (QGeoSatelliteInfo::Attribute 属性 )
int satelliteIdentifier () const
QGeoSatelliteInfo::SatelliteSystem satelliteSystem () const
void setAttribute (QGeoSatelliteInfo::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 .

成员类型文档编制

enum QGeoSatelliteInfo:: 属性

Defines the attributes for the satellite information.

常量 描述
QGeoSatelliteInfo::Elevation 0 The elevation of the satellite, in degrees.
QGeoSatelliteInfo::Azimuth 1 The azimuth to true north, in degrees.

enum QGeoSatelliteInfo:: SatelliteSystem

Defines the GNSS system of the satellite.

常量 描述
QGeoSatelliteInfo::Undefined 0x00 Not defined.
QGeoSatelliteInfo::GPS 0x01 Global Positioning System (USA).
QGeoSatelliteInfo::GLONASS 0x02 Global Positioning System (Russia).

成员函数文档编制

QGeoSatelliteInfo:: QGeoSatelliteInfo (const QGeoSatelliteInfo & other )

Creates a satellite information object with the values of other .

QGeoSatelliteInfo:: QGeoSatelliteInfo ()

Creates a satellite information object.

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

Assigns the values from other 到此对象。

QGeoSatelliteInfo:: ~QGeoSatelliteInfo ()

Destroys a satellite information object.

qreal QGeoSatelliteInfo:: 属性 ( QGeoSatelliteInfo::Attribute 属性 ) const

Returns the value of the specified 属性 as a qreal value.

Returns -1 if the value has not been set.

另请参阅 hasAttribute () 和 setAttribute ().

bool QGeoSatelliteInfo:: hasAttribute ( QGeoSatelliteInfo::Attribute 属性 ) const

返回 true 若指定 属性 is present in this update.

void QGeoSatelliteInfo:: removeAttribute ( QGeoSatelliteInfo::Attribute 属性 )

移除指定 属性 and its value.

int QGeoSatelliteInfo:: satelliteIdentifier () const

Returns the satellite identifier number.

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

Returns the Satellite System (GPS, GLONASS, ...)

另请参阅 setSatelliteSystem ().

void QGeoSatelliteInfo:: setAttribute ( QGeoSatelliteInfo::Attribute 属性 , qreal value )

Sets the value for 属性 to value .

另请参阅 属性 ().

void QGeoSatelliteInfo:: setSatelliteIdentifier ( int satId )

Sets the satellite identifier number to 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 )

Sets the Satellite System (GPS, GLONASS, ...) to system .

另请参阅 satelliteSystem ().

void QGeoSatelliteInfo:: setSignalStrength ( int signalStrength )

Sets the signal strength to signalStrength , in decibels.

另请参阅 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 .

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 数据类型 .