コード例 #1
0
 public void ShotSpacerTest()
 {
     float[,] f = null; // TODO: Initialize to an appropriate value
     RasterPath target = new RasterPath(f); // TODO: Initialize to an appropriate value
     int line = 0; // TODO: Initialize to an appropriate value
     PointF[] expected = null; // TODO: Initialize to an appropriate value
     PointF[] actual;
     actual = target.ShotSpacer(line);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #2
0
 public void LineSpacerTest()
 {
     float[,] f = new float[5,5]; // TODO: Initialize to an appropriate value
     RasterPath target = new RasterPath(f); // TODO: Initialize to an appropriate value
     int xstart = 10; // TODO: Initialize to an appropriate value
     int xend = 102; // TODO: Initialize to an appropriate value
     int[] expected = null; // TODO: Initialize to an appropriate value
     int[] actual;
     actual = target.LineSpacer(xstart, xend);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #3
0
ファイル: PathSet.cs プロジェクト: ngowdar/TomosurgeryAlpha
 public PathSet(float[][,] f, int sthick, int tolthick, DoseKernel dk, StructureSet ss)
 {
     X = f[0].GetLength(0); Y = f[0].GetLength(1); Z = f.GetLength(0);
     DK = dk; SS = ss;
     N = dk.dose.GetLength(0);
     boundaries = FindBoundaries(f);
     SliceThickness = sthick;
     DoseCalculationThickness = SliceThickness * 2;
     TolThickness = tolthick;
     CalculateNumSlices();
     RasterPaths = new ArrayList();
     for (int i = 0; i < NumSlices; i++)
     {
         RasterPath rp = new RasterPath(CompressSection(f, SlicePositions[i], SliceThickness / 2));
         RasterPaths.Add(rp);
     }
     volume = f;
     AttachHandlers();
 }
コード例 #4
0
 private void PopulateShotList(RasterPath rp)
 {
     listBox2.Items.Clear();
     PointF[] pf = rp.ReturnSinglePoints();
     string s = "";
     for (int i = 0; i < pf.GetLength(0); i++)
     {
         s = "(" + ((PointF)pf[i]).X + ", " + ((PointF)pf[i]).Y + "); W: " + rp.weight[i];
         listBox2.Items.Add(s);
     }
 }
コード例 #5
0
ファイル: PathSet.cs プロジェクト: ngowdar/TomosurgeryAlpha
 public void RecalculateSlices(int sthick, int tolthick)
 {
     SliceThickness = sthick;
     TolThickness = tolthick;
     CalculateNumSlices();
     RasterPaths = new ArrayList();
     for (int i = 0; i < NumSlices; i++)
     {
         RasterPath rp = new RasterPath(CompressSection(volume, SlicePositions[i], SliceThickness / 2));
         RasterPaths.Add(rp);
     }
 }