Initial Commit
This commit is contained in:
21
DataSources/OneDimensional/IPointEnumerator.cs
Normal file
21
DataSources/OneDimensional/IPointEnumerator.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.DataSources
|
||||
{
|
||||
public interface IPointEnumerator : IDisposable {
|
||||
/// <summary>Move to next point in sequence</summary>
|
||||
/// <returns>True if successfully moved to next point
|
||||
/// or false if end of sequence is reached</returns>
|
||||
bool MoveNext();
|
||||
|
||||
/// <summary>Stores current value(s) in given point.</summary>
|
||||
/// <param name="p">Reference to store value</param>
|
||||
/// <remarks>Depending on implementing class this method may set only X or Y
|
||||
/// fields in specified point. That's why GetCurrent is a regular method and
|
||||
/// not a property as in standard enumerators</remarks>
|
||||
void GetCurrent(ref Point p);
|
||||
|
||||
void ApplyMappings(DependencyObject target);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user