示例#1
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (light != null)
     {
         light.Dispose();
     }
     if (textProp != null)
     {
         textProp.Dispose();
     }
 }
示例#2
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (light != null)
     {
         light.Dispose();
     }
     if (math != null)
     {
         math.Dispose();
     }
     if (textProp != null)
     {
         textProp.Dispose();
     }
     for (int i = 0; i < 200; i++)
     {
         /*if (pl3d[i] != null)
          * {
          *  pl3d[i].Dispose();
          * }
          * if (lane[i] != null)
          * {
          *  lane[i].Dispose();
          * }*/
         if (mapper[i] != null)
         {
             mapper[i].Dispose();
         }
         if (actor[i] != null)
         {
             actor[i].Dispose();
         }
         if (ren[i] != null)
         {
             ren[i].Dispose();
         }
         if (textMapper[i] != null)
         {
             textMapper[i].Dispose();
         }
         if (text[i] != null)
         {
             text[i].Dispose();
         }
     }
 }
示例#3
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (v16 != null)
     {
         v16.Dispose();
     }
     if (iso != null)
     {
         iso.Dispose();
     }
     if (isoMapper != null)
     {
         isoMapper.Dispose();
     }
     if (isoActor != null)
     {
         isoActor.Dispose();
     }
     if (mask != null)
     {
         mask.Dispose();
     }
     if (visPts != null)
     {
         visPts.Dispose();
     }
     if (ldm != null)
     {
         ldm.Dispose();
     }
     if (tprop != null)
     {
         tprop.Dispose();
     }
     if (contourLabels != null)
     {
         contourLabels.Dispose();
     }
 }
示例#4
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (fohe != null)
     {
         fohe.Dispose();
     }
     if (normals != null)
     {
         normals.Dispose();
     }
     if (foheMapper != null)
     {
         foheMapper.Dispose();
     }
     if (foheActor != null)
     {
         foheActor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (mapOutline != null)
     {
         mapOutline.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (light != null)
     {
         light.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (ren2 != null)
     {
         ren2.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (tprop != null)
     {
         tprop.Dispose();
     }
     if (axes != null)
     {
         axes.Dispose();
     }
     if (axes2 != null)
     {
         axes2.Dispose();
     }
 }