QGeoSatelliteInfo Class

QGeoSatelliteInfo クラスは、衛星の基本情報を保持しています。詳細...

ヘッダ #include <QGeoSatelliteInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS Positioning)
target_link_libraries(mytarget PRIVATE Qt6::Positioning)
qmake: QT += positioning

パブリック型

enum Attribute { Elevation, Azimuth }
enum SatelliteSystem { Undefined, GPS, GLONASS, GALILEO, BEIDOU, …, CustomType }

パブリック関数

QGeoSatelliteInfo()
QGeoSatelliteInfo(const QGeoSatelliteInfo &other)
(since 6.2) QGeoSatelliteInfo(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
(since 6.2) void swap(QGeoSatelliteInfo &other)
(since 6.2) QGeoSatelliteInfo &operator=(QGeoSatelliteInfo &&other)
QGeoSatelliteInfo &operator=(const QGeoSatelliteInfo &other)
bool operator!=(const QGeoSatelliteInfo &lhs, const QGeoSatelliteInfo &rhs)
QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info)
bool operator==(const QGeoSatelliteInfo &lhs, const QGeoSatelliteInfo &rhs)
QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info)

詳細説明

QGeoSatelliteInfoSourceも参照してください

メンバー型ドキュメント

enum QGeoSatelliteInfo::Attribute

衛星情報の属性を定義します。

定数説明
QGeoSatelliteInfo::Elevation0衛星の高度を度単位で表す。
QGeoSatelliteInfo::Azimuth1真北に対する方位角。

enum QGeoSatelliteInfo::SatelliteSystem

衛星のGNSSシステムを定義する。

定数説明
QGeoSatelliteInfo::Undefined0x00定義されていない。
QGeoSatelliteInfo::GPS0x01全地球測位システム(アメリカ)。
QGeoSatelliteInfo::GLONASS0x02全地球測位システム(ロシア)。
QGeoSatelliteInfo::GALILEO0x03全地球航法衛星システム(EU)。
QGeoSatelliteInfo::BEIDOU0x04BeiDou航法衛星システム(中国)。
QGeoSatelliteInfo::QZSS0x05準天頂衛星システム(日本)。
QGeoSatelliteInfo::Multiple0xFFこのタイプは通常、情報が複数の衛星システムをサポートするデバイスから受信されたことを示し、衛星システムは明示的に指定されていません。データ・ソースによっては、他の情報を使って実際のシステム・タイプを判断することもある。このタイプの使用例としては、NMEA $GNGSA メッセージがあり、使用されている衛星の ID が含まれていますが、システム・タイプは明示されていません。
QGeoSatelliteInfo::CustomType0x100ユーザが使用できる最初のタイプ。例えば、QNmeaSatelliteInfoSource でNMEAデータ解析を再実装する場合など。ユーザは、CustomType + 1CustomType + 2 などを使って、さらに型を追加することができる。

メンバー関数ドキュメント

QGeoSatelliteInfo::QGeoSatelliteInfo()

衛星情報オブジェクトを作成する。

QGeoSatelliteInfo::QGeoSatelliteInfo(const QGeoSatelliteInfo &other)

other の値を持つ衛星情報オブジェクトを作成する。

[noexcept, since 6.2] QGeoSatelliteInfo::QGeoSatelliteInfo(QGeoSatelliteInfo &&other)

other から移動して衛星情報オブジェクトを作成する。

移動元の QGeoSatelliteInfo は、破棄または代入しかできないことに注意。デストラクタや代入演算子以外の関数を呼び出した場合の効果は未定義です。

この関数は Qt 6.2 で導入されました。

[noexcept] QGeoSatelliteInfo::~QGeoSatelliteInfo()

衛星情報オブジェクトを破棄する。

[invokable] qreal QGeoSatelliteInfo::attribute(QGeoSatelliteInfo::Attribute attribute) const

指定されたattribute の値を qreal 値として返す。

値が設定されていない場合は-1を返す。

注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。

hasAttribute() およびsetAttribute()も参照

[invokable] bool QGeoSatelliteInfo::hasAttribute(QGeoSatelliteInfo::Attribute attribute) const

指定されたattribute がこの更新に存在する場合、true を返す。

