IEnumerator IEnumerable.GetEnumerator() { V3DataCollection tmp = new V3DataCollection(); tmp = (V3DataCollection)this; return(tmp.GetEnumerator()); }
public IEnumerator <DataItem> GetEnumerator() { V3DataCollection tmp = new V3DataCollection(); tmp = (V3DataCollection)this; return(tmp.dataItems.GetEnumerator()); }
public void AddDefaults() { Grid1D x = new Grid1D((float)0.2, 2); Grid1D y = new Grid1D((float)0.2, 2); V3DataOnGrid data1 = new V3DataOnGrid("", DateTime.Now, x, y); data1.InitRandom(0.25, 0.5); Grid1D x1 = new Grid1D((float)0.0, 0); Grid1D y1 = new Grid1D((float)0.0, 0); V3DataOnGrid data2 = new V3DataOnGrid("", DateTime.Now, x1, y1); V3DataCollection data3 = new V3DataCollection(); data3.InitRandom(4, (float)0.4, (float)0.4, 1.25, 0.2); V3DataCollection data4 = new V3DataCollection(); v3Datas.Add(data1); v3Datas.Add(data2); v3Datas.Add(data3); v3Datas.Add(data4); }