OHIF with Cornerstone3D 2.0 (#4347)
This commit is contained in:
1 parent
8981a61b8c
commit
7ce7127d7c
803 files changed
+32760
-15893
No files matched your search
@@ -18,6 +18,23 @@ import { createReportDialogPrompt } from './Panels';
|
||||
import createReportAsync from './Actions/createReportAsync';
|
||||
import StaticWadoClient from './DicomWebDataSource/utils/StaticWadoClient';
|
||||
import { cleanDenaturalizedDataset } from './DicomWebDataSource/utils';
|
||||
import { useViewportsByPositionStore } from './stores/useViewportsByPositionStore';
|
||||
import { useViewportGridStore } from './stores/useViewportGridStore';
|
||||
import { useUIStateStore } from './stores/useUIStateStore';
|
||||
import { useDisplaySetSelectorStore } from './stores/useDisplaySetSelectorStore';
|
||||
import { useHangingProtocolStageIndexStore } from './stores/useHangingProtocolStageIndexStore';
|
||||
import { useToggleHangingProtocolStore } from './stores/useToggleHangingProtocolStore';
|
||||
import { useToggleOneUpViewportGridStore } from './stores/useToggleOneUpViewportGridStore';
|
||||
import {
|
||||
callLabelAutocompleteDialog,
|
||||
showLabelAnnotationPopup,
|
||||
callInputDialog,
|
||||
} from './utils/callInputDialog';
|
||||
import colorPickerDialog from './utils/colorPickerDialog';
|
||||
|
||||
import promptSaveReport from './utils/promptSaveReport';
|
||||
import promptLabelAnnotation from './utils/promptLabelAnnotation';
|
||||
import usePatientInfo from './hooks/usePatientInfo';
|
||||
|
||||
const defaultExtension: Types.Extensions.Extension = {
|
||||
/**
|
||||
@@ -25,6 +42,14 @@ const defaultExtension: Types.Extensions.Extension = {
|
||||
*/
|
||||
id,
|
||||
preRegistration,
|
||||
onModeExit() {
|
||||
useViewportGridStore.getState().clearViewportGridState();
|
||||
useUIStateStore.getState().clearUIState();
|
||||
useDisplaySetSelectorStore.getState().clearDisplaySetSelectorMap();
|
||||
useHangingProtocolStageIndexStore.getState().clearHangingProtocolStageIndexMap();
|
||||
useToggleHangingProtocolStore.getState().clearToggleHangingProtocol();
|
||||
useViewportsByPositionStore.getState().clearViewportsByPosition();
|
||||
},
|
||||
getDataSourcesModule,
|
||||
getViewportModule,
|
||||
getLayoutTemplateModule,
|
||||
@@ -58,4 +83,19 @@ export {
|
||||
createReportAsync,
|
||||
StaticWadoClient,
|
||||
cleanDenaturalizedDataset,
|
||||
// Export all stores
|
||||
useDisplaySetSelectorStore,
|
||||
useHangingProtocolStageIndexStore,
|
||||
useToggleHangingProtocolStore,
|
||||
useToggleOneUpViewportGridStore,
|
||||
useUIStateStore,
|
||||
useViewportGridStore,
|
||||
useViewportsByPositionStore,
|
||||
showLabelAnnotationPopup,
|
||||
callLabelAutocompleteDialog,
|
||||
callInputDialog,
|
||||
promptSaveReport,
|
||||
promptLabelAnnotation,
|
||||
colorPickerDialog,
|
||||
usePatientInfo,
|
||||
};
|
||||
Reference in new issue
Block a user