QGeoManeuver Class

QGeoManeuver 클래스는 두 QGeoRouteSegments가 만나는 지점과 관련된 정보를 나타냅니다. 더 보기...

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와 연결된 명령 텍스트와 관련된 방향 변경을 설명합니다.

Constant설명
QGeoManeuver::NoDirection0지시 텍스트와 연관된 방향이 없습니다.
QGeoManeuver::DirectionForward1이 명령은 이동 방향을 변경할 필요가 없음을 나타냅니다.
QGeoManeuver::DirectionBearRight2지침은 이동 방향이 오른쪽으로 향해야 함을 나타냅니다.
QGeoManeuver::DirectionLightRight3지침은 오른쪽으로 가볍게 회전해야 함을 나타냅니다.
QGeoManeuver::DirectionRight4오른쪽으로 회전해야 한다는 지침을 나타냅니다.
QGeoManeuver::DirectionHardRight5오른쪽으로 급회전해야 함을 나타냅니다.
QGeoManeuver::DirectionUTurnRight6오른쪽으로 유턴해야 한다는 지침을 나타냅니다.
QGeoManeuver::DirectionUTurnLeft7왼쪽으로 유턴해야 한다는 안내가 표시됩니다.
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.