///<summary>Deletes all static objects created</summary> public static void deleteAllVTKObjects() { //clean up vtk objects rtTester.Dispose(); if (tempViewer != null) { tempViewer.Dispose(); } if (tempRenderWindow != null) { tempRenderWindow.Dispose(); } if (tempRenderWindowInteractor != null) { tempRenderWindowInteractor.Dispose(); } if (tempw2i != null) { tempw2i.Dispose(); } }