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 (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (plane1 != null)
     {
         plane1.Dispose();
     }
     if (conn != null)
     {
         conn.Dispose();
     }
     if (plane1Map != null)
     {
         plane1Map.Dispose();
     }
     if (plane1Actor != null)
     {
         plane1Actor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (outlineProp != null)
     {
         outlineProp.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
 ///<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 (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (wall != null)
     {
         wall.Dispose();
     }
     if (wallMap != null)
     {
         wallMap.Dispose();
     }
     if (wallActor != null)
     {
         wallActor.Dispose();
     }
     if (fin != null)
     {
         fin.Dispose();
     }
     if (finMap != null)
     {
         finMap.Dispose();
     }
     if (finActor != null)
     {
         finActor.Dispose();
     }
     if (tmap != null)
     {
         tmap.Dispose();
     }
     if (texture != null)
     {
         texture.Dispose();
     }
     if (plane1 != null)
     {
         plane1.Dispose();
     }
     if (thresh1 != null)
     {
         thresh1.Dispose();
     }
     if (plane1Map != null)
     {
         plane1Map.Dispose();
     }
     if (plane1Actor != null)
     {
         plane1Actor.Dispose();
     }
     if (plane2 != null)
     {
         plane2.Dispose();
     }
     if (thresh2 != null)
     {
         thresh2.Dispose();
     }
     if (plane2Map != null)
     {
         plane2Map.Dispose();
     }
     if (plane2Actor != null)
     {
         plane2Actor.Dispose();
     }
     if (plane3 != null)
     {
         plane3.Dispose();
     }
     if (thresh3 != null)
     {
         thresh3.Dispose();
     }
     if (plane3Map != null)
     {
         plane3Map.Dispose();
     }
     if (plane3Actor != null)
     {
         plane3Actor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (outlineProp != null)
     {
         outlineProp.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }