QGeoPolygon
QGeoPolygon
#include <QGeoPolygon>
Public Functions
QGeoPolygon() | |
QGeoPolygon(const QList<QGeoCoordinate> &path) | |
QGeoPolygon(const QGeoPolygon &other) | |
QGeoPolygon(const QGeoShape &other) | |
~QGeoPolygon() | |
void | addCoordinate(const QGeoCoordinate &coordinate) |
bool | containsCoordinate(const QGeoCoordinate &coordinate) const |
QGeoCoordinate | coordinateAt(int index) const |
void | insertCoordinate(int index, const QGeoCoordinate &coordinate) |
double | length(int indexFrom = 0, int indexTo = -1) const |
const QList<QGeoCoordinate> & | path() const |
void | removeCoordinate(const QGeoCoordinate &coordinate) |
void | removeCoordinate(int index) |
void | replaceCoordinate(int index, const QGeoCoordinate &coordinate) |
void | setPath(const QList<QGeoCoordinate> &path) |
int | size() const |
QString | toString() const |
void | translate(double degreesLatitude, double degreesLongitude) |
QGeoPolygon | translated(double degreesLatitude, double degreesLongitude) const |
bool | operator!=(const QGeoPolygon &other) const |
QGeoPolygon & | operator=(const QGeoPolygon &other) |
bool | operator==(const QGeoPolygon &other) const |
QGeoPolygon类定义了一个地理多边形。
多边形由表示其周长的QGeoCoordinates的有序列表定义。
该列表中的每两个相邻元素都打算通过穿过两个元素的恒定方位的最短线段连接在一起。这种类型的连接可以在纵向上穿过日期线,但永远不会穿过电线杆。
这与QGeoShape::boundingGeoRectangle()为此形状返回的边界框的计算有关,该形状将使左上角的纬度设置为路径点集中的最大纬度。类似地,右下角的纬度将是路径点集中的最小纬度。
这个类是一个Q_GADGET。它可以直接从C++和QML中使用。
#####################
QQ 3087438119
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
2022-06-18 计算关节夹角
2021-06-18 unity3d给某个对象添加材质
2020-06-18 IfcAnnotationFillArea
2020-06-18 IfcGeometricRepresentationItem
2019-06-18 Qt 自定义信号SIGNAL
2019-06-18 qt ui