Class FilteredPointList
An example of an IPointList implementation that stores large datasets, and selectively filters the output data depending on the displayed range.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class FilteredPointList : IPointList, ICloneable
Remarks
This class will refilter the data points each time SetBounds(Double, Double, Int32) is called. The data are filtered down to MaxPts points, within the data bounds of a minimum and maximum data range. The data are filtered by simply skipping points to achieve the desired total number of points. Input arrays are assumed to be monotonically increasing in X, and evenly spaced in X.
Constructors
| Improve this Doc View SourceFilteredPointList(Double[], Double[])
Constructor to initialize the PointPairList from two arrays of type double.
Declaration
public FilteredPointList(double[] x, double[] y)
Parameters
Type | Name | Description |
---|---|---|
Double[] | x | |
Double[] | y |
FilteredPointList(FilteredPointList)
The Copy Constructor
Declaration
public FilteredPointList(FilteredPointList rhs)
Parameters
Type | Name | Description |
---|---|---|
FilteredPointList | rhs | The FilteredPointList from which to copy |
Properties
| Improve this Doc View SourceCount
Returns the number of points according to the current state of the filter.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Indexer to access the specified PointPair object by its ordinal position in the list.
Declaration
public PointPair this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The ordinal position (zero-based) of the PointPair object to be accessed. |
Property Value
Type | Description |
---|---|
PointPair | A PointPair object reference. |
Remarks
Returns Missing for any value of
MaxPts
Gets the desired number of filtered points to output. You can set this value by calling SetBounds(Double, Double, Int32).
Declaration
public int MaxPts { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceClone()
Deep-copy clone routine
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
Object | A new, independent copy of the FilteredPointList |
SetBounds(Double, Double, Int32)
Set the data bounds to the specified minimum, maximum, and point count. Use values of min=double.MinValue and max=double.MaxValue to get the full range of data. Use maxPts=-1 to not limit the number of points. Call this method anytime the zoom range is changed.
Declaration
public void SetBounds(double min, double max, int maxPts)
Parameters
Type | Name | Description |
---|---|---|
Double | min | The lower bound for the X data of interest |
Double | max | The upper bound for the X data of interest |
Int32 | maxPts | The maximum number of points allowed to be output by the filter |