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 &&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::NoDirection | 0 | 指示テキストに関連付けられた方向はありません。 |
QGeoManeuver::DirectionForward | 1 | この指示は、進行方向を変更する必要がないことを示しています。 |
QGeoManeuver::DirectionBearRight | 2 | この指示は、進行方向を右にずらすべきであることを示しています。 |
QGeoManeuver::DirectionLightRight | 3 | この指示は、わずかに右へ曲がる必要があることを示しています。 |
QGeoManeuver::DirectionRight | 4 | この指示は、右へ曲がる必要があることを示しています。 |
QGeoManeuver::DirectionHardRight | 5 | この指示は、右へきつく曲がる必要があることを示しています。 |
QGeoManeuver::DirectionUTurnRight | 6 | この指示は、右へのUターンが必要であることを示しています。 |
QGeoManeuver::DirectionUTurnLeft | 7 | この指示は、左へのUターンが必要であることを示しています。 |
QGeoManeuver::DirectionHardLeft | 8 | この指示は、左へ鋭く曲がる必要があることを示しています。 |
QGeoManeuver::DirectionLeft | 9 | この指示は、左に曲がる必要があることを示しています。 |
QGeoManeuver::DirectionLightLeft | 10 | この指示は、左へ軽く曲がる必要があることを示しています。 |
QGeoManeuver::DirectionBearLeft | 11 | この指示は、進行方向を左に保つべきであることを示しています。 |
物件資料
[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 の内容から、マニューバオブジェクトを生成します。
[constexpr noexcept default] QGeoManeuver::QGeoManeuver(QGeoManeuver &&other)
QGeoManeuver のインスタンスをMoveコンストラクタで生成します。
[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 と等しいかどうかを返します。
© 2026 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.