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

    poses

    The 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

    poses

    The list of map positions defining the outer ring.

    holes

    The 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

    rings

    The list of map position lists defining the rings

  • Undocumented

    Declaration

    Objective-C

    - (MSFMapPos *)getCenterPos;

    Swift

    func getCenterPos() -> MSFMapPos!
  • Undocumented

    Declaration

    Objective-C

    - (enum MSFGeometryType)getType;

    Swift

    func getType() -> MSFGeometryType
  • Returns the list of map positions defining the outer ring of the polygon.

    Declaration

    Objective-C

    - (MSFMapPosVector *)getPoses;

    Swift

    func getPoses() -> MSFMapPosVector!

    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()