SFMultiCurve

Objective-C

@interface SFMultiCurve : SFGeometryCollection

Swift

class SFMultiCurve : SFGeometryCollection

A restricted form of GeometryCollection where each Geometry in the collection must be of type Curve.

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithType:(enum SFGeometryType)geometryType
                         andHasZ:(BOOL)hasZ
                         andHasM:(BOOL)hasM;

    Swift

    init!(type geometryType: SFGeometryType, andHasZ hasZ: Bool, andHasM hasM: Bool)

    Parameters

    geometryType

    geometry type

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new multi curve

  • Get the curves

    Declaration

    Objective-C

    - (NSMutableArray<SFCurve *> *)curves;

    Swift

    func curves() -> NSMutableArray!

    Return Value

    curves

  • Set the curves

    Declaration

    Objective-C

    - (void)setCurves:(NSMutableArray<SFCurve *> *)curves;

    Swift

    func setCurves(_ curves: NSMutableArray!)

    Parameters

    curves

    curves

  • Add a curve

    Declaration

    Objective-C

    - (void)addCurve:(SFCurve *)curve;

    Swift

    func addCurve(_ curve: SFCurve!)

    Parameters

    curve

    curve

  • Add curves

    Declaration

    Objective-C

    - (void)addCurves:(NSArray<SFCurve *> *)curves;

    Swift

    func addCurves(_ curves: [SFCurve]!)

    Parameters

    curves

    curves

  • Get the number of curves

    Declaration

    Objective-C

    - (int)numCurves;

    Swift

    func numCurves() -> Int32

    Return Value

    curve count

  • Returns the Nth curve

    Declaration

    Objective-C

    - (SFCurve *)curveAtIndex:(int)n;

    Swift

    func curve(at n: Int32) -> SFCurve!

    Parameters

    n

    nth curve to return

    Return Value

    curve

  • Determine if this Multi Curve is closed for each Curve (start point = end point)

    Declaration

    Objective-C

    - (BOOL)isClosed;

    Swift

    func isClosed() -> Bool

    Return Value

    true if closed