TencentMapSDK_iOS_3D_v6.4.0
载入中...
搜索中...
未找到
QPolygon类 参考

面覆盖物 更多...

#include <QPolygon.h>

类 QPolygon 继承关系图:
QMultiPoint QShape <QOverlay>

实例方法

(id) - initWithWithCoordinates:count:
 根据经纬度坐标数据生成闭合多边形
 
(id) - initWithPoints:count:
 根据mapPoint数据生成多边形
 
- 实例方法 继承自 QMultiPoint
(void) - getCoordinates:range:
 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中
 

类方法

(QPolygon *) + polygonWithCoordinates:count:
 根据经纬度坐标数据生成闭合多边形
 
(QPolygon *) + polygonWithPoints:count:
 根据mapPoint数据生成多边形
 

属性

QMapRect boundingMapRect
 区域外接矩形. 此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连
 
NSArray< QPolygon * > * interiorPolygons
 Polygon内的洞. 多边形洞的数据要求:
 
- 属性 继承自 QMultiPoint
QMapPointpoints
 坐标点数组
 
NSUInteger pointCount
 坐标点个数
 
- 属性 继承自 QShape
id userData
 供用户储存自定义数据,SDK本身不使用
 
- 属性 继承自 <QOverlay>
QMapRect boundingMapRect
 区域外接矩形
 

额外继承的成员函数

- Protected 属性 继承自 QMultiPoint
package QMapPoint_points
 
NSUInteger _pointCount
 
QMapRect _boundingRect
 

详细描述

面覆盖物

成员函数文档

◆ initWithPoints:count:

- (id) initWithPoints: (QMapPoint *) points
count: (NSUInteger) count 

根据mapPoint数据生成多边形

参数
pointsmapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放
count点的个数
返回
新生成的多边形

◆ initWithWithCoordinates:count:

- (id) initWithWithCoordinates: (CLLocationCoordinate2D *) coords
count: (NSUInteger) count 

根据经纬度坐标数据生成闭合多边形

参数
coords经纬度坐标点数据, coords对应的内存会拷贝, 调用者负责该内存的释放
count经纬度坐标点数组个数
返回
新生成的多边形

◆ polygonWithCoordinates:count:

+ (QPolygon *) polygonWithCoordinates: (CLLocationCoordinate2D *) coords
count: (NSUInteger) count 

根据经纬度坐标数据生成闭合多边形

参数
coords经纬度坐标点数据, coords对应的内存会拷贝, 调用者负责该内存的释放
count经纬度坐标点数组个数
返回
新生成的多边形

◆ polygonWithPoints:count:

+ (QPolygon *) polygonWithPoints: (QMapPoint *) points
count: (NSUInteger) count 

根据mapPoint数据生成多边形

参数
pointsmapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放
count点的个数
返回
新生成的多边形

属性说明

◆ interiorPolygons

- (NSArray<QPolygon *>*) interiorPolygons
readwritenonatomiccopy

Polygon内的洞. 多边形洞的数据要求:

  1. 洞的点串在多边形内.
  2. 洞之间没有交集.
  3. 洞不可递归使用.

该类的文档由以下文件生成: