Пример #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 (reader != null)
     {
         reader.Dispose();
     }
     if (cdp != null)
     {
         cdp.Dispose();
     }
     if (translator != null)
     {
         translator.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (mapOutline != null)
     {
         mapOutline.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (streamer != null)
     {
         streamer.Dispose();
     }
     if (cone != null)
     {
         cone.Dispose();
     }
     if (cones != null)
     {
         cones.Dispose();
     }
     if (mapCones != null)
     {
         mapCones.Dispose();
     }
     if (conesActor != null)
     {
         conesActor.Dispose();
     }
 }
Пример #2
0
 ///<summary>
 ///Deletes all static objects created
 ///</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (cone != null)
     {
         cone.Dispose();
     }
     if (glyph != null)
     {
         glyph.Dispose();
     }
     if (apd != null)
     {
         apd.Dispose();
     }
     if (maceMapper != null)
     {
         maceMapper.Dispose();
     }
     if (maceActor != null)
     {
         maceActor.Dispose();
     }
     if (planes != null)
     {
         planes.Dispose();
     }
     if (clipper != null)
     {
         clipper.Dispose();
     }
     if (selectMapper != null)
     {
         selectMapper.Dispose();
     }
     if (selectActor != null)
     {
         selectActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (boxWidget != null)
     {
         boxWidget.Dispose();
     }
 }
Пример #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 (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();
     }
 }
Пример #4
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();
     }
 }
Пример #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 (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();
     }
 }