fix: the start/end command in TMTV for the ROIStartEndThreshold tools (#4281)

This commit is contained in:
Celian-abd authored and GitHub committed 2024-07-09 14:49:42 -04:00
1 parent 4b91ce4df9
commit 38c19fab77
5 files changed
+137 -50

No files matched your search

+11 -2
View File
@@ -1,4 +1,4 @@
import { addTool, RectangleROIStartEndThresholdTool } from '@cornerstonejs/tools';
import { addTool, RectangleROIStartEndThresholdTool, CircleROIStartEndThresholdTool } from '@cornerstonejs/tools';
import measurementServiceMappingsFactory from './utils/measurementServiceMappings/measurementServiceMappingsFactory';
@@ -15,8 +15,9 @@ export default function init({ servicesManager }) {
servicesManager.services;
addTool(RectangleROIStartEndThresholdTool);
addTool(CircleROIStartEndThresholdTool);
const { RectangleROIStartEndThreshold } = measurementServiceMappingsFactory(
const { RectangleROIStartEndThreshold, CircleROIStartEndThreshold } = measurementServiceMappingsFactory(
measurementService,
displaySetService,
cornerstoneViewportService
@@ -34,4 +35,12 @@ export default function init({ servicesManager }) {
RectangleROIStartEndThreshold.toAnnotation,
RectangleROIStartEndThreshold.toMeasurement
);
measurementService.addMapping(
csTools3DVer1MeasurementSource,
'CircleROIStartEndThreshold',
CircleROIStartEndThreshold.matchingCriteria,
CircleROIStartEndThreshold.toAnnotation,
CircleROIStartEndThreshold.toMeasurement
);
}