コード例 #1
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();
     }
 }
コード例 #2
0
        /// <summary>
        /// Détruit proprement les objets
        /// </summary>
        public void destroy()
        {
            _renderer.RemoveActor(_volumeActor);

            if (_stlReader != null)
            {
                _stlReader.Dispose();
            }

            if (_volumeMapper != null)
            {
                _volumeMapper.Dispose();
            }

            if (_volumeActor != null)
            {
                _renderer.RemoveActor(_volumeActor);
                _volumeActor.Dispose();
            }

            if (_edgeMapper != null)
            {
                _edgeMapper.Dispose();
            }

            if (_edgeActor != null)
            {
                _renderer.RemoveActor(_edgeActor);
                _edgeActor.Dispose();
            }

            Render();
        }
コード例 #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 (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();
     }
 }
コード例 #4
0
 ///<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();
     }
 }
コード例 #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 (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();
     }
 }
コード例 #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 (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();
     }
 }
コード例 #7
0
        static private void init()
        {
            vtkSTLReader rdr = vtkSTLReader.New();

            rdr.SetFileName("BODY-EXTRUDEUR-WADE.stl");



            // Créer une géométrie sphérique

            /*vtkSphereSource sphere = vtkSphereSource.New();
             * sphere.SetRadius(1.0);
             * sphere.SetThetaResolution(18);
             * sphere.SetPhiResolution(18);*/

            // Transforme la géométrie en primitives graphiques (OpenGL dans notre cas)
            vtkPolyDataMapper map = vtkPolyDataMapper.New();

            map.SetInput(rdr.GetOutput());

            // L'acteur représente l'entitée géométrique.
            // Il permet de définir sa position, son orientation, sa couleur, etc.
            vtkActor aSphere = new vtkActor();

            aSphere.SetMapper(map);
            aSphere.GetProperty().SetColor(0.8, 0.8, 0.8); // color blue

            // Nous créons un renderer qui va faire le rendu de notre entitée.
            vtkRenderer ren1 = vtkRenderer.New();

            ren1.AddActor(aSphere);
            ren1.SetBackground(1, 1, 1); // background color white

            // Nous créons une fenêtre de rendu
            vtkRenderWindow renWin = vtkRenderWindow.New();

            renWin.AddRenderer(ren1);
            renWin.SetSize(300, 300);

            // Nous créons un interactor qui permet de bouger la caméra.
            vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();

            iren.SetRenderWindow(renWin);

            // Nous lançons le rendu et l'interaction
            renWin.Render();
            iren.Start();


            ////// CLEANUP ///////
            rdr.Dispose();
            map.Dispose();
            aSphere.Dispose();
            ren1.Dispose();
            renWin.Dispose();
            iren.Dispose();
        }
コード例 #8
0
 /// <summary>
 /// Clean up globals
 /// </summary>
 public void disposeAllVTKObjects()
 {
     puzzle.Dispose();
     mapper.Dispose();
     actor.Dispose();
     arrows.Dispose();
     mapper2.Dispose();
     actor2.Dispose();
 }
コード例 #9
0
 public void Dispose()
 {
     if (actor != null)
     {
         actor.Dispose();
         _polyDataMapper.Dispose();
         reader.Dispose();
     }
 }
コード例 #10
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();
     }
 }
コード例 #11
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();
     }
 }
コード例 #12
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (rgridReader != null)
     {
         rgridReader.Dispose();
     }
     if (outline != null)
     {
         outline.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (extract1 != null)
     {
         extract1.Dispose();
     }
     if (surf1 != null)
     {
         surf1.Dispose();
     }
     if (tris != null)
     {
         tris.Dispose();
     }
     if (mapper1 != null)
     {
         mapper1.Dispose();
     }
     if (actor1 != null)
     {
         actor1.Dispose();
     }
     if (rectWriter != null)
     {
         rectWriter.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
コード例 #13
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();
     }
 }
