BMKPolygon.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * BMKPolygon.h
  3. * BMapKit
  4. *
  5. * Copyright 2011 Baidu Inc. All rights reserved.
  6. *
  7. */
  8. #import <Foundation/Foundation.h>
  9. #import "BMKMultiPoint.h"
  10. #import "BMKOverlay.h"
  11. /// 此类用于定义一个多边形区域
  12. @interface BMKPolygon : BMKMultiPoint <BMKOverlay>
  13. /**
  14. *根据多个点生成多边形
  15. *@param points 直角坐标点数组,这些点将被拷贝到生成的多边形对象中
  16. *@param count 点的个数
  17. *@return 新生成的多边形对象
  18. */
  19. + (BMKPolygon *)polygonWithPoints:(BMKMapPoint *)points count:(NSUInteger)count;
  20. /**
  21. *根据多个点生成多边形
  22. *@param coords 经纬度坐标点数组,这些点将被拷贝到生成的多边形对象中
  23. *@param count 点的个数
  24. *@return 新生成的多边形对象
  25. */
  26. + (BMKPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
  27. /**
  28. *重新设置多边形顶点
  29. *@param points 指定的直角坐标点数组
  30. *@param count 坐标点的个数
  31. *@return 是否设置成功
  32. */
  33. - (BOOL)setPolygonWithPoints:(BMKMapPoint *)points count:(NSInteger) count;
  34. /**
  35. *重新设置多边形顶点
  36. *@param coords 指定的经纬度坐标点数组
  37. *@param count 坐标点的个数
  38. *@return 是否设置成功
  39. */
  40. - (BOOL)setPolygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger) count;
  41. @end