SFCompoundCurve

@interface SFCompoundCurve : SFCurve

Compound Curve, Curve sub type

  • Array of line strings

    Declaration

    Objective-C

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

    Swift

    var lineStrings: NSMutableArray! { get set }
  • 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

  • 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