MSFPolygonGeometry
Objective-C
@interface MSFPolygonGeometry : MSFGeometry
Swift
class MSFPolygonGeometry : MSFGeometry
Polygon geometry defined by an outer ring and optional multiple inner rings (holes).
-
Constructs a PolygonGeometry objects from an outer ring.
Declaration
Objective-C
- (id)initWithPoses:(MSFMapPosVector *)poses;Swift
init!(poses: MSFMapPosVector!)Parameters
posesThe list of map positions defining the outer ring.
-
Constructs a PolygonGeometry objects from an outer ring and list of inner rings (holes).
Declaration
Objective-C
- (id)initWithPoses:(MSFMapPosVector *)poses holes:(MSFMapPosVectorVector *)holes;Swift
init!(poses: MSFMapPosVector!, holes: MSFMapPosVectorVector!)Parameters
posesThe list of map positions defining the outer ring.
holesThe list of map position lists defining the inner rings.
-
Constructs a PolygonGeometry objects from a list of rings. It is assumed the the first ring is outer ring and all other rings are inner rings.
Declaration
Objective-C
- (id)initWithRings:(MSFMapPosVectorVector *)rings;Swift
init!(rings: MSFMapPosVectorVector!)Parameters
ringsThe list of map position lists defining the rings
-
Undocumented
-
Returns the list of map positions defining the outer ring of the polygon.
Return Value
The list of map positions defining the outer ring of the polygon.
-
Returns the list of map position lists defining the inner rings of the polygon (holes).
Declaration
Objective-C
- (MSFMapPosVectorVector *)getHoles;Swift
func getHoles() -> MSFMapPosVectorVector!Return Value
The list of map position lists defining the inner rings of the polygon (holes).
-
Returns the list of map position lists defining the rings of the polygon.
Declaration
Objective-C
- (MSFMapPosVectorVector *)getRings;Swift
func getRings() -> MSFMapPosVectorVector!Return Value
The list of map position lists defining the rings of the polygon.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()