PageRenderTime 63ms CodeModel.GetById 27ms 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
Possible License(s): CC-BY-SA-3.0
  1. using System.Collections.Generic;
  2. using System.Windows;
  3. using System;
  4. namespace Microsoft.Research.DynamicDataDisplay.Filters
  5. {
  6. /// <summary>Provides algorithm for filtering point lists in screen coordinates</summary>
  7. public interface IPointsFilter
  8. {
  9. /// <summary>Performs filtering</summary>
  10. /// <param name="points">List of source points</param>
  11. /// <returns>List of filtered points</returns>
  12. List<Point> Filter(List<Point> points);
  13. /// <summary>Sets visible rectangle in screen coordinates</summary>
  14. /// <param name="rect">Screen rectangle</param>
  15. /// <remarks>Should be invoked before first call to <see cref="Filter"/></remarks>
  16. void SetScreenRect(Rect screenRect);
  17. event EventHandler Changed;
  18. }
  19. }