Ejemplo n.º 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();
     }
 }
 ///<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();
     }
 }
Ejemplo n.º 3
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();
        }
Ejemplo 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 (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();
     }
 }
Ejemplo n.º 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 (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();
     }
 }
Ejemplo n.º 6
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();
     }
 }
Ejemplo n.º 7
0
 public override bool Read(string fileName, IMonitor mon = null)
 {
     try
     {
         unitList.Clear();
         vtkSTLReader      reader = vtkSTLReader.New();
         vtkPolyDataMapper mapper = vtkPolyDataMapper.New();
         reader.SetFileName(fileName);
         mapper.SetInputConnection(reader.GetOutputPort());
         StlUnit unit = new StlUnit("Stl." + Path.GetFileNameWithoutExtension(fileName));
         unit.Actor.SetMapper(mapper);
         unitList.Add(unit);
         reader.Dispose();
         mapper.Dispose();
         return(true);
     }
     catch (Exception e)
     {
         if (mon != null)
         {
             mon.ErrorLine(e.Message);
         }
         return(false);
     }
 }
Ejemplo n.º 8
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();
     }
 }
Ejemplo n.º 9
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();
        }
Ejemplo n.º 10
0
 public void Dispose()
 {
     if (actor != null)
     {
         actor.Dispose();
         _polyDataMapper.Dispose();
         reader.Dispose();
     }
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Clean up globals
 /// </summary>
 public void disposeAllVTKObjects()
 {
     puzzle.Dispose();
     mapper.Dispose();
     actor.Dispose();
     arrows.Dispose();
     mapper2.Dispose();
     actor2.Dispose();
 }
Ejemplo n.º 12
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();
     }
 }
Ejemplo n.º 13
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();
     }
 }
Ejemplo n.º 14
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();
     }
 }
Ejemplo n.º 15
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();
     }
 }
Ejemplo n.º 16
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();
     }
 }
Ejemplo n.º 17
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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 19
0
        public void RemoveMe()
        {
            if (actor != null)
            {
                _renderer.RemoveActor(actor);

                if (reader != null)
                {
                    reader.Dispose();
                }
                PolyData.Dispose();
                _polyDataMapper.Dispose();
                actor.Dispose();
            }
            actor = null;
        }
Ejemplo n.º 20
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();
     }
 }
Ejemplo n.º 21
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();
     }
 }
Ejemplo n.º 22
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();
     }
 }
 ///<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();
     }
 }
Ejemplo n.º 24
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();
     }
 }
Ejemplo n.º 25
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();
     }
 }
Ejemplo n.º 26
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();
     }
 }
Ejemplo n.º 27
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();
     }
 }
 ///<summary>Deletes all static objects created</summary>
 public static void deleteAllVTKObjects()
 {
     //clean up vtk objects
     if (gauss != null)
     {
         gauss.Dispose();
     }
     if (translator != null)
     {
         translator.Dispose();
     }
     if (clip1 != null)
     {
         clip1.Dispose();
     }
     if (surf1 != null)
     {
         surf1.Dispose();
     }
     if (tf1 != null)
     {
         tf1.Dispose();
     }
     if (mapper1 != null)
     {
         mapper1.Dispose();
     }
     if (actor1 != null)
     {
         actor1.Dispose();
     }
     if (clip2 != null)
     {
         clip2.Dispose();
     }
     if (surf2 != null)
     {
         surf2.Dispose();
     }
     if (tf2 != null)
     {
         tf2.Dispose();
     }
     if (mapper2 != null)
     {
         mapper2.Dispose();
     }
     if (actor2 != null)
     {
         actor2.Dispose();
     }
     if (clip3 != null)
     {
         clip3.Dispose();
     }
     if (surf3 != null)
     {
         surf3.Dispose();
     }
     if (tf3 != null)
     {
         tf3.Dispose();
     }
     if (mapper3 != null)
     {
         mapper3.Dispose();
     }
     if (actor3 != null)
     {
         actor3.Dispose();
     }
     if (ren != null)
     {
         ren.Dispose();
     }
     if (renWin != null)
     {
         renWin.Dispose();
     }
     if (iren != null)
     {
         iren.Dispose();
     }
 }
Ejemplo n.º 29
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();
     }
 }
 ///<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 (Plot3D0 != null)
     {
         Plot3D0.Dispose();
     }
     if (Geometry5 != null)
     {
         Geometry5.Dispose();
     }
     if (Mapper5 != null)
     {
         Mapper5.Dispose();
     }
     if (Actor5 != null)
     {
         Actor5.Dispose();
     }
     if (ExtractGrid[0] != null)
     {
         ExtractGrid[0].Dispose();
     }
     if (ExtractGrid[1] != null)
     {
         ExtractGrid[1].Dispose();
     }
     if (ExtractGrid[2] != null)
     {
         ExtractGrid[2].Dispose();
     }
     if (LineSourceWidget0 != null)
     {
         LineSourceWidget0.Dispose();
     }
     if (mbds != null)
     {
         mbds.Dispose();
     }
     if (Stream0 != null)
     {
         Stream0.Dispose();
     }
     if (aa != null)
     {
         aa.Dispose();
     }
     if (Ribbon0 != null)
     {
         Ribbon0.Dispose();
     }
     if (LookupTable1 != null)
     {
         LookupTable1.Dispose();
     }
     if (Mapper10 != null)
     {
         Mapper10.Dispose();
     }
     if (Actor10 != null)
     {
         Actor10.Dispose();
     }
 }