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
IScatterSourcecontrol
IPlotControl
Fields
GLHasBeenInitialized
protected bool GLHasBeenInitialized
Field Value
LinesProgram
protected ILinesDrawProgram? LinesProgram
Field Value
MarkerProgram
protected IMarkersDrawProgram? MarkerProgram
Field Value
VertexArrayObject
protected int VertexArrayObject
Field Value
VertexBufferObject
protected int VertexBufferObject
Field Value
Vertices
protected double[] Vertices
Field Value
- double[]
VerticesCount
protected int VerticesCount
Field Value
Properties
Fallback
public GLFallbackRenderStrategy Fallback { get; set; }
Property Value
PlotControl
The control used to display this plottable. It is used to access the GRContext at render time.
public IPlotControl PlotControl { get; }
Property Value
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
RestoreGLState()
Restore previously saved OpenGL atributes
public void RestoreGLState()
StoreGLState()
Store OpenGL atributes
public void StoreGLState()