ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
ScottPlot.Plottables.ScatterGL Class Reference

This plot type uses an OpenGL shader for rendering. More...

Inheritance diagram for ScottPlot.Plottables.ScatterGL:
Scatter ScottPlot.IPlottableGL IDisposable ScottPlot.IPlottable ScottPlot.Plottables.ScatterGLCustom

Public Member Functions

 ScatterGL (IScatterSource data, IPlotControl control)
 
override void Render (RenderPack rp)
 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.
 
void GLFinish ()
 Used to manually synchronize rendering.
 
void StoreGLState ()
 Store OpenGL atributes.
 
void RestoreGLState ()
 Restore previously saved OpenGL atributes.
 
void Dispose ()
 
- Public Member Functions inherited from ScottPlot.IPlottable
AxisLimits GetAxisLimits ()
 Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
 

Protected Member Functions

virtual void InitializeGL ()
 
Matrix4d CalcTransform ()
 
virtual void RenderWithOpenGL (SKCanvas canvas, GRContext context)
 
void RenderMarkers ()
 
virtual void Dispose (bool disposing)
 
virtual void CleanupGPUMemory ()
 

Protected Attributes

int VertexBufferObject
 
int VertexArrayObject
 
ILinesDrawProgramLinesProgram
 
IMarkersDrawProgramMarkerProgram
 
double[] Vertices
 
int VerticesCount
 
bool GLHasBeenInitialized = false
 

Properties

IPlotControl PlotControl [get]
 The control used to display this plottable. It is used to access the GRContext at render time.
 
GLFallbackRenderStrategy Fallback = GLFallbackRenderStrategy.Software [get, set]
 
- Properties inherited from ScottPlot.IPlottableGL
- Properties inherited from ScottPlot.IPlottable
bool IsVisible [get, set]
 Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).
 
IAxes Axes [get, set]
 This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.
 
IEnumerable< LegendItemLegendItems [get]
 Items which will appear in the legend.
 

Detailed Description

This plot type uses an OpenGL shader for rendering.

Constructor & Destructor Documentation

◆ ScatterGL()

ScottPlot.Plottables.ScatterGL.ScatterGL ( IScatterSource  data,
IPlotControl  control 
)
inline

Member Function Documentation

◆ CalcTransform()

Matrix4d ScottPlot.Plottables.ScatterGL.CalcTransform ( )
inlineprotected

◆ CleanupGPUMemory()

virtual void ScottPlot.Plottables.ScatterGL.CleanupGPUMemory ( )
inlineprotectedvirtual

◆ Dispose() [1/2]

void ScottPlot.Plottables.ScatterGL.Dispose ( )
inline

◆ Dispose() [2/2]

virtual void ScottPlot.Plottables.ScatterGL.Dispose ( bool  disposing)
inlineprotectedvirtual

◆ GLFinish()

void ScottPlot.Plottables.ScatterGL.GLFinish ( )

Used to manually synchronize rendering.

Implements ScottPlot.IPlottableGL.

◆ InitializeGL()

virtual void ScottPlot.Plottables.ScatterGL.InitializeGL ( )
inlineprotectedvirtual

◆ Render()

override void ScottPlot.Plottables.ScatterGL.Render ( RenderPack  rp)
inline

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.

Implements ScottPlot.IPlottable.

◆ RenderMarkers()

void ScottPlot.Plottables.ScatterGL.RenderMarkers ( )
inlineprotected

◆ RenderWithOpenGL()

virtual void ScottPlot.Plottables.ScatterGL.RenderWithOpenGL ( SKCanvas  canvas,
GRContext  context 
)
inlineprotectedvirtual

◆ RestoreGLState()

void ScottPlot.Plottables.ScatterGL.RestoreGLState ( )
inline

Restore previously saved OpenGL atributes.

Implements ScottPlot.IPlottableGL.

◆ StoreGLState()

void ScottPlot.Plottables.ScatterGL.StoreGLState ( )
inline

Store OpenGL atributes.

Implements ScottPlot.IPlottableGL.

Member Data Documentation

◆ GLHasBeenInitialized

bool ScottPlot.Plottables.ScatterGL.GLHasBeenInitialized = false
protected

◆ LinesProgram

ILinesDrawProgram? ScottPlot.Plottables.ScatterGL.LinesProgram
protected

◆ MarkerProgram

IMarkersDrawProgram? ScottPlot.Plottables.ScatterGL.MarkerProgram
protected

◆ VertexArrayObject

int ScottPlot.Plottables.ScatterGL.VertexArrayObject
protected

◆ VertexBufferObject

int ScottPlot.Plottables.ScatterGL.VertexBufferObject
protected

◆ Vertices

double [] ScottPlot.Plottables.ScatterGL.Vertices
protected

◆ VerticesCount

int ScottPlot.Plottables.ScatterGL.VerticesCount
protected

Property Documentation

◆ Fallback

GLFallbackRenderStrategy ScottPlot.Plottables.ScatterGL.Fallback = GLFallbackRenderStrategy.Software
getset

◆ PlotControl

IPlotControl ScottPlot.Plottables.ScatterGL.PlotControl
get

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

Implements ScottPlot.IPlottableGL.


The documentation for this class was generated from the following file: