QGeoManeuver Class

QGeoManeuver クラスは、2 つの QGeoRouteSegment が出会うポイントに関連する情報を表します。詳細...

Header: #include <QGeoManeuver>
qmake: QT += location

パブリックタイプ

enum InstructionDirection { NoDirection, DirectionForward, DirectionBearRight, DirectionLightRight, DirectionRight, …, DirectionBearLeft }

プロパティ

パブリック機能

QGeoManeuver()
QGeoManeuver(const QGeoManeuver &other)
~QGeoManeuver()
QGeoManeuver::InstructionDirection direction() const
qreal distanceToNextInstruction() const
QVariantMap extendedAttributes() const
QString instructionText() const
bool isValid() const
QGeoCoordinate position() const
int timeToNextInstruction() const
QGeoCoordinate waypoint() const
QGeoManeuver &operator=(const QGeoManeuver &other)
bool operator!=(const QGeoManeuver &lhs, const QGeoManeuver &rhs)
bool operator==(const QGeoManeuver &lhs, const QGeoManeuver &rhs)

詳細説明

QGeoRouteSegment インスタンスはルーティンググラフのエッジと考えることができ、QGeoManeuver インスタンスはグラフの頂点に付けられたオプションのラベルである。

QGeoManeuver インスタンスで最も興味深い情報は、通常、instructionText() とposition() でアクセスできる、提供するテキスト ナビゲーションと提供する位置です。

また、waypoint() が有効なQGeoCoordinate を返すかどうかをチェックすることで、ルーティングのウェイポイントを通過したかどうかを判断することも可能である。

メンバ型ドキュメント

enum QGeoManeuver::InstructionDirection

QGeoManaeuver に関連付けられた指示テキストに関連付けられた方向の変化を記述する。

定数説明
QGeoManeuver::NoDirection0指示テキストに関連付けられた方向はない。
QGeoManeuver::DirectionForward1この命令は進行方向を変更する必要がないことを示している。
QGeoManeuver::DirectionBearRight2指示は進行方向を右に向けるべきであることを示している。
QGeoManeuver::DirectionLightRight3指示は、軽い右旋回が必要であることを示している。
QGeoManeuver::DirectionRight4右折が必要であることを示す指示。
QGeoManeuver::DirectionHardRight5右への急旋回が必要であることを示す指示。
QGeoManeuver::DirectionUTurnRight6指示は右へのUターンが必要であることを示しています。
QGeoManeuver::DirectionUTurnLeft7左へのUターンが必要であることを示す指示。
QGeoManeuver::DirectionHardLeft8この指示は、左へのハードターンが必要であることを示しています。
QGeoManeuver::DirectionLeft9左折が必要であることを示す指示。
QGeoManeuver::DirectionLightLeft10左に軽く曲がるように指示されています。
QGeoManeuver::DirectionBearLeft11進行方向を左に向けるように指示されている。

物件資料

[read-only] direction : const InstructionDirection

このプロパティは、関連する命令に関連する方向を保持する。

アクセス関数:

QGeoManeuver::InstructionDirection direction() const

[read-only] distanceToNextInstruction : const qreal

このプロパティの具体的な内容は、次の通りである。

アクセス関数

qreal distanceToNextInstruction() const

[read-only, since QtLocation 5.11] extendedAttributes : const QVariantMap

このプロパティは、このマヌーバに関連する拡張属性を保持します。

このプロパティはQtLocation 5.11で導入されました。

アクセス関数です:

QVariantMap extendedAttributes() const

[read-only] instructionText : const QString

このプロパティは、テキストによるナビゲーション指示を保持する。

アクセス関数:

QString instructionText() const

[read-only] position : const QGeoCoordinate

このプロパティは、instructionText が表示されるべき位置を保持する。

アクセス関数です:

QGeoCoordinate position() const

[read-only] timeToNextInstruction : const int

このプロパティは、関連する命令が発行された時点から、次の命令が発行されるべき時点ま でにかかる推定時間を秒単位で保持する。

アクセス関数

int timeToNextInstruction() const

[read-only] valid : const bool

このプロパティは、このマニューバーが有効かどうかを保持する。

無効なマニューバは、QGeoRouteSegment インスタンスのエンドポイントに添付する必要がある情報がない場合に使用される。

アクセス関数:

bool isValid() const

[read-only] waypoint : const QGeoCoordinate

このプロパティは、このマヌーバに関連付けられているウェイポイントを保持する。

このマヌーバに関連付けられているウェイポイントがない場合、このプロパティは無効なQGeoCoordinate を保持する。

アクセス関数

QGeoCoordinate waypoint() const

メンバ関数ドキュメント

QGeoManeuver::QGeoManeuver()

無効なマヌーバオブジェクトを構築する。

このマニューバは、 setPosition()、 setInstructionText()、 setDirection()、 setTimeToNextInstruction()、 setDistanceToNextInstruction()、または setWaypoint() のいずれかが呼び出されるまで無効なままです。

[noexcept] QGeoManeuver::QGeoManeuver(const QGeoManeuver &other)

other の内容からマヌーバオブジェクトを構築する。

[noexcept] QGeoManeuver::~QGeoManeuver()

このマニューバーオブジェクトを破壊する。

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

このマヌーバオブジェクトにother を割り当て、このマヌーバオブジェクトへのリファレンスを返す。

関連する非会員

[noexcept] bool operator!=(const QGeoManeuver &lhs, const QGeoManeuver &rhs)

lhs マニューバーがrhs と等しくないかどうかを返す。

[noexcept] bool operator==(const QGeoManeuver &lhs, const QGeoManeuver &rhs)

lhs マニューバーがrhs と等しいかどうかを返す。

© 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.