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 (write != null)
     {
         write.Dispose();
     }
     if (dor != null)
     {
         dor.Dispose();
     }
     if (do2ds != null)
     {
         do2ds.Dispose();
     }
     if (fd2ad != null)
     {
         fd2ad.Dispose();
     }
     if (warp != null)
     {
         warp.Dispose();
     }
     if (connect != null)
     {
         connect.Dispose();
     }
     if (moldMapper != null)
     {
         moldMapper.Dispose();
     }
     if (moldActor != null)
     {
         moldActor.Dispose();
     }
     if (connect2 != null)
     {
         connect2.Dispose();
     }
     if (parison != null)
     {
         parison.Dispose();
     }
     if (normals2 != null)
     {
         normals2.Dispose();
     }
     if (lut != null)
     {
         lut.Dispose();
     }
     if (parisonMapper != null)
     {
         parisonMapper.Dispose();
     }
     if (parisonActor != null)
     {
         parisonActor.Dispose();
     }
     if (cf != null)
     {
         cf.Dispose();
     }
     if (contourMapper != null)
     {
         contourMapper.Dispose();
     }
     if (contours != null)
     {
         contours.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }