fix: load 3dsr (#5335)

This commit is contained in:
Bill Wallace authored and GitHub committed 2025-08-15 14:12:34 -04:00
1 parent 730de56a5f
commit becba7861f
5 files changed
+19 -8

No files matched your search

@@ -21,6 +21,7 @@ export default function addSRAnnotation(measurement, imageId, frameNumber) {
/** TODO: Read the tool name from the DICOM SR identification type in the future. */
let frameOfReferenceUID = null;
let planeRestriction = null;
if (imageId) {
const imagePlaneModule = metaData.get('imagePlaneModule', imageId);
@@ -37,8 +38,20 @@ export default function addSRAnnotation(measurement, imageId, frameNumber) {
// get the ReferencedFrameOfReferenceUID from the measurement
frameOfReferenceUID = measurement.coords[0].ReferencedFrameOfReferenceSequence;
planeRestriction = {
FrameOfReferenceUID: frameOfReferenceUID,
point: graphicTypePoints[0][0],
};
}
// Store the view reference for use in initial navigation
measurement.viewReference = {
planeRestriction,
FrameOfReferenceUID: frameOfReferenceUID,
referencedImageId: imageId,
};
const SRAnnotation: Types.Annotation = {
annotationUID: TrackingUniqueIdentifier,
highlighted: false,
@@ -46,6 +59,7 @@ export default function addSRAnnotation(measurement, imageId, frameNumber) {
invalidated: false,
metadata: {
toolName,
planeRestriction,
valueType,
graphicType,
FrameOfReferenceUID: frameOfReferenceUID,