コード例 #14
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 (v16 != null)
     {
         v16.Dispose();
     }
     if (iso != null)
     {
         iso.Dispose();
     }
     if (isoMapper != null)
     {
         isoMapper.Dispose();
     }
     if (isoActor != null)
     {
         isoActor.Dispose();
     }
     if (mask != null)
     {
         mask.Dispose();
     }
     if (visPts != null)
     {
         visPts.Dispose();
     }
     if (ldm != null)
     {
         ldm.Dispose();
     }
     if (tprop != null)
     {
         tprop.Dispose();
     }
     if (contourLabels != null)
     {
         contourLabels.Dispose();
     }
 }
コード例 #15
0
        public void RemoveMe()
        {
            if (_rendererPackage != null)
            {
                _rendererPackage.RemoveActor(_lineActor);
            }
            if (_renderer != null)
            {
                _renderer.RemoveActor(_lineActor);
            }

            _lineActor.Dispose();
            line.Dispose();
        }
コード例 #16
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (data != null)
     {
         data.Dispose();
     }
     if (gauss != null)
     {
         gauss.Dispose();
     }
     if (a != null)
     {
         a.Dispose();
     }
     if (ellipse != null)
     {
         ellipse.Dispose();
     }
     if (m != null)
     {
         m.Dispose();
     }
     if (cut != null)
     {
         cut.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
コード例 #17
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (sphere != null)
     {
         sphere.Dispose();
     }
     if (selectionPoints != null)
     {
         selectionPoints.Dispose();
     }
     if (loop != null)
     {
         loop.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (connect != null)
     {
         connect.Dispose();
     }
     if (clipMapper != null)
     {
         clipMapper.Dispose();
     }
     if (backProp != null)
     {
         backProp.Dispose();
     }
     if (clipActor != null)
     {
         clipActor.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.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 (sphere != null)
     {
         sphere.Dispose();
     }
     if (piece != null)
     {
         piece.Dispose();
     }
     if (pdn != null)
     {
         pdn.Dispose();
     }
     if (deci != null)
     {
         deci.Dispose();
     }
     if (q != null)
     {
         q.Dispose();
     }
     if (streamer != null)
     {
         streamer.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
 }
コード例 #19
0
ファイル: Form1.cs プロジェクト: mta152/activizdotnet-1
        /// <summary>
        /// Clean up the global variables
        /// </summary>
        public void DeleteAllVTKObjects()
        {
            animalActor.Dispose();
            deciAnimalActor.Dispose();
            eyeActor1.Dispose();
            eyeActor2.Dispose();
            deciEyeActor1.Dispose();
            deciEyeActor2.Dispose();
            textAfter.Dispose();
            textBefore.Dispose();

            deciAnimalMapper.Dispose();
            deciEyeMapper1.Dispose();
            deciEyeMapper2.Dispose();
            cleanAnimal.Dispose();
            smoothAnimal.Dispose();
            normalsAnimal.Dispose();
            triangleAnimal.Dispose();
            decimateAnimal.Dispose();

            animalMapper.Dispose();
            eyeMapper1.Dispose();
            eyeMapper2.Dispose();
            clean.Dispose();
            smooth.Dispose();
            normals.Dispose();
            triangles.Dispose();
            decimate.Dispose();

            rabbitReader.Dispose();
            eyeReader.Dispose();
            rabbitColorReader.Dispose();
            eyeColorReader.Dispose();
            squirrelReader.Dispose();
            squirrelEyeReader.Dispose();
            squirrelEyeReader2.Dispose();
            squirrelColorReader.Dispose();
            squirrelEyeColorReader.Dispose();
            squirrelEyeColorReader2.Dispose();
            flyingSquirrelReader.Dispose();
            flyingSquirreleyeReader.Dispose();
            flyingSquirrelColorReader.Dispose();
            flyingSquirrelEyeColorReader.Dispose();
            chinchillaReader.Dispose();
            chinchillaEyeReader.Dispose();
            chinchillaColorReader.Dispose();
            chinchillaEyeColorReader.Dispose();
        }
コード例 #20
0
        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();
        }
コード例 #21
0
        public void RemoveMe()
        {
            if (actor != null)
            {
                _renderer.RemoveActor(actor);

                if (reader != null)
                {
                    reader.Dispose();
                }
                PolyData.Dispose();
                _polyDataMapper.Dispose();
                actor.Dispose();
            }
            actor = null;
        }
コード例 #22
0
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (alg != null)
     {
         alg.Dispose();
     }
     if (pip != null)
     {
         pip.Dispose();
     }
     if (Ren1 != null)
     {
         Ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
     if (pvTemp59 != null)
     {
         pvTemp59.Dispose();
     }
     if (pvTemp79 != null)
     {
         pvTemp79.Dispose();
     }
     if (pvTemp104 != null)
     {
         pvTemp104.Dispose();
     }
     if (pvTemp87 != null)
     {
         pvTemp87.Dispose();
     }
     if (pvTemp88 != null)
     {
         pvTemp88.Dispose();
     }
 }
コード例 #23
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();
     }
 }
