Beispiel #1
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 (FormMesh != null)
     {
         FormMesh.Dispose();
     }
     if (TetraEdges != null)
     {
         TetraEdges.Dispose();
     }
     if (tubes != null)
     {
         tubes.Dispose();
     }
     if (Tubes[0] != null)
     {
         Tubes[0].Dispose();
     }
     if (Tubes[1] != null)
     {
         Tubes[1].Dispose();
     }
     if (Tubes[2] != null)
     {
         Tubes[2].Dispose();
     }
     if (Tubes[3] != null)
     {
         Tubes[3].Dispose();
     }
     if (DivTypes != null)
     {
         DivTypes.Dispose();
     }
     for (int i = 0; i < 100; i++)
     {
         if (mapEdges[i] != null)
         {
             mapEdges[i].Dispose();
         }
         if (edgeActor[i] != null)
         {
             edgeActor[i].Dispose();
         }
         if (ren[i] != null)
         {
             ren[i].Dispose();
         }
     }
 }
        public void RemoveMe()
        {
            if (centerLineActor != null)
            {
                renderer.RemoveActor(centerLineActor);
                centerLineActor.Dispose();
                centerLineActor = null;
            }

            _cleanFilter.Dispose();
            _profileTubes.Dispose();
            _profileData.Dispose();
            _lines.Dispose();
            _points.Dispose();
            this._mapper.Dispose();
        }
Beispiel #3
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (math != null)
     {
         math.Dispose();
     }
     if (points != null)
     {
         points.Dispose();
     }
     if (profile != null)
     {
         profile.Dispose();
     }
     if (del != null)
     {
         del.Dispose();
     }
     if (mapMesh != null)
     {
         mapMesh.Dispose();
     }
     if (meshActor != null)
     {
         meshActor.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (tubes != null)
     {
         tubes.Dispose();
     }
     if (mapEdges != null)
     {
         mapEdges.Dispose();
     }
     if (edgeActor != null)
     {
         edgeActor.Dispose();
     }
     if (ball != null)
     {
         ball.Dispose();
     }
     if (balls != null)
     {
         balls.Dispose();
     }
     if (mapBalls != null)
     {
         mapBalls.Dispose();
     }
     if (ballActor != null)
     {
         ballActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
Beispiel #4
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();
     }
 }
Beispiel #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 (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();
     }
 }
Beispiel #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 (math != null)
     {
         math.Dispose();
     }
     if (aKSplineX != null)
     {
         aKSplineX.Dispose();
     }
     if (aKSplineY != null)
     {
         aKSplineY.Dispose();
     }
     if (aKSplineZ != null)
     {
         aKSplineZ.Dispose();
     }
     if (aCSplineX != null)
     {
         aCSplineX.Dispose();
     }
     if (aCSplineY != null)
     {
         aCSplineY.Dispose();
     }
     if (aCSplineZ != null)
     {
         aCSplineZ.Dispose();
     }
     if (inputPoints != null)
     {
         inputPoints.Dispose();
     }
     if (inputData != null)
     {
         inputData.Dispose();
     }
     if (balls != null)
     {
         balls.Dispose();
     }
     if (glyphPoints != null)
     {
         glyphPoints.Dispose();
     }
     if (glyphMapper != null)
     {
         glyphMapper.Dispose();
     }
     if (glyph != null)
     {
         glyph.Dispose();
     }
     if (Kpoints != null)
     {
         Kpoints.Dispose();
     }
     if (Cpoints != null)
     {
         Cpoints.Dispose();
     }
     if (profileKData != null)
     {
         profileKData.Dispose();
     }
     if (profileCData != null)
     {
         profileCData.Dispose();
     }
     if (lines != null)
     {
         lines.Dispose();
     }
     if (profileKTubes != null)
     {
         profileKTubes.Dispose();
     }
     if (profileKMapper != null)
     {
         profileKMapper.Dispose();
     }
     if (profileK != null)
     {
         profileK.Dispose();
     }
     if (profileCTubes != null)
     {
         profileCTubes.Dispose();
     }
     if (profileCMapper != null)
     {
         profileCMapper.Dispose();
     }
     if (profileC != null)
     {
         profileC.Dispose();
     }
 }
Beispiel #7
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();
     }
 }
 ///<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 (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();
     }
 }