QGeoCircle Class
QGeoCircle 클래스는 원형의 지리적 영역을 정의합니다. 더 보기...
| 헤더: | #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 ¢er, qreal radius = -1.0) | |
| QGeoCircle(const QGeoCircle &other) | |
| ~QGeoCircle() | |
| QGeoCoordinate | center() const |
| void | extendCircle(const QGeoCoordinate &coordinate) |
| qreal | radius() const |
| void | setCenter(const QGeoCoordinate ¢er) |
| 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보다 작은 경우, 원은 유효하지 않은 것으로 간주됩니다.
이 클래스는 QML에서도 geoCircle 로 접근할 수 있습니다.
속성 문서
center : QGeoCoordinate
이 속성은 지리적 원의 중심 좌표를 저장합니다.
이 속성에 유효하지 않은 좌표가 포함되어 있으면 원은 유효하지 않은 것으로 간주됩니다.
기본 생성된 ` QGeoCircle `는 무효한 ` QGeoCoordinate `를 중심으로 사용합니다.
이 속성은 Qt 5.5에서 도입되었지만, 관련 액세서 함수는 이 클래스의 첫 번째 버전부터 존재해 왔습니다.
액세스 함수:
radius : qreal
이 속성은 원의 반지름을 미터 단위로 저장합니다.
이 속성이 음수인 경우 원은 유효하지 않은 것으로 간주됩니다.
기본적으로 반지름은 ` -1`로 초기화됩니다.
이 속성은 Qt 5.5에서 도입되었으나, 관련 액세서 함수는 이 클래스의 첫 번째 버전부터 존재해 왔습니다.
액세스 함수:
멤버 함수 문서
QGeoCircle::QGeoCircle()
유효하지 않은 새로운 지리적 원을 생성합니다.
QGeoCircle::QGeoCircle(const QGeoShape &other)
other 의 내용을 바탕으로 새로운 지리적 원을 생성합니다.
QGeoCircle::QGeoCircle(const QGeoCoordinate ¢er, qreal radius = -1.0)
center 를 중심으로 반지름이 radius 미터인 새로운 지오 서클을 생성합니다.
QGeoCircle::QGeoCircle(const QGeoCircle &other)
other 의 내용을 바탕으로 새로운 지리적 원을 생성합니다.
[noexcept] QGeoCircle::~QGeoCircle()
이 지오 서클을 파괴합니다.
QGeoCoordinate QGeoCircle::center() const
이 지오 서클의 중심 좌표를 반환합니다. ` QGeoShape::center()`와 동일합니다.
참고: center 속성에 대한게터 함수입니다.
참조: setCenter().
[invokable] void QGeoCircle::extendCircle(const QGeoCoordinate &coordinate)
지오 서클을 확장하여 해당 좌표까지 포함하도록 합니다. coordinate
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
qreal QGeoCircle::radius() const
이 지리적 원의 반지름을 미터 단위로 반환합니다.
참고: radius 속성에 대한게터 함수입니다.
setRadius()도 참조하십시오 .
void QGeoCircle::setCenter(const QGeoCoordinate ¢er)
이 지오 서클의 중심 좌표를 center 로 설정합니다.
참고: center 속성에 대한세터 함수입니다.
center()도 참조하십시오 .
void QGeoCircle::setRadius(qreal radius)
이 지오 서클의 반지름을 미터 단위로 radius 로 설정합니다.
참고: radius 속성에 대한설정 함수입니다.
radius()도 참조하십시오 .
[invokable] QString QGeoCircle::toString() const
geo circle 속성을 문자열로 반환합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
[invokable] void QGeoCircle::translate(double degreesLatitude, double degreesLongitude)
이 지오 서클을 degreesLatitude 만큼 북쪽으로, degreesLongitude 만큼 동쪽으로 이동시킵니다.
degreesLatitude 와 degreesLongitude 의 음수 값은 각각 남쪽 방향 및 서쪽 방향 이동을 나타냅니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
[invokable] QGeoCircle QGeoCircle::translated(double degreesLatitude, double degreesLongitude) const
degreesLatitude 만큼 북쪽으로, degreesLongitude 만큼 동쪽으로 변환된 이 지오 서클의 복사본을 반환합니다.
degreesLatitude 및 degreesLongitude 의 음수 값은 각각 남쪽 및 서쪽 방향으로의 변환을 나타냅니다.
참고: 이 함수는 메타 객체 시스템 및 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
translate()도 참조하십시오 .
QGeoCircle &QGeoCircle::operator=(const QGeoCircle &other)
other 를 이 지리적 원에 할당하고, 이 지리적 원에 대한 참조를 반환합니다.
© 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.