iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIBezierControlPointsProvider

@protocol ISCIBezierControlPointsProvider <NSObject>

Defines a provider of control points for cubic bezier curve which are drawn through set of specified points in 2D space

  • Calculates control points for cubic bezier curves to drawn smooth line though specified 2D coordinates

    Declaration

    Objective-C

    - (void)getBezierCurveControlPointsForXCoords:(nonnull SCIFloatValues *)xCoords
                                          yCoords:(nonnull SCIFloatValues *)yCoords
                                         xaCoords:(nonnull SCIFloatValues *)xaCoords
                                         yaCoords:(nonnull SCIFloatValues *)yaCoords
                                         xbCoords:(nonnull SCIFloatValues *)xbCoords
                                         ybCoords:(nonnull SCIFloatValues *)ybCoords
                                            count:(NSInteger)count;

    Parameters

    xCoords

    The xCoords to draw through

    yCoords

    The yCoords to draw through

    xaCoords

    The xCoords of first control points to set

    yaCoords

    The yCoords of first control points to set

    xbCoords

    The xCoords of second control points to set

    ybCoords

    The yCoords of second control points to set

    count

    The amount of points to draw through

  • Adjusts xPointRange in case if provider requires some additional points to calculate control points

    Declaration

    Objective-C

    - (void)adjustXPointRange:(nonnull SCIIndexRange *)xPointRange
                   dataSeries:(nonnull id<ISCIDataSeries>)dataSeries
        xCoordinateCalculator:
            (nonnull id<ISCICoordinateCalculator>)xCoordinateCalculator;

    Parameters

    xPointRange

    The point range to adjust

    dataSeries

    The data series associated with this provider

    xCoordinateCalculator

    The current coordinate calculator for XAxis