QGeoRouteSegment Class
QGeoRouteSegment クラスは、ルートのセグメントを表します。詳細...
Header: | #include <QGeoRouteSegment> |
qmake: | QT += location |
プロパティ
- distance : const qreal
- maneuver : const QGeoManeuver
- path : const QList<QGeoCoordinate>
- travelTime : const int
パブリック機能
QGeoRouteSegment() | |
QGeoRouteSegment(const QGeoRouteSegment &other) | |
~QGeoRouteSegment() | |
qreal | distance() const |
bool | isLegLastSegment() const |
bool | isValid() const |
QGeoManeuver | maneuver() const |
QGeoRouteSegment | nextRouteSegment() const |
QList<QGeoCoordinate> | path() const |
void | setNextRouteSegment(const QGeoRouteSegment &routeSegment) |
int | travelTime() const |
QGeoRouteSegment & | operator=(const QGeoRouteSegment &other) |
関連非会員
bool | operator!=(const QGeoRouteSegment &lhs, const QGeoRouteSegment &rhs) |
bool | operator==(const QGeoRouteSegment &lhs, const QGeoRouteSegment &rhs) |
詳細説明
QGeoRouteSegment インスタンスは、ルートセグメントの物理的なレイアウト、ルートの長さ、ルート セグメントを横断するのに必要な推定時間、およびルートセグメントの始点に関連付けられたオプ ションのQGeoManeuver に関する情報を持ちます。
QGeoRouteSegment インスタンスは、ルーティンググラフのエッジと考えることができます。QGeoManeuver インスタンスは、グラフの頂点に付けられたオプションのラベルです。
プロパティー ドキュメント
[read-only]
distance : const qreal
このプロパティは、ルートのこの区間がカバーする距離をメートル単位で保持する。
アクセス関数です:
qreal | distance() const |
[read-only]
maneuver : const QGeoManeuver
このプロパティは、このルートセグメントのマヌーバを保持する。
このルートセグメントの始点に情報が付加されていない場合、無効なQGeoManeuver を保持する。
アクセス関数
QGeoManeuver | maneuver() const |
[read-only]
path : const QList<QGeoCoordinate>
このプロパティは、ルートのこのルートセグメントの幾何学的形状を保持する。
座標は、このルートセグメントを旅行する人が通過する順番に記載する必要があります。
アクセス関数
QList<QGeoCoordinate> | path() const |
[read-only]
travelTime : const int
このプロパティは、このセグメントを横断するのにかかる推定時間を秒単位で保持する。
アクセス関数
int | travelTime() const |
メンバー関数ドキュメント
QGeoRouteSegment::QGeoRouteSegment()
無効なルートセグメントオブジェクトを構築します。
setNextRouteSegment()、 setTravelTime()、 setDistance()、 setPath() または setManeuver() のいずれかが呼び出されるまで、ルートセグメントは無効なままです。
[noexcept]
QGeoRouteSegment::QGeoRouteSegment(const QGeoRouteSegment &other)
other の内容からルートセグメントオブジェクトを構築する。
[noexcept]
QGeoRouteSegment::~QGeoRouteSegment()
このルートセグメントオブジェクトを破棄します。
bool QGeoRouteSegment::isLegLastSegment() const
このルートセグメントがルートレッグの最後のセグメントであるかどうかを返します。
bool QGeoRouteSegment::isValid() const
このルートセグメントが有効かどうかを返します。
ルートの最後のルートセグメントでnextRouteSegment() をコールした場合は、 無効なルートセグメントが返されます。
QGeoRouteSegment QGeoRouteSegment::nextRouteSegment() const
ルート内の次のルートセグメントを返します。
これがルート内の最後のルートセグメントである場合は、無効なルートセグメントを返します。
setNextRouteSegment()も参照ください 。
void QGeoRouteSegment::setNextRouteSegment(const QGeoRouteSegment &routeSegment)
ルートの次のルートセグメントをrouteSegment に設定する。
nextRouteSegment()も参照 。
[noexcept]
QGeoRouteSegment &QGeoRouteSegment::operator=(const QGeoRouteSegment &other)
このルートセグメントオブジェクトにother を割り当て、このルート セグメントオブジェクトへの参照を返します。
関連する非会員
[noexcept]
bool operator!=(const QGeoRouteSegment &lhs, const QGeoRouteSegment &rhs)
ルートセグメントlhs とrhs が等しくないかどうかを返す。
nextRouteSegment() の値は比較では考慮されません。
[noexcept]
bool operator==(const QGeoRouteSegment &lhs, const QGeoRouteSegment &rhs)
ルートセグメントlhs とrhs が等しいかどうかを返す。
nextRouteSegment() の値は比較では考慮されません。
© 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.