注意: この関数はメタオブジェクトシステムおよび QML から呼び出すことができます。Q_INVOKABLE を参照してください。

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

指定されたattribute とその値を削除します。

int QGeoSatelliteInfo::satelliteIdentifier() const

衛星識別子番号を返す。

衛星識別子番号は、衛星システム内で衛星を識別するために使用できる。

実際の値は、プラットフォームや選択したバックエンドによって異なる場合があります。

例えば、nmeaプラグインを使用している場合、GPS衛星システムの衛星識別子はPRN(疑似ランダムノイズ)番号を表し、GLONASS衛星システムの衛星識別子はスロット番号を表す。

NMEAベースのバックエンドでは、衛星識別子は、それが他のソースから利用できない場合は、衛星システムの種類を決定するために使用することができます。異なる衛星システムのID範囲を確認するには、衛星IDリストを参照することができます。

注: プラットフォームおよび選択したバックエンドによっては、異なる衛星システムの衛星 ID 範囲が交差することがある。衛星を一意に識別するには、satelliteIndetifier() とsatelliteSystem() の組み合わせを使用する必要があります。

注: プロパティ satelliteIdentifier のゲッター関数。

setSatelliteIdentifier() およびsatelliteSystem()も参照

QGeoSatelliteInfo::SatelliteSystem QGeoSatelliteInfo::satelliteSystem() const

衛星システム(GPS、GLONASS、...)を返す。

注: この値は、satelliteIdentifier() と共に使用することで、衛星を一意に識別することができる。

: プロパティ satelliteSystem のゲッター関数。

setSatelliteSystem() およびsatelliteIdentifier()も参照

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

attribute の値をvalue に設定する。

attribute()も参照のこと

void QGeoSatelliteInfo::setSatelliteIdentifier(int satId)

衛星識別子番号をsatId に設定する。

衛星識別子番号は、衛星システム内で衛星を識別するために使用できる。

実際の値は、プラットフォームや選択したバックエンドによって異なる。

例えば、nmeaプラグインを使用している場合、GPS衛星システムの衛星識別子はPRN(疑似ランダムノイズ)番号を表し、GLONASS衛星システムの衛星識別子はスロット番号を表す。

satelliteIdentifier()も参照

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

衛星システム(GPS、GLONASS、...)をsystem に設定する。

satelliteSystem()も参照

void QGeoSatelliteInfo::setSignalStrength(int signalStrength)

signalStrength に信号強度をデシベル単位で設定する。

signalStrength()も参照

int QGeoSatelliteInfo::signalStrength() const

信号強度を返すか、値が設定されていない場合は -1。

注: プロパティ signalStrength のゲッター関数。

setSignalStrength()も参照

[noexcept, since 6.2] void QGeoSatelliteInfo::swap(QGeoSatelliteInfo &other)

この衛星情報をother と交換する。この操作は非常に高速で、失敗することはありません。

この関数は Qt 6.2 で導入されました。

[noexcept, since 6.2] QGeoSatelliteInfo &QGeoSatelliteInfo::operator=(QGeoSatelliteInfo &&other)

Move-other の値をこのオブジェクトに代入する。

move-fromQGeoSatelliteInfo 、破棄または代入しかできないことに注意。デストラクタや代入演算子以外の関数を呼び出した場合の効果は未定義です。

この関数は Qt 6.2 で導入されました。

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

other の値をこのオブジェクトに割り当てます。

関連する非会員

bool operator!=(const QGeoSatelliteInfo &lhs, const QGeoSatelliteInfo &rhs)

lhs サテライトのパラメータのいずれかがrhs のパラメータと同じでない場合はtrue を返す。 そうでない場合はfalse を返す。

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

指定されたstream に、指定されたinfo を書き込みます。

Qt データ型のシリアライズも参照してください

bool operator==(const QGeoSatelliteInfo &lhs, const QGeoSatelliteInfo &rhs)

lhs サテライトのすべてのパラメータがrhs のパラメータと同じ場合はtrue を返す。 そうでない場合はfalse を返す。

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

指定されたstream から、指定されたinfo に衛星情報を読み込みます。

Qt データ型のシリアライズも参照してください

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.