iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCISeriesDrawingManager

@protocol ISCISeriesDrawingManager <ISCIDisposable>

Defines the interface with helper methods for rendering of renderable series.

  • Draws single box with specified fill and stroke.

    Declaration

    Objective-C

    - (void)drawRect:(CGRect)rect
             withPen:(nonnull id<ISCIPen2D>)pen
            andBrush:(nonnull id<ISCIBrush2D>)brush;

    Swift

    func draw(_ rect: CGRect, with pen: ISCIPen2D, andBrush brush: ISCIBrush2D)

    Parameters

    rect

    The CGRect coordinates in pixels.

    pen

    The ISCIPen2D pen to draw rect stroke with.

    brush

    The SCIBrush2DProtocol brush to fill rect with.

  • Draws a single line using the specified ISCIPen2D.

    Declaration

    Objective-C

    - (void)drawLineWithPen:(nonnull id<ISCIPen2D>)pen
                    atStart:(CGPoint)start
                        end:(CGPoint)end;

    Swift

    func drawLine(with pen: ISCIPen2D, atStart start: CGPoint, end: CGPoint)

    Parameters

    pen

    The pen to draw line with.

    start

    The start point coordinates in pixels.

    end

    The end point coordinates in pixels.

  • Draws texture in specified rect bounds.

    Declaration

    Objective-C

    - (void)drawTexture:(nonnull id<ISCITexture2D>)texture
                 inRect:(CGRect)rect
            withOpacity:(float)opacity;

    Swift

    func draw(_ texture: ISCITexture2D, in rect: CGRect, withOpacity opacity: Float)

    Parameters

    texture

    The ISCITexture2D texture instance to draw.

    rect

    The rect coordinates in pixels to draw texture in.

    opacity

    The opacity to draw texture with.

  • Draws a single heatmap using the specified float texture and gradient color map.

    Declaration

    Objective-C

    - (void)drawHeatmapTexure:(nonnull id<ISCITexture2D>)heatmap
                       inRect:(CGRect)rect
                  andColorMap:(nonnull id<ISCITexture2D>)colorMap;

    Swift

    func drawHeatmapTexure(_ heatmap: ISCITexture2D, in rect: CGRect, andColorMap colorMap: ISCITexture2D)

    Parameters

    heatmap

    The heatmap texture with normalized float values which will be converted to colors using colorMap.

    rect

    The rect coordinates in points to draw texture in.

    colorMap

    The colorMap texture, which will be used to calculate colors for heatmap normalized values.