fix(segmentation): restrict overlay segmentation menu to same frame of reference as viewport background display set (#5900)

- Add FrameOfReferenceUID to SEG and RTSTRUCT displaySet in SOP Class Handlers so the FOR is available for filtering
- Sync optimisticOverlayDisplaySets when background display set changes so the overlay menu reflects the correct state after a background switch
- Add FOR matching guard to the hydrate segmentation synchronizer to prevent the hydration synchronizer from blindly mirroring segmentations from a source viewport to a target viewport if their primary Frames of Reference do not align.
- fix segmentation overlay order reversal on viewport re-render
This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-04-02 08:52:23 -04:00
1 parent a875d7de1f
commit b9029ef6f8
15 files changed
+223 -56

No files matched your search

+6
View File
@@ -57,6 +57,12 @@ export type DisplaySet = {
*/
referencedDisplaySetInstanceUID?: string;
/**
* The FrameOfReferenceUID shared by every frame within this display set.
* It will be undefined if the frames do not all share the same Frame of Reference.
*/
frameOfReferenceUID?: string;
SeriesDate?: string;
SeriesTime?: string;
instance?: InstanceMetadata;