Esempio n. 1
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();
     }
 }
Esempio n. 2
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();
         }
     }
 }
Esempio n. 3
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();
     }
 }