zoukankan      html  css  js  c++  java
  • QGeoPolygon

    Header: #include <QGeoPolygon>
    qmake: QT += positioning

    Since: Qt 5.10
    Inherits: QGeoShape

    QGeoPolygon类定义地理多边形。
    多边形由表示其周长的QGeoCoordinates的有序列表定义。
    此列表中的每两个相邻元素均通过穿过两个元素的恒定方位的最短线段连接在一起。这种类型的连接可以在纵向上穿过时间线,但不能穿过极点。
    这与此形状的QGeoShape::boundingGeoRectangle()返回的边界框的计算有关,它将把左上角的纬度设置为路径点集中的最大纬度。同样,右下角的纬度将是路径点集中的最小纬度。
    这个类是一个qu小工具。它可以直接从C++和QML中使用。

    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

    ####################

    QQ 3087438119
  • 相关阅读:
    Tensorflow CIFAR10 (二分类)
    2018年阿里巴巴重要开源项目汇总
    环境变量备份
    ubuntu Qt5 librealsense opencv
    ubuntu16.04 qt opencv3.4
    时间作为文件名
    ubuntu16.04 安装opencv3
    Visual studio 2015/2017 opencv3.4 kineck2.0 osg realsense配置
    开源监控系统整合Nagios+Cacti+Nconf详解
    nagios系列(八)之nagios通过nsclient监控windows主机
  • 原文地址:https://www.cnblogs.com/herd/p/14802029.html
Copyright © 2011-2022 走看看