From fa5c56ef7a2cc8babd8b556c58a452acec2fc5a5 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 19 Dec 2024 11:36:16 -0500 Subject: [PATCH] feat(WindowLevelControls): simplify CT preset options --- .../tools/windowing/WindowLevelControls.vue | 30 ++++---- src/constants.ts | 70 +++++-------------- 2 files changed, 31 insertions(+), 69 deletions(-) diff --git a/src/components/tools/windowing/WindowLevelControls.vue b/src/components/tools/windowing/WindowLevelControls.vue index e5172421..6f7416ff 100644 --- a/src/components/tools/windowing/WindowLevelControls.vue +++ b/src/components/tools/windowing/WindowLevelControls.vue @@ -15,7 +15,7 @@ export default defineComponent({ const windowingStore = useWindowingStore(); const viewStore = useViewStore(); const dicomStore = useDICOMStore(); - const panel = ref(['tags', 'presets']); + const panel = ref(['tags', 'presets', 'auto']); const windowingDefaults = defaultWindowLevelConfig(); // Get the relevant view ids @@ -126,7 +126,7 @@ export default defineComponent({ - Data-Specific Presets + File Specific Presets @@ -141,24 +141,18 @@ export default defineComponent({ - Presets + CT Presets - +
+ +
diff --git a/src/constants.ts b/src/constants.ts index 81ebe898..8cb5403d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -82,57 +82,25 @@ export const WL_AUTO_DEFAULT = 'FullRange'; export const WL_HIST_BINS = 512; export const WLPresetsCT = { - Head: { - Brain: { - width: 80, - level: 40, - }, - Subdural: { - width: 300, - level: 100, - }, - Stroke: { - width: 40, - level: 40, - }, - Bones: { - width: 2800, - level: 600, - }, - SoftTissue: { - width: 400, - level: 60, - }, - }, - Chest: { - Lungs: { - width: 1500, - level: -600, - }, - Mediastinum: { - width: 350, - level: 50, - }, - }, - Abdomen: { - SoftTissue: { - width: 400, - level: 50, - }, - Liver: { - width: 150, - level: 30, - }, - }, - Spine: { - SoftTissue: { - width: 250, - level: 50, - }, - Bones: { - width: 1800, - level: 400, - }, + Bones: { + width: 1000, + level: 400, + }, + Air: { + width: 1000, + level: -426, + }, + SoftTissue: { + width: 350, + level: 50, + }, + Lungs: { + width: 1500, + level: -600, + }, + Brain: { + width: 80, + level: 40, }, };