private void Window_Closed(object sender, EventArgs e)
 {
     temp.Dispose();
     testimgdata.Dispose();
     volumeProperty.Dispose();
     opacityTransferFunction.Dispose();
     colorTransferFunction.Dispose();
     compositeFunction.Dispose();
     volumeMapper.Dispose();
     volume.Dispose();
     aCamera.Dispose();
 }
Exemplo n.º 2
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (reader != null)
     {
         reader.Dispose();
     }
     if (magnify != null)
     {
         magnify.Dispose();
     }
     if (image_cursor != null)
     {
         image_cursor.Dispose();
     }
     if (axes != null)
     {
         axes.Dispose();
     }
     if (axes_mapper != null)
     {
         axes_mapper.Dispose();
     }
     if (axesActor != null)
     {
         axesActor.Dispose();
     }
     if (viewer != null)
     {
         viewer.Dispose();
     }
     if (opacity_transfer_function != null)
     {
         opacity_transfer_function.Dispose();
     }
     if (color_transfer_function != null)
     {
         color_transfer_function.Dispose();
     }
     if (volume_property != null)
     {
         volume_property.Dispose();
     }
     if (composite_function != null)
     {
         composite_function.Dispose();
     }
     if (volume_mapper != null)
     {
         volume_mapper.Dispose();
     }
     if (volume != null)
     {
         volume.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outline_mapper != null)
     {
         outline_mapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin2 != null)
     {
         renWin2.Dispose();
     }
 }
Exemplo n.º 3
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();
     }
 }
Exemplo n.º 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 (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();
     }
 }