|
ScottPlot
|
Internal interface used for Utility Functions within DataSourceUtilities More...
Public Member Functions | |
| int | GetXClosestIndex (Coordinates mouseLocation) |
| Gets the closest index to a specified coordinate for the array of X's. | |
| Coordinates | GetCoordinate (int index) |
| Gets the X-Y coordinate from the data source at the specified index. | |
| Coordinates | GetCoordinateScaled (int index) |
| Gets the X-Y coordinate from the data source at the specified index with any offsets and scaling applied. | |
| double | GetX (int index) |
| Gets the X value from the data source at the specified index. | |
| double | GetXScaled (int index) |
| Gets the X value from the data source at the specified index with any offsets and scaling applied. | |
| double | GetY (int index) |
| Gets the Y value from the data source at the specified index. | |
| double | GetYScaled (int index) |
| Gets the Y value from the data source at the specified index with any offsets and scaling applied. | |
| bool | IsSorted () |
| When the collection is sorted, this will enable much quicker execution by allowing usage of BinarySearch methods ( GetNearest should call GetXClosestIndex when this is true ) | |
Properties | |
| bool | PreferCoordinates [get] |
| When set true, DataSourceUtilities should prefer paths that utilize GetCoordinates | |
| int | Length [get] |
| The length of the collection. | |
| int | MinRenderIndex [get] |
| int | MaxRenderIndex [get] |
Internal interface used for Utility Functions within DataSourceUtilities
| Coordinates ScottPlot.IDataSource.GetCoordinate | ( | int | index | ) |
Gets the X-Y coordinate from the data source at the specified index.
| Coordinates ScottPlot.IDataSource.GetCoordinateScaled | ( | int | index | ) |
Gets the X-Y coordinate from the data source at the specified index with any offsets and scaling applied.
| double ScottPlot.IDataSource.GetX | ( | int | index | ) |
Gets the X value from the data source at the specified index.
| int ScottPlot.IDataSource.GetXClosestIndex | ( | Coordinates | mouseLocation | ) |
Gets the closest index to a specified coordinate for the array of X's.
| mouseLocation | typically the X coordinate should be used, unless the plot is rotated (then use Y) |
Fastest execution should be using a BinarySearch, such as DataSourceUtilities.GetClosestIndex(double[], double, IndexRange)
| double ScottPlot.IDataSource.GetXScaled | ( | int | index | ) |
Gets the X value from the data source at the specified index with any offsets and scaling applied.
| double ScottPlot.IDataSource.GetY | ( | int | index | ) |
Gets the Y value from the data source at the specified index.
Implemented in ScottPlot.DataSources.FastSignalSourceDouble, ScottPlot.DataSources.SignalSourceDouble, ScottPlot.DataSources.SignalSourceGenericArray< T >, and ScottPlot.DataSources.SignalSourceGenericList< T >.
| double ScottPlot.IDataSource.GetYScaled | ( | int | index | ) |
Gets the Y value from the data source at the specified index with any offsets and scaling applied.
| bool ScottPlot.IDataSource.IsSorted | ( | ) |
When the collection is sorted, this will enable much quicker execution by allowing usage of BinarySearch methods ( GetNearest should call GetXClosestIndex when this is true )
|
get |
The length of the collection.
Implemented in ScottPlot.DataSources.FastSignalSourceDouble, ScottPlot.DataSources.SignalSourceDouble, ScottPlot.DataSources.SignalSourceGenericArray< T >, and ScottPlot.DataSources.SignalSourceGenericList< T >.
|
get |
|
get |
|
get |
When set true, DataSourceUtilities should prefer paths that utilize GetCoordinates