ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ScottPlot.IGetNearest Interface Reference

This interface is used by plottables that can locate a within a specified range of a coordinate on the plot. More...

Inheritance diagram for ScottPlot.IGetNearest:
ScottPlot.DataSources.SignalXYSourceDoubleArray ScottPlot.DataSources.SignalXYSourceGenericArray< TX, TY >

Public Member Functions

DataPoint GetNearest (Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance)
 Return the point nearest a specific location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.
 
DataPoint GetNearestX (Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance)
 Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.
 

Detailed Description

This interface is used by plottables that can locate a within a specified range of a coordinate on the plot.

Member Function Documentation

◆ GetNearest()

DataPoint ScottPlot.IGetNearest.GetNearest ( Coordinates  mouseLocation,
RenderDetails  renderInfo,
float  maxDistance 
)

Return the point nearest a specific location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.

Implemented in ScottPlot.DataSources.SignalXYSourceDoubleArray, and ScottPlot.DataSources.SignalXYSourceGenericArray< TX, TY >.

◆ GetNearestX()

DataPoint ScottPlot.IGetNearest.GetNearestX ( Coordinates  mouseLocation,
RenderDetails  renderInfo,
float  maxDistance 
)

Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.

Implemented in ScottPlot.DataSources.SignalXYSourceDoubleArray, and ScottPlot.DataSources.SignalXYSourceGenericArray< TX, TY >.


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