BMKArcline.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * BMKArcline.h
  3. * BMapKit
  4. *
  5. * Copyright 2011 Baidu Inc. All rights reserved.
  6. *
  7. */
  8. #import "BMKMultiPoint.h"
  9. #import "BMKOverlay.h"
  10. /// 此类用于定义一段圆弧
  11. @interface BMKArcline : BMKMultiPoint <BMKOverlay>
  12. {
  13. BMKMapRect _boundingMapRect;
  14. bool isYouArc;
  15. }
  16. /**
  17. *根据指定坐标点生成一段圆弧
  18. *@param points 指定的直角坐标点数组(需传入3个点)
  19. *@return 新生成的圆弧对象
  20. */
  21. + (BMKArcline *)arclineWithPoints:(BMKMapPoint *)points;
  22. /**
  23. *根据指定经纬度生成一段圆弧
  24. *@param coords 指定的经纬度坐标点数组(需传入3个点)
  25. *@return 新生成的圆弧对象
  26. */
  27. + (BMKArcline *)arclineWithCoordinates:(CLLocationCoordinate2D *)coords;
  28. /**
  29. *重新设置圆弧坐标
  30. *@param points 指定的直角坐标点数组(需传入3个点)
  31. *@return 是否设置成功
  32. */
  33. - (BOOL)setArclineWithPoints:(BMKMapPoint *)points;
  34. /**
  35. *重新设置圆弧坐标
  36. *@param coords 指定的经纬度坐标点数组(需传入3个点)
  37. *@param count 坐标点的个数
  38. *@return 是否设置成功
  39. */
  40. - (BOOL)setArclineWithCoordinates:(CLLocationCoordinate2D *)coords;
  41. @end