Ejemplo n.º 1
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (reader != null)
     {
         reader.Dispose();
     }
     if (ds2do != null)
     {
         ds2do.Dispose();
     }
     if (writer != null)
     {
         writer.Dispose();
     }
     if (dor != null)
     {
         dor.Dispose();
     }
     if (do2ds != null)
     {
         do2ds.Dispose();
     }
     if (fd2ad != null)
     {
         fd2ad.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
Ejemplo n.º 2
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 (input != null)
     {
         input.Dispose();
     }
     if (clean != null)
     {
         clean.Dispose();
     }
     if (smooth != null)
     {
         smooth.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (brain != null)
     {
         brain.Dispose();
     }
     if (dsw != null)
     {
         dsw.Dispose();
     }
     if (pdw != null)
     {
         pdw.Dispose();
     }
     if (iv != null)
     {
         iv.Dispose();
     }
     if (triangles != null)
     {
         triangles.Dispose();
     }
     if (iv2 != null)
     {
         iv2.Dispose();
     }
     if (edges != null)
     {
         edges.Dispose();
     }
     if (iv3 != null)
     {
         iv3.Dispose();
     }
     if (byu != null)
     {
         byu.Dispose();
     }
     if (mcubes != null)
     {
         mcubes.Dispose();
     }
     if (stl != null)
     {
         stl.Dispose();
     }
     if (stlBinary != null)
     {
         stlBinary.Dispose();
     }
 }