public void Dispose() { OgreInterface.Instance.MaterialParser.removeMaterialBuilder(materialBuilder); controller.OnUpdate -= controller_OnUpdate; IDisposableUtil.DisposeIfNotNull(virtualTextureManager); materialBuilder.Dispose(); }
public void Dispose() { if (Disposing != null) { Disposing.Invoke(); } IDisposableUtil.DisposeIfNotNull(dialogManager); }
public virtual void Dispose() { IDisposableUtil.DisposeIfNotNull(vpBackground); cameraMover.Dispose(); destroyBorderPanels(); if (Disposed != null) { Disposed.Invoke(this); } }
public void Dispose() { this.updateListener.OnUpdate -= controller_OnUpdate; timer.removeUpdateListener(updateListener); OgreInterface.Instance.MaterialParser.removeMaterialBuilder(materialBuilder); sceneController.OnSceneLoaded -= SceneController_OnSceneLoaded; sceneController.OnSceneUnloading -= SceneController_OnSceneUnloading; IDisposableUtil.DisposeIfNotNull(virtualTextureManager); materialBuilder.Dispose(); }
public void Dispose() { standaloneController.MainWindow.DestroyInternalResources -= MainWindow_DestroyInternalResources; standaloneController.MainWindow.CreateInternalResources -= MainWindow_CreateInternalResources; OgreInterface.Instance.MaterialParser.removeMaterialBuilder(materialBuilder); standaloneController.SceneLoaded -= standaloneController_SceneLoaded; standaloneController.SceneUnloading -= standaloneController_SceneUnloading; standaloneController.MedicalController.OnLoopUpdate -= MedicalController_OnLoopUpdate; IDisposableUtil.DisposeIfNotNull(virtualTextureManager); materialBuilder.Dispose(); }
public void Dispose() { resolutionGui.Dispose(); debugVisualizer.Dispose(); changeRenderingMode.Dispose(); libRocketDebugger.Dispose(); measurementGUI.Dispose(); advancedMandibleMovement.Dispose(); developerRenderer.Dispose(); discControl.Dispose(); gridProperties.Dispose(); performanceGui.Dispose(); advancedCameraGui.Dispose(); IDisposableUtil.DisposeIfNotNull(virtualTextureDebugger); }
public void Dispose() { unloadScene(); medicalController.unloadSceneAndResources(); PluginManager.Instance.RendererPlugin.destroySceneViewLightManager(lightManager); IDisposableUtil.DisposeIfNotNull(mvcCore); IDisposableUtil.DisposeIfNotNull(anatomyController); IDisposableUtil.DisposeIfNotNull(atlasPluginManager); IDisposableUtil.DisposeIfNotNull(virtualTextureSceneViewLink); IDisposableUtil.DisposeIfNotNull(notificationManager); IDisposableUtil.DisposeIfNotNull(imageRendererProgress); IDisposableUtil.DisposeIfNotNull(continuePrompt); IDisposableUtil.DisposeIfNotNull(guiManager); IDisposableUtil.DisposeIfNotNull(measurementGrid); IDisposableUtil.DisposeIfNotNull(medicalStateController); IDisposableUtil.DisposeIfNotNull(sceneViewController); IDisposableUtil.DisposeIfNotNull(background); IDisposableUtil.DisposeIfNotNull(mdiLayout); IDisposableUtil.DisposeIfNotNull(medicalController); IDisposableUtil.DisposeIfNotNull(mainWindow); }
public void Dispose() { guiManager.SaveUIConfiguration -= guiManager_SaveUIConfiguration; guiManager.LoadUIConfiguration -= guiManager_LoadUIConfiguration; guiManager.MainGUIShown -= guiManager_MainGUIShown; guiManager.MainGUIHidden -= guiManager_MainGUIHidden; IDisposableUtil.DisposeIfNotNull(teethMover); IDisposableUtil.DisposeIfNotNull(bookmarks); IDisposableUtil.DisposeIfNotNull(bookmarksController); IDisposableUtil.DisposeIfNotNull(taskMenuAd); IDisposableUtil.DisposeIfNotNull(viewsGui); if (selectionModeTask != null) { selectionModeTask.Dispose(); } if (selectionOperatorTask != null) { selectionOperatorTask.Dispose(); } if (cameraMovementModeTask != null) { cameraMovementModeTask.Dispose(); } options.Dispose(); anatomyFinder.Dispose(); chooseSceneDialog.Dispose(); aboutDialog.Dispose(); if (sequencePlayer != null) { sequencePlayer.Dispose(); } guiManager.removeLinkFromChain(taskbarLink); IDisposableUtil.DisposeIfNotNull(buyScreens); IDisposableUtil.DisposeIfNotNull(taskbar); IDisposableUtil.DisposeIfNotNull(taskMenu); }
public void Dispose() { liveResourceManager.changeResourcesToMatch(emptyResourceManager); liveResourceManager.initializeResources(); var activeWindow = sceneViewController.ActiveWindow; if (activeWindow != null) { OgreModelEditorConfig.CameraConfig.MainCameraPosition = activeWindow.Translation; OgreModelEditorConfig.CameraConfig.MainCameraLookAt = activeWindow.LookAt; } IDisposableUtil.DisposeIfNotNull(virtualTextureDebugger); IDisposableUtil.DisposeIfNotNull(materialEditor); if (textureCompiler != null) { OgreModelEditorConfig.LastTextureCompilerSourceDirectory = textureCompiler.CurrentSrc; textureCompiler.Dispose(); } if (consoleWindow != null) { Log.Default.removeLogListener(consoleWindow); consoleWindow.Dispose(); } if (splashScreen != null) { splashScreen.Dispose(); } if (objectMover != null) { objectMover.Dispose(); } if (guiManager != null) { guiManager.Dispose(); } if (sceneViewController != null) { sceneViewController.Dispose(); } if (mdiLayout != null) { mdiLayout.Dispose(); } if (virtualTextureLink != null) { virtualTextureLink.Dispose(); } if (modelController != null) { modelController.Dispose(); } if (eventManager != null) { eventManager.Dispose(); } if (inputHandler != null) { inputHandler.Dispose(); } if (systemTimer != null) { systemTimer.Dispose(); } if (lightManager != null) { pluginManager.RendererPlugin.destroySceneViewLightManager(lightManager); } if (frameClearManager != null) { frameClearManager.Dispose(); } if (mainWindow != null) { mainWindow.Dispose(); } if (pluginManager != null) { pluginManager.Dispose(); } OgreModelEditorConfig.save(); logListener.Dispose(); }
void GUIManager_Disposing() { IDisposableUtil.DisposeIfNotNull(editorBorder); IDisposableUtil.DisposeIfNotNull(contentArea); }