Table of Contents

Class RenderManager

Namespace
ScottPlot.Rendering
Assembly
ScottPlot.dll
public class RenderManager
Inheritance
RenderManager
Inherited Members
Extension Methods

Constructors

RenderManager(Plot)

public RenderManager(Plot plot)

Parameters

plot Plot

Properties

AxisLimitsChanged

This event is invoked during a render where the axis limits (in coordinate units) changed from the previous render This event occurs after render actions are performed.

public EventHandler<RenderDetails> AxisLimitsChanged { get; set; }

Property Value

EventHandler<RenderDetails>

ClearCanvasBeforeEachRender

public bool ClearCanvasBeforeEachRender { get; set; }

Property Value

bool

DisableAxisLimitsChangedEventOnNextRender

Prevents AxisLimitsChanged from being invoked in situations that may cause infinite loops

public bool DisableAxisLimitsChangedEventOnNextRender { get; set; }

Property Value

bool

EnableEvents

public bool EnableEvents { get; set; }

Property Value

bool

EnableRendering

If false, any calls to Render() return immediately

public bool EnableRendering { get; set; }

Property Value

bool

IsRendering

Indicates whether this plot is in the process of executing a render

public bool IsRendering { get; }

Property Value

bool

LastRender

Information about the previous render

public RenderDetails LastRender { get; }

Property Value

RenderDetails

PreRenderLock

These events are invoked before any render action. Users can add blocking code to this event to ensure processes that modify plottables are complete before rendering begins. Alternatively, lock the Sync object.

public EventHandler PreRenderLock { get; set; }

Property Value

EventHandler

RenderActions

This list of actions is performed in sequence to render a plot. It may be modified externally to inject custom functionality.

public List<IRenderAction> RenderActions { get; }

Property Value

List<IRenderAction>

RenderCount

Total number of renders completed

public int RenderCount { get; }

Property Value

int

RenderFinished

This event is invoked after each render

public EventHandler<RenderDetails> RenderFinished { get; set; }

Property Value

EventHandler<RenderDetails>

RenderStarting

This event is invoked just before each render, after axis limits are determined, tick labels are measured, and data area has been decided

public EventHandler<RenderPack> RenderStarting { get; set; }

Property Value

EventHandler<RenderPack>

SizeChanged

This event a render where the figure size (in pixels) changed from the previous render

public EventHandler<RenderDetails> SizeChanged { get; set; }

Property Value

EventHandler<RenderDetails>

Methods

ForgetLastRender()

public void ForgetLastRender()

Remove<T>()

Remove all render actions of the given type

public void Remove<T>() where T : IRenderAction

Type Parameters

T

Render(SKCanvas, PixelRect)

public void Render(SKCanvas canvas, PixelRect rect)

Parameters

canvas SKCanvas
rect PixelRect