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

ISCISeriesDrawingManager

@protocol ISCISeriesDrawingManager <ISCIDisposable>

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

  • Begins drawing with this drawing manager instance.

    Declaration

    Objective-C

    - (void)beginDrawWithContext:(nonnull id<ISCIRenderContext2D>)renderContext
                  renderPassData:
                      (nonnull id<ISCISeriesRenderPassData>)renderPassData;

    Parameters

    renderContext

    The render context to draw on.

    renderPassData

    The current render pass data.

  • Ends drawing with this drawing manager instance.

    Declaration

    Objective-C

    - (void)endDraw;
  • 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;

    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;

    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;

    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
          withColorMapTexture:(nonnull id<ISCITexture2D>)colorMap
                          min:(double)min
                       andMax:(double)max;

    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.

    min

    The minimum value for this heatmap texture.

    max

    The maximum value for this heatmap texture.