SFCompoundCurve

Objective-C

@interface SFCompoundCurve : SFCurve

Swift

class SFCompoundCurve : SFCurve

Compound Curve, Curve sub type

  • Array of line strings

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableArray<SFLineString *> *lineStrings;

    Swift

    var lineStrings: NSMutableArray! { get set }
  • Create

    Declaration

    Objective-C

    + (SFCompoundCurve *)compoundCurve;

    Return Value

    new compound curve

  • Create

    Declaration

    Objective-C

    + (SFCompoundCurve *)compoundCurveWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;

    Parameters

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new compound curve

  • Create

    Declaration

    Objective-C

    + (SFCompoundCurve *)compoundCurveWithLineStrings:
        (NSMutableArray<SFLineString *> *)lineStrings;

    Parameters

    lineStrings

    list of line strings

    Return Value

    new compound curve

  • Create

    Declaration

    Objective-C

    + (SFCompoundCurve *)compoundCurveWithLineString:(SFLineString *)lineString;

    Parameters

    lineString

    line string

    Return Value

    new compound curve

  • Create

    Declaration

    Objective-C

    + (SFCompoundCurve *)compoundCurveWithCompoundCurve:
        (SFCompoundCurve *)compoundCurve;

    Parameters

    compoundCurve

    compound curve

    Return Value

    new compound curve

  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new compound curve

  • 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 compound curve

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithLineStrings:
        (NSMutableArray<SFLineString *> *)lineStrings;

    Swift

    init!(lineStrings: NSMutableArray!)

    Parameters

    lineStrings

    list of line strings

    Return Value

    new compound curve

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithLineString:(SFLineString *)lineString;

    Swift

    init!(lineString: SFLineString!)

    Parameters

    lineString

    line string

    Return Value

    new compound curve

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithCompoundCurve:(SFCompoundCurve *)compoundCurve;

    Swift

    init!(compoundCurve: SFCompoundCurve!)

    Parameters

    compoundCurve

    compound curve

    Return Value

    new compound curve

  • Add a line string

    Declaration

    Objective-C

    - (void)addLineString:(SFLineString *)lineString;

    Swift

    func addLineString(_ lineString: SFLineString!)

    Parameters

    lineString

    line string

  • Add line strings

    Declaration

    Objective-C

    - (void)addLineStrings:(NSArray<SFLineString *> *)lineStrings;

    Swift

    func addLineStrings(_ lineStrings: [SFLineString]!)

    Parameters

    lineStrings

    line strings

  • Get the number of line strings

    Declaration

    Objective-C

    - (int)numLineStrings;

    Swift

    func numLineStrings() -> Int32

    Return Value

    line string count

  • Returns the Nth line string

    Declaration

    Objective-C

    - (SFLineString *)lineStringAtIndex:(int)n;

    Swift

    func lineString(at n: Int32) -> SFLineString!

    Parameters

    n

    nth line string to return

    Return Value

    line string