ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.DataSources.DataStreamerSource Class Reference

Public Member Functions

 DataStreamerSource (double[] data)
 
void Add (double value)
 Shift in a new Y value.
 
void AddRange (IEnumerable< double > values)
 Shift in a collection of new Y values.
 
void Clear (double value=0)
 Clear the buffer by setting all Y points to the given value.
 
AxisLimits GetAxisLimits (bool tight=true)
 

Properties

double[] Data [get]
 Fixed-length array used as a circular buffer to shift data in at the position defined by NextIndex. Values in this array should not be modified externally if ManageAxisLimits is enabled.
 
int NextIndex = 0 [get]
 Index in Data where the next point will be added.
 
int NewestIndex = 0 [get]
 Index in Data holding the newest data point.
 
double NewestPoint [get]
 Value of the most recently added data point.
 
int Length [get]
 The number of visible data points to display.
 
int CountTotal = 0 [get]
 The total number of data points added.
 
int CountTotalOnLastRender = -1 [get, set]
 Total of data points added the last time this plottable was rendered. This can be compared with CountTotal to determine if a new render is required.
 
double DataMin = double.PositiveInfinity [get]
 Minimum value of all known data (not just the data in view)
 
double DataMax = double.NegativeInfinity [get]
 Maximum value of all known data (not just the data in view)
 
double OffsetX = 0 [get, set]
 
double OffsetY = 0 [get, set]
 
double SamplePeriod = 1 [get, set]
 

Constructor & Destructor Documentation

◆ DataStreamerSource()

ScottPlot.DataSources.DataStreamerSource.DataStreamerSource ( double[]  data)
inline

Member Function Documentation

◆ Add()

void ScottPlot.DataSources.DataStreamerSource.Add ( double  value)
inline

Shift in a new Y value.

◆ AddRange()

void ScottPlot.DataSources.DataStreamerSource.AddRange ( IEnumerable< double >  values)
inline

Shift in a collection of new Y values.

◆ Clear()

void ScottPlot.DataSources.DataStreamerSource.Clear ( double  value = 0)
inline

Clear the buffer by setting all Y points to the given value.

◆ GetAxisLimits()

AxisLimits ScottPlot.DataSources.DataStreamerSource.GetAxisLimits ( bool  tight = true)
inline

Property Documentation

◆ CountTotal

int ScottPlot.DataSources.DataStreamerSource.CountTotal = 0
get

The total number of data points added.

◆ CountTotalOnLastRender

int ScottPlot.DataSources.DataStreamerSource.CountTotalOnLastRender = -1
getset

Total of data points added the last time this plottable was rendered. This can be compared with CountTotal to determine if a new render is required.

◆ Data

double [] ScottPlot.DataSources.DataStreamerSource.Data
get

Fixed-length array used as a circular buffer to shift data in at the position defined by NextIndex. Values in this array should not be modified externally if ManageAxisLimits is enabled.

◆ DataMax

double ScottPlot.DataSources.DataStreamerSource.DataMax = double.NegativeInfinity
get

Maximum value of all known data (not just the data in view)

◆ DataMin

double ScottPlot.DataSources.DataStreamerSource.DataMin = double.PositiveInfinity
get

Minimum value of all known data (not just the data in view)

◆ Length

int ScottPlot.DataSources.DataStreamerSource.Length
get

The number of visible data points to display.

◆ NewestIndex

int ScottPlot.DataSources.DataStreamerSource.NewestIndex = 0
get

Index in Data holding the newest data point.

◆ NewestPoint

double ScottPlot.DataSources.DataStreamerSource.NewestPoint
get

Value of the most recently added data point.

◆ NextIndex

int ScottPlot.DataSources.DataStreamerSource.NextIndex = 0
get

Index in Data where the next point will be added.

◆ OffsetX

double ScottPlot.DataSources.DataStreamerSource.OffsetX = 0
getset

◆ OffsetY

double ScottPlot.DataSources.DataStreamerSource.OffsetY = 0
getset

◆ SamplePeriod

double ScottPlot.DataSources.DataStreamerSource.SamplePeriod = 1
getset

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