/Main/src/DynamicDataDisplay/Charts/Filters/IPointsFilter.cs
# · C# · 23 lines · 12 code · 4 blank · 7 comment · 0 complexity · 31efa35ff0debf7008cada19a0ab8aef MD5 · raw file
- using System.Collections.Generic;
- using System.Windows;
- using System;
-
- namespace Microsoft.Research.DynamicDataDisplay.Filters
- {
- /// <summary>Provides algorithm for filtering point lists in screen coordinates</summary>
- public interface IPointsFilter
- {
-
- /// <summary>Performs filtering</summary>
- /// <param name="points">List of source points</param>
- /// <returns>List of filtered points</returns>
- List<Point> Filter(List<Point> points);
-
- /// <summary>Sets visible rectangle in screen coordinates</summary>
- /// <param name="rect">Screen rectangle</param>
- /// <remarks>Should be invoked before first call to <see cref="Filter"/></remarks>
- void SetScreenRect(Rect screenRect);
-
- event EventHandler Changed;
- }
- }