SFMultiPolygon
Objective-C
@interface SFMultiPolygon : SFMultiSurface
Swift
class SFMultiPolygon : SFMultiSurface
A restricted form of MultiSurface where each Surface in the collection must be of type Polygon.
-
Create
Declaration
Objective-C
+ (SFMultiPolygon *)multiPolygon;
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFMultiPolygon *)multiPolygonWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Parameters
hasZ
has z values
hasM
has m values
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFMultiPolygon *)multiPolygonWithPolygons: (NSMutableArray<SFPolygon *> *)polygons;
Parameters
polygons
list of polygons
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFMultiPolygon *)multiPolygonWithPolygon:(SFPolygon *)polygon;
Parameters
polygon
polygon
Return Value
new multi polygon
-
Create
Declaration
Objective-C
+ (SFMultiPolygon *)multiPolygonWithMultiPolygon:(SFMultiPolygon *)multiPolygon;
Parameters
multiPolygon
multi polygon
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
init!(hasZ: Bool, andHasM hasM: Bool)
Parameters
hasZ
has z values
hasM
has m values
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPolygons:(NSMutableArray<SFPolygon *> *)polygons;
Swift
init!(polygons: NSMutableArray!)
Parameters
polygons
list of polygons
Return Value
new multi polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMultiPolygon:(SFMultiPolygon *)multiPolygon;
Swift
init!(multiPolygon: SFMultiPolygon!)
Parameters
multiPolygon
multi polygon
Return Value
new multi polygon
-
Get the polygons
Declaration
Objective-C
- (NSMutableArray<SFPolygon *> *)polygons;
Swift
func polygons() -> NSMutableArray!
Return Value
polygons
-
Set the polygons
Declaration
Objective-C
- (void)setPolygons:(NSMutableArray<SFPolygon *> *)polygons;
Swift
func setPolygons(_ polygons: NSMutableArray!)
Parameters
polygons
polygons
-
Get the number of polygons
Declaration
Objective-C
- (int)numPolygons;
Swift
func numPolygons() -> Int32
Return Value
polygon count