Esempio n. 1
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 (ptLoad != null)
     {
         ptLoad.Dispose();
     }
     if (extractTensor != null)
     {
         extractTensor.Dispose();
     }
     if (contour != null)
     {
         contour.Dispose();
     }
     if (probe != null)
     {
         probe.Dispose();
     }
     if (su != null)
     {
         su.Dispose();
     }
     if (s1Mapper != null)
     {
         s1Mapper.Dispose();
     }
     if (s1Actor != null)
     {
         s1Actor.Dispose();
     }
     if (g != null)
     {
         g.Dispose();
     }
     if (gm != null)
     {
         gm.Dispose();
     }
     if (ga != null)
     {
         ga.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (coneSrc != null)
     {
         coneSrc.Dispose();
     }
     if (coneMap != null)
     {
         coneMap.Dispose();
     }
     if (coneActor != null)
     {
         coneActor.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
 }
Esempio 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 (ptLoad != null)
     {
         ptLoad.Dispose();
     }
     if (plane != null)
     {
         plane.Dispose();
     }
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (ellipsoids != null)
     {
         ellipsoids.Dispose();
     }
     if (ellipNormals != null)
     {
         ellipNormals.Dispose();
     }
     if (lut != null)
     {
         lut.Dispose();
     }
     if (ellipMapper != null)
     {
         ellipMapper.Dispose();
     }
     if (ellipActor != null)
     {
         ellipActor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (coneSrc != null)
     {
         coneSrc.Dispose();
     }
     if (coneMap != null)
     {
         coneMap.Dispose();
     }
     if (coneActor != null)
     {
         coneActor.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
 }
Esempio n. 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 (ptLoad != null)
     {
         ptLoad.Dispose();
     }
     if (wSP != null)
     {
         wSP.Dispose();
     }
     if (rSP != null)
     {
         rSP.Dispose();
     }
     if (input != null)
     {
         input.Dispose();
     }
     if (s1 != null)
     {
         s1.Dispose();
     }
     if (lut != null)
     {
         lut.Dispose();
     }
     if (s1Mapper != null)
     {
         s1Mapper.Dispose();
     }
     if (s1Actor != null)
     {
         s1Actor.Dispose();
     }
     if (s2 != null)
     {
         s2.Dispose();
     }
     if (s2Mapper != null)
     {
         s2Mapper.Dispose();
     }
     if (s2Actor != null)
     {
         s2Actor.Dispose();
     }
     if (s3 != null)
     {
         s3.Dispose();
     }
     if (s3Mapper != null)
     {
         s3Mapper.Dispose();
     }
     if (s3Actor != null)
     {
         s3Actor.Dispose();
     }
     if (s4 != null)
     {
         s4.Dispose();
     }
     if (s4Mapper != null)
     {
         s4Mapper.Dispose();
     }
     if (s4Actor != null)
     {
         s4Actor.Dispose();
     }
     if (g != null)
     {
         g.Dispose();
     }
     if (gm != null)
     {
         gm.Dispose();
     }
     if (ga != null)
     {
         ga.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (coneSrc != null)
     {
         coneSrc.Dispose();
     }
     if (coneMap != null)
     {
         coneMap.Dispose();
     }
     if (coneActor != null)
     {
         coneActor.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
 }