示例#1
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (gs != null)
     {
         gs.Dispose();
     }
     if (t != null)
     {
         t.Dispose();
     }
     if (ss != null)
     {
         ss.Dispose();
     }
     if (grid0 != null)
     {
         grid0.Dispose();
     }
     if (d != null)
     {
         d.Dispose();
     }
     if (iac != null)
     {
         iac.Dispose();
     }
     if (gs1 != null)
     {
         gs1.Dispose();
     }
     if (t1 != null)
     {
         t1.Dispose();
     }
     if (gs2 != null)
     {
         gs2.Dispose();
     }
     if (gs3 != null)
     {
         gs3.Dispose();
     }
     if (t3 != null)
     {
         t3.Dispose();
     }
     if (gs4 != null)
     {
         gs4.Dispose();
     }
     if (iac1 != null)
     {
         iac1.Dispose();
     }
     if (iac2 != null)
     {
         iac2.Dispose();
     }
     if (iac3 != null)
     {
         iac3.Dispose();
     }
     if (gridR != null)
     {
         gridR.Dispose();
     }
     if (dR != null)
     {
         dR.Dispose();
     }
     if (gridG != null)
     {
         gridG.Dispose();
     }
     if (dG != null)
     {
         dG.Dispose();
     }
     if (gridB != null)
     {
         gridB.Dispose();
     }
     if (dB != null)
     {
         dB.Dispose();
     }
     if (iacRG != null)
     {
         iacRG.Dispose();
     }
     if (iacRGB != null)
     {
         iacRGB.Dispose();
     }
     if (iacRGBA != null)
     {
         iacRGBA.Dispose();
     }
     if (rampPoint2 != null)
     {
         rampPoint2.Dispose();
     }
     if (ramp1 != null)
     {
         ramp1.Dispose();
     }
     if (surface != null)
     {
         surface.Dispose();
     }
     if (constant1 != null)
     {
         constant1.Dispose();
     }
     if (gop != null)
     {
         gop.Dispose();
     }
     if (rainbow != null)
     {
         rainbow.Dispose();
     }
     if (red != null)
     {
         red.Dispose();
     }
     if (green != null)
     {
         green.Dispose();
     }
     if (blue != null)
     {
         blue.Dispose();
     }
     if (yellow != null)
     {
         yellow.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (culler != null)
     {
         culler.Dispose();
     }
 }
示例#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 (camera != null)
     {
         camera.Dispose();
     }
     if (reader != null)
     {
         reader.Dispose();
     }
     if (readerSS != null)
     {
         readerSS.Dispose();
     }
     if (bounds != null)
     {
         bounds.Dispose();
     }
     if (boundsMapper != null)
     {
         boundsMapper.Dispose();
     }
     if (boundsActor != null)
     {
         boundsActor.Dispose();
     }
     if (contour != null)
     {
         contour.Dispose();
     }
     if (contourMapper != null)
     {
         contourMapper.Dispose();
     }
     if (contourActor != null)
     {
         contourActor.Dispose();
     }
     if (opacityTransferFunction != null)
     {
         opacityTransferFunction.Dispose();
     }
     if (colorTransferFunction != null)
     {
         colorTransferFunction.Dispose();
     }
     if (volumeProperty != null)
     {
         volumeProperty.Dispose();
     }
     if (compositeFunction != null)
     {
         compositeFunction.Dispose();
     }
     if (volumeMapper != null)
     {
         volumeMapper.Dispose();
     }
     if (volume != null)
     {
         volume.Dispose();
     }
     if (Sphere != null)
     {
         Sphere.Dispose();
     }
     if (Glyph != null)
     {
         Glyph.Dispose();
     }
     if (AtomsMapper != null)
     {
         AtomsMapper.Dispose();
     }
     if (Atoms != null)
     {
         Atoms.Dispose();
     }
     if (Tube != null)
     {
         Tube.Dispose();
     }
     if (BondsMapper != null)
     {
         BondsMapper.Dispose();
     }
     if (Bonds != null)
     {
         Bonds.Dispose();
     }
 }