public void TakeSnapShot(int p, int l, int r) { SortAlgorithmSnapShot shot = GetSnapShot(); shot.SetPointer("p", p); shot.SetPointer("l", l); shot.SetPointer("r", r); Shots.Add(shot); }
public void TakeSnapShot() { SortAlgorithmSnapShot shot = GetSnapShot(); shot.SetPointer("p", -1); shot.SetPointer("l", -1); shot.SetPointer("r", -1); Shots.Add(shot); }
public QuickSortSnapShotXML(SortAlgorithmSnapShot shot) { Data = new double[shot.Data.Length]; shot.Data.CopyTo(Data, 0); Colors = new Color[3]; Colors[0] = new Color("p", (int) shot.Pointers["p"], ColorConstants.Red); Colors[1] = new Color("l", (int) shot.Pointers["l"], ColorConstants.Blue); Colors[2] = new Color("r", (int) shot.Pointers["r"], ColorConstants.Blue); }
public QuickSortSnapShotXML(SortAlgorithmSnapShot shot) { Data = new double[shot.Data.Length]; shot.Data.CopyTo(Data, 0); Colors = new Color[3]; Colors[0] = new Color("p", (int)shot.Pointers["p"], ColorConstants.Red); Colors[1] = new Color("l", (int)shot.Pointers["l"], ColorConstants.Blue); Colors[2] = new Color("r", (int)shot.Pointers["r"], ColorConstants.Blue); }
public void SetSnapShot(SortAlgorithmSnapShot SnapShot) { SnapShot.SetData(Data); }