Exemplo n.º 1
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();
     }
 }