From 1f02f96badf86536979b5c1195412c2181be4478 Mon Sep 17 00:00:00 2001 From: Forrest Date: Mon, 20 May 2024 13:19:23 -0400 Subject: [PATCH] feat: unify data IDs Volume keys are now used as image data IDs. This simplifies going back and forth between the image and dicom store, and simplifies the structure of the selection object to be just an ID string. --- src/components/DataBrowser.vue | 5 +- src/components/DicomQuickInfoButton.vue | 5 +- src/components/ImageDataBrowser.vue | 35 +++---- src/components/LayerProperties.vue | 5 +- src/components/PatientBrowser.vue | 2 +- src/components/PatientStudyVolumeBrowser.vue | 17 ++-- src/components/SampleDataBrowser.vue | 8 +- src/components/SliceViewer.vue | 8 ++ src/components/VolumeViewer.vue | 8 ++ .../tools/windowing/WindowLevelControls.vue | 15 +-- src/composables/useCurrentImage.ts | 14 +-- src/composables/useSliceConfigInitializer.ts | 19 ++-- .../useVolumeColoringInitializer.ts | 6 +- .../useWindowingConfigInitializer.ts | 5 +- src/io/import/importDataSources.ts | 16 +--- src/io/import/processors/restoreStateFile.ts | 31 ++----- src/io/state-file/schema.ts | 23 ++--- src/store/datasets-dicom.ts | 25 +---- src/store/datasets-images.ts | 8 +- src/store/datasets-layers.ts | 88 ++++-------------- src/store/datasets.ts | 56 ++++-------- src/store/segmentGroups.ts | 30 +++--- src/store/tools/useAnnotationTool.ts | 6 +- src/store/view-configs/layers.ts | 6 +- src/store/view-configs/volume-coloring.ts | 5 +- src/utils/dataSelection.ts | 91 ++++--------------- 26 files changed, 178 insertions(+), 359 deletions(-) diff --git a/src/components/DataBrowser.vue b/src/components/DataBrowser.vue index 1de1cd274..954e84c47 100644 --- a/src/components/DataBrowser.vue +++ b/src/components/DataBrowser.vue @@ -1,5 +1,6 @@