Class IntensitySeriesBase
- Namespace
- LightningChartLib.WinForms.Charting.SeriesXY
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Base class for intensity series classes.
public class IntensitySeriesBase : SeriesBaseXY, IChartNode, IDisposable, IHighlightingItem
- Inheritance
-
IntensitySeriesBase
- Implements
- Derived
- Inherited Members
Constructors
IntensitySeriesBase()
Constructor.
public IntensitySeriesBase()
IntensitySeriesBase(IChartNode)
Constructor.
public IntensitySeriesBase(IChartNode owner)
Parameters
ownerIChartNodeparam owner M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.#ctor(LightningChartLib.WinForms.Charting.IChartNode)
Properties
ContourLineLabels
Contour Line Label's properties. Property tree: if enabled; format, font and color of text. Default state is disabled;
public ContourLineLabels ContourLineLabels { get; set; }
Property Value
ContourLineStyle
Line style.
public virtual LineStyle ContourLineStyle { get; set; }
Property Value
ContourLineType
Contour line style.
public ContourLineTypeXY ContourLineType { get; set; }
Property Value
CursorTrackEnabled
Enable DataCursor tracking.
public bool CursorTrackEnabled { get; set; }
Property Value
Data
Intensity point data.
public IntensityPoint[,] Data { get; set; }
Property Value
FastContourZoneRange
Data value range for fast contour zones. The fast contour zone is a contour line equivalent.
public double FastContourZoneRange { get; set; }
Property Value
Fill
Fill.
public IntensityFillStyle Fill { get; set; }
Property Value
FullInterpolation
Render with full interpolation. If only half interpolation is used, it can give performance increment with large intensity series.
public bool FullInterpolation { get; set; }
Property Value
InitialValue
Initial value for data Y. Clears the series. It is applied when creating or resizing Data array.
public double InitialValue { get; set; }
Property Value
LegendBoxUnits
Intensity series units, shown in legend box. Use this for intensity data units, not Y-axis units.
public string LegendBoxUnits { get; set; }
Property Value
LegendBoxValueType
Value type: time, numeric or coordinates. Affects legend box value formatting.
public AxisValueType LegendBoxValueType { get; set; }
Property Value
LegendBoxValuesFormat
Numeric format for showing legend box value labels.
public string LegendBoxValuesFormat { get; set; }
Property Value
Optimization
Optimization selection for the series usage. Use StaticData if data does not changed frequently,
allowing faster updates when other objects in the chart are updating.
DynamicData selection is better when the data is changed many times / second.
public IntensitySeriesOptimization Optimization { get; set; }
Property Value
ShowNodes
Show nodes.
public bool ShowNodes { get; set; }
Property Value
SizeX
Grid size in X dimension (Data array columns).
public int SizeX { get; set; }
Property Value
SizeY
Grid size in Y dimension (Data array rows).
public int SizeY { get; set; }
Property Value
Stencil
Stencil.
public IntensitySeriesStencil Stencil { get; set; }
Property Value
Title
Series title.
public SeriesTitle Title { get; set; }
Property Value
ToneColor
Surface tone color.
public Color ToneColor { get; set; }
Property Value
TraceCell
Tracing the surface cell is enabled.
public bool TraceCell { get; set; }
Property Value
ValueRangePalette
Color palette for Y value information.
public ValueRangePalette ValueRangePalette { get; set; }
Property Value
VisibleCursorData
Determine DataCursor ResultTable visible data.
public IntensitySeriesCursorData VisibleCursorData { get; set; }
Property Value
WireframeLineStyle
Wireframe line style.
public LineStyle WireframeLineStyle { get; set; }
Property Value
WireframeType
Wireframe type.
public SurfaceWireframeType WireframeType { get; set; }
Property Value
Methods
CheckSurfaceSizeForGPU(int, int)
Check if the given surface size can be used with the GPU. GPU index buffer capacity is verified.
public bool CheckSurfaceSizeForGPU(int gridSizeX, int gridSizeZ)
Parameters
Returns
- bool
True if index buffer size on the GPU is sufficient, else false.
Clear()
Clears the series. Initializes Data with InitialValues. Sets the data point colors to BaseColor.
public override void Clear()
Construct()
Create members.
protected override void Construct()
CreateNewDataArray(int, int)
Create new data array.
public virtual void CreateNewDataArray(int sizeX, int sizeY)
Parameters
CreateTitle()
protected override void CreateTitle()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
DisposeStaticBuffers(int)
Free all vertex and index buffer data
protected void DisposeStaticBuffers(int sweepPageIndex)
Parameters
sweepPageIndexintparam sweepPageIndex M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.DisposeStaticBuffers(System.Int32)
GetContourRoutes(out List<List<PointDouble2D[]>>, out List<double>, out List<Color>)
Get Contour to the List of levels, which is List of polylines/routes. The contour lines are rebuild with current palette steps' value and color.
public void GetContourRoutes(out List<List<PointDouble2D[]>> listContourRoutes, out List<double> lContourLevelValues, out List<Color> lContourLevelColors)
Parameters
listContourRoutesList<List<PointDouble2D[]>>The List of list of polylines for each contour step value.
lContourLevelValuesList<double>The list of contour's step values.
lContourLevelColorsList<Color>The list of contour's step colors.
GetDataColor(int, int)
Get Data array color
public Color GetDataColor(int columnIndex, int rowIndex)
Parameters
Returns
- Color
Color. If invalid index is given, returns Color.Black.
GetDataColor(int, int, out Color)
Get Data array color.
public bool GetDataColor(int columnIndex, int rowIndex, out Color color)
Parameters
Returns
- bool
True, if valid indexes. If invalid index is given, false and returns Color.Black.
GetDataValue(int, int)
Get Data array value.
public double GetDataValue(int columnIndex, int rowIndex)
Parameters
Returns
- double
Z value. If invalid index is given, returns 0.
GetDataValue(int, int, out double)
Get Data array value.
public bool GetDataValue(int columnIndex, int rowIndex, out double value)
Parameters
columnIndexintColumn index of Data array.
rowIndexintRow index of Data array.
valuedoubleY value. In case of error, 0.
Returns
- bool
True, if valid indexes, false otherwise.
GetDataXValue(int, int)
Get Data array X value.
public double GetDataXValue(int columnIndex, int rowIndex)
Parameters
Returns
- double
X value. If invalid index is given, returns 0.
GetDataXValue(int, int, out double)
Get Data array X value.
public bool GetDataXValue(int columnIndex, int rowIndex, out double value)
Parameters
columnIndexintColumn index of Data array.
rowIndexintRow index of Data array.
valuedoubleX value. In case of error, 0.
Returns
- bool
True, if valid indexes, false otherwise.
GetDataYValue(int, int)
Get Data array Y value.
public double GetDataYValue(int columnIndex, int rowIndex)
Parameters
Returns
- double
Y value. If invalid index is given, returns 0.
GetDataYValue(int, int, out double)
Get Data array Y value.
public bool GetDataYValue(int columnIndex, int rowIndex, out double value)
Parameters
columnIndexintColumn index of Data array.
rowIndexintRow index of Data array.
valuedoubleY value. In case of error, 0.
Returns
- bool
True, if valid indexes, false otherwise.
GetFastValuesData()
Get fast values data.
public double[][] GetFastValuesData()
Returns
- double[][]
returns M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.GetFastValuesData
GetMinimumsAndMaximums(out double, out double, out double, out double, out double, out double)
Get minimums and maximums of Series X, Y and data Values.
public virtual bool GetMinimumsAndMaximums(out double minX, out double maxX, out double minY, out double maxY, out double minValue, out double maxValue)
Parameters
minXdoubleMinimum X.
maxXdoubleMaximum X.
minYdoubleMinimum Y.
maxYdoubleMaximum Y.
minValuedoubleMinimum data value.
maxValuedoubleMaximum data value.
Returns
- bool
True if data could be analyzed and output values are valid, otherwise false.
GetTitleText()
public override string GetTitleText()
Returns
- string
returns M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.GetTitleText
InvalidateColorsOnly()
Invalidate colors only. Use this together with Optimization = DynamicValuesData. Does not update the geometry to the GPU when not needed, allowing significantly faster rendering.
public void InvalidateColorsOnly()
InvalidateData()
Series data has been modified directly by its array. Use this method to notify chart that this series needs a refresh.
public override void InvalidateData()
InvalidateStencil()
Invalidate stencil data.
public void InvalidateStencil()
InvalidateValuesDataOnly()
Invalidate values data only. Use this together with Optimization = DynamicValuesData. Does not update the geometry to the GPU when not needed, allowing significantly faster rendering.
public void InvalidateValuesDataOnly()
IsCoordinateOverCell(int, int, out int, out int, bool)
Check if coordinate is over cell in the series.
public bool IsCoordinateOverCell(int x, int y, out int hitColumn, out int hitRow, bool useDIP = true)
Parameters
xintX-coordinate.
yintY-coordinate.
hitColumnintReturned column index.
hitRowintReturned row index.
useDIPboolUse DIP instead of pixels as parameters.
Returns
- bool
True, if coordinate is over some cell, false otherwise.
IsPositionOver(int, int, bool)
Is position over series.
public override bool IsPositionOver(int x, int y, bool useDIP = false)
Parameters
Returns
- bool
true if position is over series. Else false.
LoadFromCSV(string, SeparatorCSV)
Loads series data from a CSV file.
public override bool LoadFromCSV(string file, SeparatorCSV separator)
Parameters
filestringCSV file name. If file does not exist, LoadFromCSV returns false.
separatorSeparatorCSVValue and floating point number separator.
Returns
- bool
True if import succeeds. Otherwise false.
OnDeserialized(StreamingContext)
OnDeserialized is called just after the object has been deserialized
[OnDeserialized]
protected void OnDeserialized(StreamingContext context)
Parameters
contextStreamingContextContext
RefreshRenderingData(double, double, int, float, float)
Rebuilds rendering data. Expert's method for allowing multi-threaded application to pre-build rendering data before rendering stage. Rendering stage must always be synchronized to main thread, but this call can be called parallel for every series of this type.
public void RefreshRenderingData(double xAxisMin, double xAxisMax, int sweepPageIndex, float graphSegmentTop, float graphSegmentHeight)
Parameters
xAxisMindoubleX-axis minimum.
xAxisMaxdoubleX-axis maximum.
sweepPageIndexintX-axis sweeping page index (set 0 if sweeping is not used).
graphSegmentTopfloatGraph segment top.
graphSegmentHeightfloatGraph segment height.
SaveToCSV(string, SeparatorCSV)
Saves series data into a CSV file.
public override bool SaveToCSV(string file, SeparatorCSV separator)
Parameters
filestringTarget file. If file already exists, it will be overwritten.
separatorSeparatorCSVValue and floating point number separator definition
Returns
- bool
True if save is successful
SetColorsData(int[][], IntensityGridValuesDataOrder)
Sets colors. Doesn't update the Data array contents itself. Very handy to make the chart render fast when the colors are being changed frequently, especially with IntensityGridSeries' PixelRendering mode enabled.
public bool SetColorsData(int[][] colorsArgb, IntensityGridValuesDataOrder order)
Parameters
colorsArgbint[][]Data. The alignment must be M x N, all rows must be of equal length.
orderIntensityGridValuesDataOrderJagged array order dimensions order. Is first array dimension columns and second dimension rows, or vice versa.
Returns
- bool
Success status.
Remarks
Only works when Fill = FromSurfacePoints.
SetDataValue(int, int, double, double, double, Color)
public bool SetDataValue(int columnIndex, int rowIndex, double x, double y, double value, Color color)
Parameters
columnIndexintparam columnIndex M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color) rowIndexintparam rowIndex M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color) xdoubleparam x M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color) ydoubleparam y M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color) valuedoubleparam value M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color) colorColorparam color M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.SeriesXY.IntensitySeriesBase.SetDataValue(System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Drawing.Color)
SetHeightDataFromBitmap(double, double, double, double, double, double, Bitmap, BitmapAntialiasOptions)
Create data based on bitmap file contents. Data array will have dimensions of the bitmap Width X Height. Use options to reduce resolution and smooth it if needed. Height data of is calculated for each pixel from R, G, and B sum. 0 (black) will have the minimum value, and maximum value is obtained from 3*255 (white). If bitmap has alpha value of 0, the data is set to -INF, and the value is not drawn.
public bool SetHeightDataFromBitmap(double xMin, double xMax, double yMin, double yMax, double intensityMin, double intensityMax, Bitmap bitmapIn, BitmapAntialiasOptions options)
Parameters
xMindoubleMinimum X.
xMaxdoubleMaximum X.
yMindoubleMinimum Y.
yMaxdoubleMaximum Y.
intensityMindoubleMinimum intensity.
intensityMaxdoubleMaximum intensity.
bitmapInBitmapInput bitmap.
optionsBitmapAntialiasOptionsBitmap resolution decrement and smoothing options. Give null to use pure bitmap data only.
Returns
- bool
True if data was successfully filled, else false.
SetSize(int, int)
Set grid size, both X and Y at same time. If you already have a large existing data, using this method is faster than setting SizeX and SizeY separately.
public void SetSize(int sizeX, int sizeY)
Parameters
SetValuesData(double[][], IntensityGridValuesDataOrder)
Sets values. Doesn't update the Data array contents itself. Very handy to make the chart render fast when the data is being changed frequently, especially with IntensityGridSeries' PixelRendering mode enabled.
public bool SetValuesData(double[][] data, IntensityGridValuesDataOrder order)
Parameters
datadouble[][]Data. The alignment must be M x N, all rows must be of equal length.
orderIntensityGridValuesDataOrderJagged array order dimensions order. Is first array dimension columns and second dimension rows, or vice versa.
Returns
- bool
Success status.
Remarks
If SetColors method is used too, the data array dimensions and order must be same than with SetValuesData.
SetValuesData(float[][], IntensityGridValuesDataOrder)
Sets values. Doesn't update the Data array contents itself. Very handy to make the chart render fast when the data is being changed frequently, especially with IntensityGridSeries' PixelRendering mode enabled.
public bool SetValuesData(float[][] data, IntensityGridValuesDataOrder order)
Parameters
datafloat[][]Data. The alignment must be M x N, all rows must be of equal length.
orderIntensityGridValuesDataOrderJagged array order dimensions order. Is first array dimension columns and second dimension rows, or vice versa.
Returns
- bool
Success status.
Remarks
If SetColors method is used too, the data array dimensions and order must be same than with SetValuesData.
Events
TraceCellChanged
Tracing has been moved to over different intensity series cell.
public virtual event IntensitySeriesBase.TraceCellChangedHandler TraceCellChanged