Initial Commit
This commit is contained in:
55
DataSources/MultiDimensional/IDataSource2D.cs
Normal file
55
DataSources/MultiDimensional/IDataSource2D.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using Microsoft.Research.DynamicDataDisplay.Charts;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.DataSources
|
||||
{
|
||||
/// <summary>
|
||||
/// General interface for two-dimensional data source. Contains two-dimensional array of data items.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Data type - type of each data piece.</typeparam>
|
||||
public interface IDataSource2D<T> : IGridSource2D where T : struct
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets two-dimensional data array.
|
||||
/// </summary>
|
||||
/// <value>The data.</value>
|
||||
T[,] Data { get; }
|
||||
|
||||
IDataSource2D<T> GetSubset(int x0, int y0, int countX, int countY, int stepX, int stepY);
|
||||
|
||||
Range<T>? Range { get; }
|
||||
|
||||
T? MissingValue { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// General interface for two-dimensional data grids. Contains two-dimensional array of data points.
|
||||
/// </summary>
|
||||
public interface IGridSource2D
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the grid of data source.
|
||||
/// </summary>
|
||||
/// <value>The grid.</value>
|
||||
Point[,] Grid { get; }
|
||||
/// <summary>
|
||||
/// Gets data grid width.
|
||||
/// </summary>
|
||||
/// <value>The width.</value>
|
||||
int Width { get; }
|
||||
/// <summary>
|
||||
/// Gets data grid height.
|
||||
/// </summary>
|
||||
/// <value>The height.</value>
|
||||
int Height { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when data source changes.
|
||||
/// </summary>
|
||||
event EventHandler Changed;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user