feat(SR): SCOORD3D point annotations support for stack viewports (#4315)

This commit is contained in:
Igor Octaviano authored and GitHub committed 2024-10-17 09:36:24 -04:00
1 parent e0fca8c88c
commit ac1cad25af
51 files changed
+978 -607

No files matched your search

@@ -19,11 +19,11 @@ const Probe = {
getValueTypeFromToolType,
customizationService
) => {
const { annotation, viewportId } = csToolsEventDetail;
const { annotation } = csToolsEventDetail;
const { metadata, data, annotationUID } = annotation;
if (!metadata || !data) {
console.warn('Length tool: Missing metadata or data');
console.warn('Probe tool: Missing metadata or data');
return null;
}
@@ -1,4 +1,4 @@
export default [
const supportedTools = [
'Length',
'EllipticalROI',
'CircleROI',
@@ -11,6 +11,8 @@ export default [
'PlanarFreehandROI',
'SplineROI',
'LivewireContour',
'Probe',
'UltrasoundDirectionalTool',
'SCOORD3DPoint',
];
export default supportedTools;
@@ -94,7 +94,6 @@ const measurementServiceMappingsFactory = (
},
],
},
EllipticalROI: {
toAnnotation: EllipticalROI.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -111,7 +110,6 @@ const measurementServiceMappingsFactory = (
},
],
},
CircleROI: {
toAnnotation: CircleROI.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -128,7 +126,6 @@ const measurementServiceMappingsFactory = (
},
],
},
RectangleROI: {
toAnnotation: RectangleROI.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -145,7 +142,6 @@ const measurementServiceMappingsFactory = (
},
],
},
PlanarFreehandROI: {
toAnnotation: PlanarFreehandROI.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -162,7 +158,6 @@ const measurementServiceMappingsFactory = (
},
],
},
SplineROI: {
toAnnotation: SplineROI.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -179,7 +174,6 @@ const measurementServiceMappingsFactory = (
},
],
},
LivewireContour: {
toAnnotation: LivewireContour.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -196,7 +190,6 @@ const measurementServiceMappingsFactory = (
},
],
},
ArrowAnnotate: {
toAnnotation: ArrowAnnotate.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -214,7 +207,6 @@ const measurementServiceMappingsFactory = (
},
],
},
Probe: {
toAnnotation: Probe.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -232,7 +224,6 @@ const measurementServiceMappingsFactory = (
},
],
},
CobbAngle: {
toAnnotation: CobbAngle.toAnnotation,
toMeasurement: csToolsAnnotation =>
@@ -249,7 +240,6 @@ const measurementServiceMappingsFactory = (
},
],
},
Angle: {
toAnnotation: Angle.toAnnotation,
toMeasurement: csToolsAnnotation =>