Exemplo n.º 1
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (selectionPoints != null)
     {
         selectionPoints.Dispose();
     }
     if (loop != null)
     {
         loop.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (connect != null)
     {
         connect.Dispose();
     }
     if (clipMapper != null)
     {
         clipMapper.Dispose();
     }
     if (backProp != null)
     {
         backProp.Dispose();
     }
     if (clipActor != null)
     {
         clipActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (gf != null)
     {
         gf.Dispose();
     }
     if (gMapper != null)
     {
         gMapper.Dispose();
     }
     if (gActor != null)
     {
         gActor.Dispose();
     }
     if (gf2 != null)
     {
         gf2.Dispose();
     }
     if (g2Mapper != null)
     {
         g2Mapper.Dispose();
     }
     if (g2Actor != null)
     {
         g2Actor.Dispose();
     }
     if (gf3 != null)
     {
         gf3.Dispose();
     }
     if (g3Mapper != null)
     {
         g3Mapper.Dispose();
     }
     if (g3Actor != null)
     {
         g3Actor.Dispose();
     }
     if (gf4 != null)
     {
         gf4.Dispose();
     }
     if (g4Mapper != null)
     {
         g4Mapper.Dispose();
     }
     if (g4Actor != null)
     {
         g4Actor.Dispose();
     }
     if (s != null)
     {
         s.Dispose();
     }
     if (eg != null)
     {
         eg.Dispose();
     }
     if (gf5 != null)
     {
         gf5.Dispose();
     }
     if (g5Mapper != null)
     {
         g5Mapper.Dispose();
     }
     if (g5Actor != null)
     {
         g5Actor.Dispose();
     }
     if (gf6 != null)
     {
         gf6.Dispose();
     }
     if (g6Mapper != null)
     {
         g6Mapper.Dispose();
     }
     if (g6Actor != null)
     {
         g6Actor.Dispose();
     }
     if (rgridReader != null)
     {
         rgridReader.Dispose();
     }
     if (gf7 != null)
     {
         gf7.Dispose();
     }
     if (g7Mapper != null)
     {
         g7Mapper.Dispose();
     }
     if (g7Actor != null)
     {
         g7Actor.Dispose();
     }
     if (gf8 != null)
     {
         gf8.Dispose();
     }
     if (g8Mapper != null)
     {
         g8Mapper.Dispose();
     }
     if (g8Actor != null)
     {
         g8Actor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }