コード例 #1
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (sphereMapper != null)
     {
         sphereMapper.Dispose();
     }
     if (sphereActor != null)
     {
         sphereActor.Dispose();
     }
     if (rt != null)
     {
         rt.Dispose();
     }
     if (voi != null)
     {
         voi.Dispose();
     }
     if (surf != null)
     {
         surf.Dispose();
     }
     if (tris != null)
     {
         tris.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
コード例 #2
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (rgridReader != null)
     {
         rgridReader.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (extract1 != null)
     {
         extract1.Dispose();
     }
     if (surf1 != null)
     {
         surf1.Dispose();
     }
     if (tris != null)
     {
         tris.Dispose();
     }
     if (mapper1 != null)
     {
         mapper1.Dispose();
     }
     if (actor1 != null)
     {
         actor1.Dispose();
     }
     if (rectWriter != null)
     {
         rectWriter.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
コード例 #3
0
 ///<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();
     }
 }
コード例 #4
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (gauss != null)
     {
         gauss.Dispose();
     }
     if (translator != null)
     {
         translator.Dispose();
     }
     if (clip1 != null)
     {
         clip1.Dispose();
     }
     if (surf1 != null)
     {
         surf1.Dispose();
     }
     if (tf1 != null)
     {
         tf1.Dispose();
     }
     if (mapper1 != null)
     {
         mapper1.Dispose();
     }
     if (actor1 != null)
     {
         actor1.Dispose();
     }
     if (clip2 != null)
     {
         clip2.Dispose();
     }
     if (surf2 != null)
     {
         surf2.Dispose();
     }
     if (tf2 != null)
     {
         tf2.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (clip3 != null)
     {
         clip3.Dispose();
     }
     if (surf3 != null)
     {
         surf3.Dispose();
     }
     if (tf3 != null)
     {
         tf3.Dispose();
     }
     if (mapper3 != null)
     {
         mapper3.Dispose();
     }
     if (actor3 != null)
     {
         actor3.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
コード例 #5
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 (reader != null)
     {
         reader.Dispose();
     }
     if (writer != null)
     {
         writer.Dispose();
     }
     if (pReader != null)
     {
         pReader.Dispose();
     }
     if (surface != null)
     {
         surface.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (fractal != null)
     {
         fractal.Dispose();
     }
     if (writer2 != null)
     {
         writer2.Dispose();
     }
     if (pReader2 != null)
     {
         pReader2.Dispose();
     }
     if (iso != null)
     {
         iso.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (writer3 != null)
     {
         writer3.Dispose();
     }
     if (pReader3 != null)
     {
         pReader3.Dispose();
     }
     if (mapper3 != null)
     {
         mapper3.Dispose();
     }
     if (actor3 != null)
     {
         actor3.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }