Table of Contents

Class ScatterGL

Namespace
ScottPlot.Plottables
Assembly
ScottPlot.OpenGL.dll

This plot type uses an OpenGL shader for rendering.

public class ScatterGL : Scatter, IHasLine, IHasMarker, IHasLegendText, IDataSource, IGetNearest, IPlottableGL, IPlottable, IDisposable
Inheritance
ScatterGL
Implements
Derived
Inherited Members
Extension Methods

Constructors

ScatterGL(IScatterSource, IPlotControl)

public ScatterGL(IScatterSource data, IPlotControl control)

Parameters

data IScatterSource
control IPlotControl

Fields

GLHasBeenInitialized

protected bool GLHasBeenInitialized

Field Value

bool

LinesProgram

protected ILinesDrawProgram? LinesProgram

Field Value

ILinesDrawProgram

MarkerProgram

protected IMarkersDrawProgram? MarkerProgram

Field Value

IMarkersDrawProgram

VertexArrayObject

protected int VertexArrayObject

Field Value

int

VertexBufferObject

protected int VertexBufferObject

Field Value

int

Vertices

protected double[] Vertices

Field Value

double[]

VerticesCount

protected int VerticesCount

Field Value

int

Properties

Fallback

public GLFallbackRenderStrategy Fallback { get; set; }

Property Value

GLFallbackRenderStrategy

PlotControl

The control used to display this plottable. It is used to access the GRContext at render time.

public IPlotControl PlotControl { get; }

Property Value

IPlotControl

Methods

CalcTransform()

protected Matrix4d CalcTransform()

Returns

Matrix4d

CleanupGPUMemory()

protected virtual void CleanupGPUMemory()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

GLFinish()

Used to manually synchronize rendering

public void GLFinish()

InitializeGL()

protected virtual void InitializeGL()

Render(RenderPack)

Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.

public override void Render(RenderPack rp)

Parameters

rp RenderPack

RenderMarkers()

protected void RenderMarkers()

RenderWithOpenGL(SKCanvas, GRContext)

protected virtual void RenderWithOpenGL(SKCanvas canvas, GRContext context)

Parameters

canvas SKCanvas
context GRContext

RestoreGLState()

Restore previously saved OpenGL atributes

public void RestoreGLState()

StoreGLState()

Store OpenGL atributes

public void StoreGLState()