首页 > 其他分享 >QGeoPolygon

QGeoPolygon

时间:2023-06-18 20:11:09浏览次数:41  
标签:const int void other QGeoCoordinate 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中使用。

 

 

 

 

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

标签:const,int,void,other,QGeoCoordinate,QGeoPolygon
From: https://www.cnblogs.com/herd/p/17489675.html

相关文章