Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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 (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();
     }
 }
Exemple #4
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();
     }
 }
Exemple #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 (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();
     }
 }