PageRenderTime 15ms CodeModel.GetById 7ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Charts/Filters/IPointsFilter.cs

#
C# | 23 lines | 12 code | 4 blank | 7 comment | 0 complexity | 31efa35ff0debf7008cada19a0ab8aef MD5 | raw file
 1using System.Collections.Generic;
 2using System.Windows;
 3using System;
 4
 5namespace Microsoft.Research.DynamicDataDisplay.Filters
 6{
 7    /// <summary>Provides algorithm for filtering point lists in screen coordinates</summary>
 8    public interface IPointsFilter
 9    {
10
11        /// <summary>Performs filtering</summary>
12        /// <param name="points">List of source points</param>
13        /// <returns>List of filtered points</returns>
14        List<Point> Filter(List<Point> points);
15
16        /// <summary>Sets visible rectangle in screen coordinates</summary>
17        /// <param name="rect">Screen rectangle</param>
18        /// <remarks>Should be invoked before first call to <see cref="Filter"/></remarks>
19        void SetScreenRect(Rect screenRect);
20
21		event EventHandler Changed;
22    }
23}