MBMapkit
|
00001 // 00002 // MBPolygon.h 00003 // MBMapKit 00004 // 00005 // Copyright 2011 Mapbar Inc. All rights reserved. 00006 // 00007 00008 #import <Foundation/Foundation.h> 00009 00010 #import "MBMultiPoint.h" 00011 #import "MBOverlay.h" 00012 00020 @interface MBPolygon : MBMultiPoint <MBOverlay> { 00021 @package 00022 CLLocationCoordinate2D _centroid; 00023 NSArray *_interiorPolygons; 00024 BOOL _isDefinitelyConvex; 00025 } 00026 00034 + (MBPolygon *)polygonWithPoints:(MBMapPoint *)points count:(NSUInteger)count; 00035 00044 + (MBPolygon *)polygonWithPoints:(MBMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons; 00045 00053 + (MBPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; 00054 00063 + (MBPolygon *)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons; 00064 00071 @property (readonly) NSArray *interiorPolygons; 00072 00073 @end