Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/DataSources/MultiDimensional/EmptyDataSource2D.cs @ 12503

Last change on this file since 12503 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 1.4 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6
7namespace Microsoft.Research.DynamicDataDisplay.DataSources.MultiDimensional
8{
9  /// <summary>
10  /// Defines empty two-dimensional data source.
11  /// </summary>
12  /// <typeparam name="T"></typeparam>
13  public sealed class EmptyDataSource2D<T> : IDataSource2D<T> where T : struct
14  {
15    #region IDataSource2D<T> Members
16
17    private T[,] data = new T[0, 0];
18    public T[,] Data
19    {
20      get { return data; }
21    }
22
23    private Point[,] grid = new Point[0, 0];
24    public Point[,] Grid
25    {
26      get { return grid; }
27    }
28
29    public int Width
30    {
31      get { return 0; }
32    }
33
34    public int Height
35    {
36      get { return 0; }
37    }
38
39    private void RaiseChanged()
40    {
41      if (Changed != null)
42      {
43        Changed(this, EventArgs.Empty);
44      }
45    }
46    public event EventHandler Changed;
47
48    #endregion
49
50    #region IDataSource2D<T> Members
51
52
53    public Microsoft.Research.DynamicDataDisplay.Charts.Range<T>? Range
54    {
55      get { throw new NotImplementedException(); }
56    }
57
58    public T? MissingValue
59    {
60      get { throw new NotImplementedException(); }
61    }
62
63    #endregion
64
65    #region IDataSource2D<T> Members
66
67
68    public IDataSource2D<T> GetSubset(int x0, int y0, int countX, int countY, int stepX, int stepY)
69    {
70      throw new NotImplementedException();
71    }
72
73    #endregion
74  }
75}
Note: See TracBrowser for help on using the repository browser.