///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (math != null)
     {
         math.Dispose();
     }
     if (pf != null)
     {
         pf.Dispose();
     }
     if (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (dst != null)
     {
         dst.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (cf != null)
     {
         cf.Dispose();
     }
     if (pdn != null)
     {
         pdn.Dispose();
     }
     if (ps != null)
     {
         ps.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
예제 #2
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (light != null)
     {
         light.Dispose();
     }
     if (textProp != null)
     {
         textProp.Dispose();
     }
 }
예제 #3
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.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 (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (ps != null)
     {
         ps.Dispose();
     }
     if (psMapper != null)
     {
         psMapper.Dispose();
     }
     if (psActor != null)
     {
         psActor.Dispose();
     }
     if (streamer != null)
     {
         streamer.Dispose();
     }
     if (streamMapper != null)
     {
         streamMapper.Dispose();
     }
     if (streamline != null)
     {
         streamline.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (cam1 != null)
     {
         cam1.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 (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (cf != null)
     {
         cf.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
예제 #6
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 (outline != null)
     {
         outline.Dispose();
     }
     if (mapOutline != null)
     {
         mapOutline.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (rk != null)
     {
         rk.Dispose();
     }
     if (streamer != null)
     {
         streamer.Dispose();
     }
     if (aa != null)
     {
         aa.Dispose();
     }
     if (rf1 != null)
     {
         rf1.Dispose();
     }
     if (mapStream != null)
     {
         mapStream.Dispose();
     }
     if (streamActor != null)
     {
         streamActor.Dispose();
     }
     if (cam != null)
     {
         cam.Dispose();
     }
 }
예제 #7
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (light != null)
     {
         light.Dispose();
     }
     if (math != null)
     {
         math.Dispose();
     }
     if (textProp != null)
     {
         textProp.Dispose();
     }
     for (int i = 0; i < 200; i++)
     {
         /*if (pl3d[i] != null)
          * {
          *  pl3d[i].Dispose();
          * }
          * if (lane[i] != null)
          * {
          *  lane[i].Dispose();
          * }*/
         if (mapper[i] != null)
         {
             mapper[i].Dispose();
         }
         if (actor[i] != null)
         {
             actor[i].Dispose();
         }
         if (ren[i] != null)
         {
             ren[i].Dispose();
         }
         if (textMapper[i] != null)
         {
             textMapper[i].Dispose();
         }
         if (text[i] != null)
         {
             text[i].Dispose();
         }
     }
 }
예제 #8
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (sphereMapper != null)
     {
         sphereMapper.Dispose();
     }
     if (sphereActor != null)
     {
         sphereActor.Dispose();
     }
     if (rt != null)
     {
         rt.Dispose();
     }
     if (voi != null)
     {
         voi.Dispose();
     }
     if (surf != null)
     {
         surf.Dispose();
     }
     if (tris != null)
     {
         tris.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
예제 #9
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();
     }
 }
예제 #10
0
 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();
 }
예제 #11
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (reader != null)
     {
         reader.Dispose();
     }
     if (ds2do != null)
     {
         ds2do.Dispose();
     }
     if (writer != null)
     {
         writer.Dispose();
     }
     if (dor != null)
     {
         dor.Dispose();
     }
     if (do2ds != null)
     {
         do2ds.Dispose();
     }
     if (fd2ad != null)
     {
         fd2ad.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
예제 #12
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (reader != null)
     {
         reader.Dispose();
     }
     if (elev != null)
     {
         elev.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
예제 #13
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (puzzle != null)
     {
         puzzle.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (arrows != null)
     {
         arrows.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (cam != null)
     {
         cam.Dispose();
     }
 }
예제 #14
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (fohe != null)
     {
         fohe.Dispose();
     }
     if (normals != null)
     {
         normals.Dispose();
     }
     if (foheMapper != null)
     {
         foheMapper.Dispose();
     }
     if (foheActor != null)
     {
         foheActor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (mapOutline != null)
     {
         mapOutline.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (camera != null)
     {
         camera.Dispose();
     }
     if (light != null)
     {
         light.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (ren2 != null)
     {
         ren2.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (tprop != null)
     {
         tprop.Dispose();
     }
     if (axes != null)
     {
         axes.Dispose();
     }
     if (axes2 != null)
     {
         axes2.Dispose();
     }
 }
예제 #15
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();
     }
 }
예제 #16
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (ren2 != null)
     {
         ren2.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (probeLine != null)
     {
         probeLine.Dispose();
     }
     if (probe != null)
     {
         probe.Dispose();
     }
     if (probeTube != null)
     {
         probeTube.Dispose();
     }
     if (probeMapper != null)
     {
         probeMapper.Dispose();
     }
     if (probeActor != null)
     {
         probeActor.Dispose();
     }
     if (displayLine != null)
     {
         displayLine.Dispose();
     }
     if (displayMerge != null)
     {
         displayMerge.Dispose();
     }
     if (displayWarp != null)
     {
         displayWarp.Dispose();
     }
     if (displayMapper != null)
     {
         displayMapper.Dispose();
     }
     if (displayActor != null)
     {
         displayActor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
     if (cam2 != null)
     {
         cam2.Dispose();
     }
 }
예제 #17
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();
     }
 }
예제 #18
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 (plane != null)
     {
         plane.Dispose();
     }
     if (transP1 != null)
     {
         transP1.Dispose();
     }
     if (tpd1 != null)
     {
         tpd1.Dispose();
     }
     if (outTpd1 != null)
     {
         outTpd1.Dispose();
     }
     if (mapTpd1 != null)
     {
         mapTpd1.Dispose();
     }
     if (tpd1Actor != null)
     {
         tpd1Actor.Dispose();
     }
     if (transP2 != null)
     {
         transP2.Dispose();
     }
     if (tpd2 != null)
     {
         tpd2.Dispose();
     }
     if (outTpd2 != null)
     {
         outTpd2.Dispose();
     }
     if (mapTpd2 != null)
     {
         mapTpd2.Dispose();
     }
     if (tpd2Actor != null)
     {
         tpd2Actor.Dispose();
     }
     if (transP3 != null)
     {
         transP3.Dispose();
     }
     if (tpd3 != null)
     {
         tpd3.Dispose();
     }
     if (outTpd3 != null)
     {
         outTpd3.Dispose();
     }
     if (mapTpd3 != null)
     {
         mapTpd3.Dispose();
     }
     if (tpd3Actor != null)
     {
         tpd3Actor.Dispose();
     }
     if (appendF != null)
     {
         appendF.Dispose();
     }
     if (probe != null)
     {
         probe.Dispose();
     }
     if (contour != null)
     {
         contour.Dispose();
     }
     if (contourMapper != null)
     {
         contourMapper.Dispose();
     }
     if (planeActor != null)
     {
         planeActor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (lineWidget != null)
     {
         lineWidget.Dispose();
     }
     if (seeds != null)
     {
         seeds.Dispose();
     }
     if (rk4 != null)
     {
         rk4.Dispose();
     }
     if (streamer != null)
     {
         streamer.Dispose();
     }
     if (rf != null)
     {
         rf.Dispose();
     }
     if (streamMapper != null)
     {
         streamMapper.Dispose();
     }
     if (streamline != null)
     {
         streamline.Dispose();
     }
     if (lineWidget2 != null)
     {
         lineWidget2.Dispose();
     }
     if (seeds2 != null)
     {
         seeds2.Dispose();
     }
     if (streamer2 != null)
     {
         streamer2.Dispose();
     }
     if (rf2 != null)
     {
         rf2.Dispose();
     }
     if (streamMapper2 != null)
     {
         streamMapper2.Dispose();
     }
     if (streamline2 != null)
     {
         streamline2.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
예제 #20
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();
     }
 }
 ///<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 (writer != null)
     {
         writer.Dispose();
     }
     if (pReader != null)
     {
         pReader.Dispose();
     }
     if (surface != null)
     {
         surface.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (fractal != null)
     {
         fractal.Dispose();
     }
     if (writer2 != null)
     {
         writer2.Dispose();
     }
     if (pReader2 != null)
     {
         pReader2.Dispose();
     }
     if (iso != null)
     {
         iso.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (writer3 != null)
     {
         writer3.Dispose();
     }
     if (pReader3 != null)
     {
         pReader3.Dispose();
     }
     if (mapper3 != null)
     {
         mapper3.Dispose();
     }
     if (actor3 != null)
     {
         actor3.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
예제 #22
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();
     }
 }
예제 #23
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (reader != null)
     {
         reader.Dispose();
     }
     if (toRectilinearGrid != null)
     {
         toRectilinearGrid.Dispose();
     }
     if (plane != null)
     {
         plane.Dispose();
     }
     if (warper != null)
     {
         warper.Dispose();
     }
     if (planeMapper != null)
     {
         planeMapper.Dispose();
     }
     if (planeActor != null)
     {
         planeActor.Dispose();
     }
     if (cutPlane != null)
     {
         cutPlane.Dispose();
     }
     if (planeCut != null)
     {
         planeCut.Dispose();
     }
     if (cutMapper != null)
     {
         cutMapper.Dispose();
     }
     if (cutActor != null)
     {
         cutActor.Dispose();
     }
     if (iso != null)
     {
         iso.Dispose();
     }
     if (normals != null)
     {
         normals.Dispose();
     }
     if (isoMapper != null)
     {
         isoMapper.Dispose();
     }
     if (isoActor != null)
     {
         isoActor.Dispose();
     }
     if (streamer != null)
     {
         streamer.Dispose();
     }
     if (streamTube != null)
     {
         streamTube.Dispose();
     }
     if (mapStreamTube != null)
     {
         mapStreamTube.Dispose();
     }
     if (streamTubeActor != null)
     {
         streamTubeActor.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (outlineMapper != null)
     {
         outlineMapper.Dispose();
     }
     if (outlineActor != null)
     {
         outlineActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (pl3d != null)
     {
         pl3d.Dispose();
     }
     if (gf != null)
     {
         gf.Dispose();
     }
     if (gMapper != null)
     {
         gMapper.Dispose();
     }
     if (gActor != null)
     {
         gActor.Dispose();
     }
     if (gf2 != null)
     {
         gf2.Dispose();
     }
     if (g2Mapper != null)
     {
         g2Mapper.Dispose();
     }
     if (g2Actor != null)
     {
         g2Actor.Dispose();
     }
     if (gf3 != null)
     {
         gf3.Dispose();
     }
     if (g3Mapper != null)
     {
         g3Mapper.Dispose();
     }
     if (g3Actor != null)
     {
         g3Actor.Dispose();
     }
     if (gf4 != null)
     {
         gf4.Dispose();
     }
     if (g4Mapper != null)
     {
         g4Mapper.Dispose();
     }
     if (g4Actor != null)
     {
         g4Actor.Dispose();
     }
     if (s != null)
     {
         s.Dispose();
     }
     if (eg != null)
     {
         eg.Dispose();
     }
     if (gf5 != null)
     {
         gf5.Dispose();
     }
     if (g5Mapper != null)
     {
         g5Mapper.Dispose();
     }
     if (g5Actor != null)
     {
         g5Actor.Dispose();
     }
     if (gf6 != null)
     {
         gf6.Dispose();
     }
     if (g6Mapper != null)
     {
         g6Mapper.Dispose();
     }
     if (g6Actor != null)
     {
         g6Actor.Dispose();
     }
     if (rgridReader != null)
     {
         rgridReader.Dispose();
     }
     if (gf7 != null)
     {
         gf7.Dispose();
     }
     if (g7Mapper != null)
     {
         g7Mapper.Dispose();
     }
     if (g7Actor != null)
     {
         g7Actor.Dispose();
     }
     if (gf8 != null)
     {
         gf8.Dispose();
     }
     if (g8Mapper != null)
     {
         g8Mapper.Dispose();
     }
     if (g8Actor != null)
     {
         g8Actor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (cam1 != null)
     {
         cam1.Dispose();
     }
 }
예제 #25
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 (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();
     }
 }