コード例 #24
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();
     }
 }
コード例 #25
0
ファイル: AVcursor3D.cs プロジェクト: mta152/activizdotnet-1
 ///<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();
     }
 }
コード例 #26
0
 ///<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();
     }
 }
コード例 #27
0
ファイル: Program.cs プロジェクト: Monkeybin11/Kitware.VTK
 ///<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();
     }
 }
コード例 #28
0
 ///<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 (sphere != null)
     {
         sphere.Dispose();
     }
     if (extract != null)
     {
         extract.Dispose();
     }
     if (normals != null)
     {
         normals.Dispose();
     }
     if (ps != null)
     {
         ps.Dispose();
     }
     if (mapper != null)
     {
         mapper.Dispose();
     }
     if (actor != null)
     {
         actor.Dispose();
     }
     if (sphere2 != null)
     {
         sphere2.Dispose();
     }
     if (extract2 != null)
     {
         extract2.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (psize != null)
     {
         psize.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (sphere3 != null)
     {
         sphere3.Dispose();
     }
     if (extract3 != null)
     {
         extract3.Dispose();
     }
     if (ps3 != null)
     {
         ps3.Dispose();
     }
     if (mapper3 != null)
     {
         mapper3.Dispose();
     }
     if (actor3 != null)
     {
         actor3.Dispose();
     }
     if (sphere4 != null)
     {
         sphere4.Dispose();
     }
     if (extract4 != null)
     {
         extract4.Dispose();
     }
     if (ps4 != null)
     {
         ps4.Dispose();
     }
     if (mapper4 != null)
     {
         mapper4.Dispose();
     }
     if (actor4 != null)
     {
         actor4.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
コード例 #29
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();
     }
 }
コード例 #30
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 (write != null)
     {
         write.Dispose();
     }
     if (dor != null)
     {
         dor.Dispose();
     }
     if (do2ds != null)
     {
         do2ds.Dispose();
     }
     if (fd2ad != null)
     {
         fd2ad.Dispose();
     }
     if (warp != null)
     {
         warp.Dispose();
     }
     if (connect != null)
     {
         connect.Dispose();
     }
     if (moldMapper != null)
     {
         moldMapper.Dispose();
     }
     if (moldActor != null)
     {
         moldActor.Dispose();
     }
     if (connect2 != null)
     {
         connect2.Dispose();
     }
     if (parison != null)
     {
         parison.Dispose();
     }
     if (normals2 != null)
     {
         normals2.Dispose();
     }
     if (lut != null)
     {
         lut.Dispose();
     }
     if (parisonMapper != null)
     {
         parisonMapper.Dispose();
     }
     if (parisonActor != null)
     {
         parisonActor.Dispose();
     }
     if (cf != null)
     {
         cf.Dispose();
     }
     if (contourMapper != null)
     {
         contourMapper.Dispose();
     }
     if (contours != null)
     {
         contours.Dispose();
     }
     if (ren1 != null)
     {
         ren1.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }