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;Swift
func getBezierCurveControlPoints(forXCoords xCoords: SCIFloatValues, yCoords: SCIFloatValues, xaCoords: SCIFloatValues, yaCoords: SCIFloatValues, xbCoords: SCIFloatValues, ybCoords: SCIFloatValues, count: Int)Parameters
xCoordsThe xCoords to draw through
yCoordsThe yCoords to draw through
xaCoordsThe xCoords of first control points to set
yaCoordsThe yCoords of first control points to set
xbCoordsThe xCoords of second control points to set
ybCoordsThe yCoords of second control points to set
countThe 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;Swift
func adjustXPointRange(_ xPointRange: SCIIndexRange, dataSeries: any ISCIDataSeries, xCoordinateCalculator: any ISCICoordinateCalculator)Parameters
xPointRangeThe point range to adjust
dataSeriesThe data series associated with this provider
xCoordinateCalculatorThe current coordinate calculator for XAxis
View on GitHub