init
This commit is contained in:
75
Backup/DataSources/MultiDimensional/EmptyDataSource2D.cs
Normal file
75
Backup/DataSources/MultiDimensional/EmptyDataSource2D.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.DataSources.MultiDimensional
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines empty two-dimensional data source.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public sealed class EmptyDataSource2D<T> : IDataSource2D<T> where T : struct
|
||||
{
|
||||
#region IDataSource2D<T> Members
|
||||
|
||||
private T[,] data = new T[0, 0];
|
||||
public T[,] Data
|
||||
{
|
||||
get { return data; }
|
||||
}
|
||||
|
||||
private Point[,] grid = new Point[0, 0];
|
||||
public Point[,] Grid
|
||||
{
|
||||
get { return grid; }
|
||||
}
|
||||
|
||||
public int Width
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
|
||||
public int Height
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
|
||||
private void RaiseChanged()
|
||||
{
|
||||
if (Changed != null)
|
||||
{
|
||||
Changed(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
public event EventHandler Changed;
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDataSource2D<T> Members
|
||||
|
||||
|
||||
public Microsoft.Research.DynamicDataDisplay.Charts.Range<T>? Range
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
|
||||
public T? MissingValue
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDataSource2D<T> Members
|
||||
|
||||
|
||||
public IDataSource2D<T> GetSubset(int x0, int y0, int countX, int countY, int stepX, int stepY)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user