QGeoCircle Class

QGeoCircle 클래스는 원형 지리적 영역을 정의합니다. 더 보기...

Header: #include <QGeoCircle>
CMake: find_package(Qt6 REQUIRED COMPONENTS Positioning)
target_link_libraries(mytarget PRIVATE Qt6::Positioning)
qmake: QT += positioning
상속합니다: QGeoShape

속성

공공 기능

QGeoCircle()
QGeoCircle(const QGeoShape &other)
QGeoCircle(const QGeoCoordinate &center, qreal radius = -1.0)
QGeoCircle(const QGeoCircle &other)
~QGeoCircle()
QGeoCoordinate center() const
void extendCircle(const QGeoCoordinate &coordinate)
qreal radius() const
void setCenter(const QGeoCoordinate &center)
void setRadius(qreal radius)
QString toString() const
void translate(double degreesLatitude, double degreesLongitude)
QGeoCircle translated(double degreesLatitude, double degreesLongitude) const
QGeoCircle &operator=(const QGeoCircle &other)

상세 설명

원은 원의 중심을 지정하는 QGeoCoordinate 과 원의 반지름을 미터 단위로 지정하는 qreal로 정의됩니다.

중심 좌표가 유효하지 않거나 반지름이 0보다 작으면 원은 유효하지 않은 것으로 간주됩니다.

이 클래스는 Qt 5.5부터 Q_GADGET. C++ 및 QML에서 직접 사용할 수 있습니다.

프로퍼티 문서

center : QGeoCoordinate

이 속성은 지리적 원의 중심 좌표를 보유합니다.

이 속성에 잘못된 좌표가 포함되어 있으면 원은 유효하지 않은 것으로 간주됩니다.

기본적으로 구성된 QGeoCircle 은 잘못된 QGeoCoordinate 을 중심으로 사용합니다.

이 프로퍼티는 Qt 5.5에 도입되었지만, 관련 접근자 함수는 이 클래스의 첫 번째 버전부터 존재했습니다.

액세스 함수:

QGeoCoordinate center() const
void setCenter(const QGeoCoordinate &center)

radius : qreal

이 속성은 원 반경을 미터 단위로 저장합니다.

이 속성이 음수이면 원은 유효하지 않은 것으로 간주됩니다.

기본적으로 반경은 -1 로 초기화됩니다.

이 프로퍼티는 Qt 5.5에 도입되었지만, 관련 접근자 함수는 이 클래스의 첫 번째 버전부터 존재했습니다.

액세스 함수:

qreal radius() const
void setRadius(qreal radius)

멤버 함수 문서

QGeoCircle::QGeoCircle()

유효하지 않은 새 지오서클을 생성합니다.

QGeoCircle::QGeoCircle(const QGeoShape &other)

other 의 콘텐츠로부터 새 지리적 서클을 구성합니다.

QGeoCircle::QGeoCircle(const QGeoCoordinate &center, qreal radius = -1.0)

center 을 중심으로 반경이 radius 미터인 새 지리적 원을 만듭니다.

QGeoCircle::QGeoCircle(const QGeoCircle &other)

other 의 콘텐츠로부터 새 지리적 서클을 구성합니다.

[noexcept] QGeoCircle::~QGeoCircle()

이 지오서클을 파괴합니다.

QGeoCoordinate QGeoCircle::center() const

이 지오서클의 중심 좌표를 반환합니다. QGeoShape::center ()에 해당합니다.

참고: 속성 센터에 대한 게터 함수입니다.

setCenter()도 참조하세요 .

[invokable] void QGeoCircle::extendCircle(const QGeoCoordinate &coordinate)

좌표도 포함하도록 지오서클을 확장합니다. coordinate

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

qreal QGeoCircle::radius() const

이 지오서클의 반경을 미터 단위로 반환합니다.

참고: 속성 반경에 대한 겟터 함수입니다.

setRadius()도 참조하세요 .

void QGeoCircle::setCenter(const QGeoCoordinate &center)

이 지오 서클의 중심 좌표를 center 로 설정합니다.

참고: 속성에 대한 설정자 함수 center.

center()도 참조하세요 .

void QGeoCircle::setRadius(qreal radius)

이 지오 서클의 반지름을 미터 단위로 radius 로 설정합니다.

참고: 속성에 대한 설정자 함수 radius.

radius()도 참조하세요 .

[invokable] QString QGeoCircle::toString() const

지리적 원 속성을 문자열로 반환합니다.

참고: 이 함수는 메타객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

[invokable] void QGeoCircle::translate(double degreesLatitude, double degreesLongitude)

이 지오서클을 degreesLatitude 북쪽으로, degreesLongitude 동쪽으로 번역합니다.

음수 값 degreesLatitudedegreesLongitude 은 각각 남쪽 및 서쪽으로 번역합니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

[invokable] QGeoCircle QGeoCircle::translated(double degreesLatitude, double degreesLongitude) const

degreesLatitude 북쪽으로, degreesLongitude 동쪽으로 번역된 이 지오서클의 사본을 반환합니다.

음수 값 degreesLatitudedegreesLongitude 은 각각 남쪽 및 서쪽으로의 번역에 해당합니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

translate()도 참조하세요 .

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

이 지오 서클에 other 을 할당하고 이 지오 서클에 대한 참조를 반환합니다.

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