@cornerstonejs/tools 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.d.ts +0 -0
- package/dist/cjs/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.js +0 -0
- package/dist/{esm/stateManagement/segmentation/helpers → cjs/constants}/COLOR_LUT.js.map +1 -1
- package/dist/cjs/constants/index.d.ts +2 -0
- package/dist/cjs/constants/index.js +9 -0
- package/dist/cjs/constants/index.js.map +1 -0
- package/dist/cjs/enums/Events.d.ts +3 -2
- package/dist/cjs/enums/Events.js +3 -2
- package/dist/cjs/enums/Events.js.map +1 -1
- package/dist/cjs/eventListeners/index.d.ts +2 -2
- package/dist/cjs/eventListeners/index.js +4 -2
- package/dist/cjs/eventListeners/index.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/index.d.ts +4 -2
- package/dist/cjs/eventListeners/segmentation/index.js +7 -3
- package/dist/cjs/eventListeners/segmentation/index.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/segmentationDataModifiedEventListener.js +7 -12
- package/dist/cjs/eventListeners/segmentation/segmentationDataModifiedEventListener.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/segmentationModifiedEventListener.js +18 -0
- package/dist/cjs/eventListeners/segmentation/segmentationModifiedEventListener.js.map +1 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/{segmentationStateModifiedEventListener.js → segmentationRepresentationModifiedEventListener.js} +3 -3
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js.map +1 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js +12 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/init.js +14 -18
- package/dist/cjs/init.js.map +1 -1
- package/dist/cjs/stateManagement/index.d.ts +2 -2
- package/dist/cjs/stateManagement/index.js +2 -2
- package/dist/cjs/stateManagement/index.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.d.ts +15 -18
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js +87 -120
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.d.ts +4 -7
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.js +15 -15
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.js +41 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentations.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentations.js +17 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentations.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/createNewSegmentationForToolGroup.js +5 -5
- package/dist/cjs/stateManagement/segmentation/createNewSegmentationForToolGroup.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/helpers/index.d.ts +2 -4
- package/dist/cjs/stateManagement/segmentation/helpers/index.js +3 -7
- package/dist/cjs/stateManagement/segmentation/helpers/index.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/helpers/normalizeSegmentationInput.js +18 -0
- package/dist/cjs/stateManagement/segmentation/helpers/normalizeSegmentationInput.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/helpers/validateSegmentationInput.js +45 -0
- package/dist/cjs/stateManagement/segmentation/helpers/validateSegmentationInput.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/index.d.ts +3 -2
- package/dist/cjs/stateManagement/segmentation/index.js +5 -3
- package/dist/cjs/stateManagement/segmentation/index.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +1 -1
- package/dist/cjs/stateManagement/segmentation/removeSegmentationsFromToolGroup.js +21 -16
- package/dist/cjs/stateManagement/segmentation/removeSegmentationsFromToolGroup.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentIndex.d.ts +2 -2
- package/dist/cjs/stateManagement/segmentation/segmentIndex.js +22 -22
- package/dist/cjs/stateManagement/segmentation/segmentIndex.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentLocking.d.ts +3 -3
- package/dist/cjs/stateManagement/segmentation/segmentLocking.js +26 -26
- package/dist/cjs/stateManagement/segmentation/segmentLocking.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationColor.d.ts +3 -3
- package/dist/cjs/stateManagement/segmentation/segmentationColor.js +5 -5
- package/dist/cjs/stateManagement/segmentation/segmentationColor.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.d.ts +8 -12
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.js +16 -42
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationState.d.ts +16 -19
- package/dist/cjs/stateManagement/segmentation/segmentationState.js +80 -97
- package/dist/cjs/stateManagement/segmentation/segmentationState.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.d.ts +2 -2
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js +12 -10
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.d.ts +5 -4
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.js +36 -21
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/destroy.js +2 -2
- package/dist/cjs/store/ToolGroupManager/destroy.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupById.d.ts +2 -0
- package/dist/cjs/store/ToolGroupManager/{destroyToolGroupByToolGroupId.js → destroyToolGroupById.js} +3 -3
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupById.js.map +1 -0
- package/dist/cjs/store/ToolGroupManager/getToolGroupById.d.ts +3 -0
- package/dist/cjs/store/ToolGroupManager/{getToolGroupByToolGroupId.js → getToolGroupById.js} +3 -3
- package/dist/cjs/store/ToolGroupManager/getToolGroupById.js.map +1 -0
- package/dist/cjs/store/ToolGroupManager/index.d.ts +3 -3
- package/dist/cjs/store/ToolGroupManager/index.js +5 -5
- package/dist/cjs/store/ToolGroupManager/index.js.map +1 -1
- package/dist/cjs/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +2 -0
- package/dist/cjs/tools/displayTools/Labelmap/addLabelmapToElement.js +29 -0
- package/dist/cjs/tools/displayTools/Labelmap/addLabelmapToElement.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/index.d.ts +3 -3
- package/dist/cjs/tools/displayTools/Labelmap/index.js +5 -5
- package/dist/cjs/tools/displayTools/Labelmap/labelmapConfig.d.ts +5 -0
- package/dist/cjs/tools/displayTools/Labelmap/{LabelmapConfig.js → labelmapConfig.js} +1 -1
- package/dist/cjs/tools/displayTools/Labelmap/labelmapConfig.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/labelmapDisplay.d.ts +11 -0
- package/dist/cjs/tools/displayTools/Labelmap/{LabelmapDisplay.js → labelmapDisplay.js} +68 -59
- package/dist/cjs/tools/displayTools/Labelmap/labelmapDisplay.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +2 -0
- package/dist/cjs/tools/displayTools/Labelmap/removeLabelmapFromElement.js +12 -0
- package/dist/cjs/tools/displayTools/Labelmap/removeLabelmapFromElement.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/validateRepresentationData.d.ts +3 -0
- package/dist/cjs/tools/displayTools/Labelmap/validateRepresentationData.js +18 -0
- package/dist/cjs/tools/displayTools/Labelmap/validateRepresentationData.js.map +1 -0
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.d.ts +2 -2
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.js +20 -19
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/CircleScissorsTool.d.ts +1 -1
- package/dist/cjs/tools/segmentation/CircleScissorsTool.js +11 -9
- package/dist/cjs/tools/segmentation/CircleScissorsTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/RectangleRoiThresholdTool.d.ts +1 -1
- package/dist/cjs/tools/segmentation/RectangleRoiThresholdTool.js +1 -1
- package/dist/cjs/tools/segmentation/RectangleRoiThresholdTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/RectangleScissorsTool.d.ts +1 -1
- package/dist/cjs/tools/segmentation/RectangleScissorsTool.js +11 -9
- package/dist/cjs/tools/segmentation/RectangleScissorsTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/SphereScissorsTool.d.ts +1 -1
- package/dist/cjs/tools/segmentation/SphereScissorsTool.js +11 -9
- package/dist/cjs/tools/segmentation/SphereScissorsTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillCircle.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/fillCircle.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/fillCircle.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillSphere.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/fillSphere.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/fillSphere.js.map +1 -1
- package/dist/cjs/types/EventTypes.d.ts +13 -8
- package/dist/cjs/types/LabelmapTypes.d.ts +19 -0
- package/dist/cjs/types/{SegmentationRepresentationTypes.js → LabelmapTypes.js} +1 -1
- package/dist/cjs/types/LabelmapTypes.js.map +1 -0
- package/dist/cjs/types/SegmentationStateTypes.d.ts +41 -32
- package/dist/cjs/types/index.d.ts +2 -3
- package/dist/cjs/utilities/segmentation/getDefaultRepresentationConfig.d.ts +2 -1
- package/dist/cjs/utilities/segmentation/getDefaultRepresentationConfig.js +4 -3
- package/dist/cjs/utilities/segmentation/getDefaultRepresentationConfig.js.map +1 -1
- package/dist/cjs/utilities/segmentation/index.d.ts +1 -2
- package/dist/cjs/utilities/segmentation/index.js +1 -3
- package/dist/cjs/utilities/segmentation/index.js.map +1 -1
- package/dist/cjs/utilities/segmentation/isValidRepresentationConfig.js +2 -2
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.d.ts +2 -2
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.js +10 -9
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.js.map +1 -1
- package/dist/cjs/utilities/triggerSegmentationRender.js +1 -1
- package/dist/cjs/utilities/triggerSegmentationRender.js.map +1 -1
- package/dist/esm/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.d.ts +0 -0
- package/dist/esm/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.js +0 -0
- package/dist/esm/constants/COLOR_LUT.js.map +1 -0
- package/dist/esm/constants/index.d.ts +2 -0
- package/dist/esm/constants/index.js +3 -0
- package/dist/esm/constants/index.js.map +1 -0
- package/dist/esm/enums/Events.d.ts +3 -2
- package/dist/esm/enums/Events.js +3 -2
- package/dist/esm/enums/Events.js.map +1 -1
- package/dist/esm/eventListeners/index.d.ts +2 -2
- package/dist/esm/eventListeners/index.js +2 -2
- package/dist/esm/eventListeners/index.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/index.d.ts +4 -2
- package/dist/esm/eventListeners/segmentation/index.js +4 -2
- package/dist/esm/eventListeners/segmentation/index.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js +7 -12
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +3 -0
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.js +16 -0
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.js.map +1 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +3 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js +7 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js.map +1 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +3 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js +7 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js.map +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/init.js +15 -19
- package/dist/esm/init.js.map +1 -1
- package/dist/esm/stateManagement/index.d.ts +2 -2
- package/dist/esm/stateManagement/index.js +2 -2
- package/dist/esm/stateManagement/index.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.d.ts +15 -18
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js +87 -122
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/activeSegmentation.d.ts +4 -7
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js +14 -14
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js +23 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.js +12 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/createNewSegmentationForToolGroup.js +6 -6
- package/dist/esm/stateManagement/segmentation/createNewSegmentationForToolGroup.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/index.d.ts +2 -4
- package/dist/esm/stateManagement/segmentation/helpers/index.js +2 -4
- package/dist/esm/stateManagement/segmentation/helpers/index.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.js +18 -0
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.js +21 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/index.d.ts +3 -2
- package/dist/esm/stateManagement/segmentation/index.js +3 -2
- package/dist/esm/stateManagement/segmentation/index.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.js +23 -18
- package/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentIndex.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/segmentIndex.js +25 -25
- package/dist/esm/stateManagement/segmentation/segmentIndex.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentLocking.d.ts +3 -3
- package/dist/esm/stateManagement/segmentation/segmentLocking.js +29 -29
- package/dist/esm/stateManagement/segmentation/segmentLocking.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationColor.d.ts +3 -3
- package/dist/esm/stateManagement/segmentation/segmentationColor.js +5 -5
- package/dist/esm/stateManagement/segmentation/segmentationColor.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationConfig.d.ts +8 -12
- package/dist/esm/stateManagement/segmentation/segmentationConfig.js +12 -46
- package/dist/esm/stateManagement/segmentation/segmentationConfig.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationState.d.ts +16 -19
- package/dist/esm/stateManagement/segmentation/segmentationState.js +68 -91
- package/dist/esm/stateManagement/segmentation/segmentationState.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.js +14 -12
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.d.ts +5 -4
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js +34 -20
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/destroy.js +2 -2
- package/dist/esm/store/ToolGroupManager/destroy.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/destroyToolGroupById.d.ts +2 -0
- package/dist/esm/store/ToolGroupManager/{destroyToolGroupByToolGroupId.js → destroyToolGroupById.js} +3 -3
- package/dist/esm/store/ToolGroupManager/destroyToolGroupById.js.map +1 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupById.d.ts +3 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupById.js +6 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupById.js.map +1 -0
- package/dist/esm/store/ToolGroupManager/index.d.ts +3 -3
- package/dist/esm/store/ToolGroupManager/index.js +3 -3
- package/dist/esm/store/ToolGroupManager/index.js.map +1 -1
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +2 -0
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.js +16 -0
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/index.d.ts +3 -3
- package/dist/esm/tools/displayTools/Labelmap/index.js +3 -3
- package/dist/esm/tools/displayTools/Labelmap/labelmapConfig.d.ts +5 -0
- package/dist/esm/tools/displayTools/Labelmap/{LabelmapConfig.js → labelmapConfig.js} +1 -1
- package/dist/esm/tools/displayTools/Labelmap/labelmapConfig.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.d.ts +11 -0
- package/dist/esm/tools/displayTools/Labelmap/{LabelmapDisplay.js → labelmapDisplay.js} +70 -61
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +2 -0
- package/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.js +10 -0
- package/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.d.ts +3 -0
- package/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.js +16 -0
- package/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.js.map +1 -0
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.d.ts +2 -2
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.js +24 -23
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.js.map +1 -1
- package/dist/esm/tools/segmentation/CircleScissorsTool.d.ts +1 -1
- package/dist/esm/tools/segmentation/CircleScissorsTool.js +11 -9
- package/dist/esm/tools/segmentation/CircleScissorsTool.js.map +1 -1
- package/dist/esm/tools/segmentation/RectangleRoiThresholdTool.d.ts +1 -1
- package/dist/esm/tools/segmentation/RectangleRoiThresholdTool.js +1 -1
- package/dist/esm/tools/segmentation/RectangleRoiThresholdTool.js.map +1 -1
- package/dist/esm/tools/segmentation/RectangleScissorsTool.d.ts +1 -1
- package/dist/esm/tools/segmentation/RectangleScissorsTool.js +11 -9
- package/dist/esm/tools/segmentation/RectangleScissorsTool.js.map +1 -1
- package/dist/esm/tools/segmentation/SphereScissorsTool.d.ts +1 -1
- package/dist/esm/tools/segmentation/SphereScissorsTool.js +11 -9
- package/dist/esm/tools/segmentation/SphereScissorsTool.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.js +2 -2
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/fillCircle.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/fillCircle.js +2 -2
- package/dist/esm/tools/segmentation/strategies/fillCircle.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/fillRectangle.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/fillRectangle.js +2 -2
- package/dist/esm/tools/segmentation/strategies/fillRectangle.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/fillSphere.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/fillSphere.js +2 -2
- package/dist/esm/tools/segmentation/strategies/fillSphere.js.map +1 -1
- package/dist/esm/types/EventTypes.d.ts +13 -8
- package/dist/esm/types/LabelmapTypes.d.ts +19 -0
- package/dist/esm/types/LabelmapTypes.js +2 -0
- package/dist/esm/types/LabelmapTypes.js.map +1 -0
- package/dist/esm/types/SegmentationStateTypes.d.ts +41 -32
- package/dist/esm/types/index.d.ts +2 -3
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.d.ts +2 -1
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.js +3 -2
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.js.map +1 -1
- package/dist/esm/utilities/segmentation/index.d.ts +1 -2
- package/dist/esm/utilities/segmentation/index.js +1 -2
- package/dist/esm/utilities/segmentation/index.js.map +1 -1
- package/dist/esm/utilities/segmentation/isValidRepresentationConfig.js +1 -1
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.d.ts +2 -2
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.js +10 -9
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.js.map +1 -1
- package/dist/esm/utilities/triggerSegmentationRender.js +2 -2
- package/dist/esm/utilities/triggerSegmentationRender.js.map +1 -1
- package/dist/tools.d.ts +221 -216
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/cjs/eventListeners/segmentation/segmentationStateModifiedEventListener.d.ts +0 -3
- package/dist/cjs/eventListeners/segmentation/segmentationStateModifiedEventListener.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/addSegmentationsForToolGroup.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/addSegmentationsForToolGroup.js +0 -59
- package/dist/cjs/stateManagement/segmentation/addSegmentationsForToolGroup.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/COLOR_LUT.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js +0 -14
- package/dist/cjs/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/internalAddSegmentationToElement.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js +0 -43
- package/dist/cjs/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js +0 -23
- package/dist/cjs/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js.map +0 -1
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupByToolGroupId.d.ts +0 -2
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupByToolGroupId.js.map +0 -1
- package/dist/cjs/store/ToolGroupManager/getToolGroupByToolGroupId.d.ts +0 -3
- package/dist/cjs/store/ToolGroupManager/getToolGroupByToolGroupId.js.map +0 -1
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapConfig.d.ts +0 -13
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapConfig.js.map +0 -1
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapDisplay.d.ts +0 -11
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapDisplay.js.map +0 -1
- package/dist/cjs/types/SegmentationRepresentationTypes.d.ts +0 -11
- package/dist/cjs/types/SegmentationRepresentationTypes.js.map +0 -1
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRoiStats.d.ts +0 -11
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRoiStats.js +0 -111
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRoiStats.js.map +0 -1
- package/dist/esm/eventListeners/segmentation/segmentationStateModifiedEventListener.d.ts +0 -3
- package/dist/esm/eventListeners/segmentation/segmentationStateModifiedEventListener.js +0 -7
- package/dist/esm/eventListeners/segmentation/segmentationStateModifiedEventListener.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/addSegmentationsForToolGroup.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/addSegmentationsForToolGroup.js +0 -40
- package/dist/esm/stateManagement/segmentation/addSegmentationsForToolGroup.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js +0 -12
- package/dist/esm/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/helpers/internalAddSegmentationToElement.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js +0 -27
- package/dist/esm/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js +0 -18
- package/dist/esm/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js.map +0 -1
- package/dist/esm/store/ToolGroupManager/destroyToolGroupByToolGroupId.d.ts +0 -2
- package/dist/esm/store/ToolGroupManager/destroyToolGroupByToolGroupId.js.map +0 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupByToolGroupId.d.ts +0 -3
- package/dist/esm/store/ToolGroupManager/getToolGroupByToolGroupId.js +0 -6
- package/dist/esm/store/ToolGroupManager/getToolGroupByToolGroupId.js.map +0 -1
- package/dist/esm/tools/displayTools/Labelmap/LabelmapConfig.d.ts +0 -13
- package/dist/esm/tools/displayTools/Labelmap/LabelmapConfig.js.map +0 -1
- package/dist/esm/tools/displayTools/Labelmap/LabelmapDisplay.d.ts +0 -11
- package/dist/esm/tools/displayTools/Labelmap/LabelmapDisplay.js.map +0 -1
- package/dist/esm/types/SegmentationRepresentationTypes.d.ts +0 -11
- package/dist/esm/types/SegmentationRepresentationTypes.js +0 -2
- package/dist/esm/types/SegmentationRepresentationTypes.js.map +0 -1
- package/dist/esm/utilities/segmentation/thresholdVolumeByRoiStats.d.ts +0 -11
- package/dist/esm/utilities/segmentation/thresholdVolumeByRoiStats.js +0 -86
- package/dist/esm/utilities/segmentation/thresholdVolumeByRoiStats.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RectangleScissorsTool.js","sourceRoot":"","sources":["../../../../src/tools/segmentation/RectangleScissorsTool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,QAAQ,EACR,aAAa,GACd,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,qCAAqC,MAAM,uDAAuD,CAAA;AACzG,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,YAAY,IAAI,sBAAsB,EACtC,kBAAkB,GACnB,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"RectangleScissorsTool.js","sourceRoot":"","sources":["../../../../src/tools/segmentation/RectangleScissorsTool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,QAAQ,EACR,aAAa,GACd,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,aAA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CAAA;YAGpC,MAAM,QAAQ,GAAG,QAAQ,CAAC,iBAAiB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAA;YACzE,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,CAAA;YACxC,MAAM,aAAa,GAAG,UAAU,CAAC,aAAa,CAAA;YAE9C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAA;YAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAA;YAC/B,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;YACtE,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAA;YAG7D,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,EAAE;gBAClC,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;gBACnD,OAAM;aACP;YAED,MAAM,YAAY,GAAG,GAAG,CAAA;YACxB,WAAW,CACT,gBAAgB,EAChB,qBAAqB,CAAC,QAAQ,EAC9B,aAAa,EACb,YAAY,EACZ,iBAAiB,CAAC,CAAC,CAAC,EACpB,iBAAiB,CAAC,CAAC,CAAC,EACpB;gBACE,KAAK;aACN,CACF,CAAA;QACH,CAAC,CAAA;IAhTD,CAAC;;AAjCM,8BAAQ,GAAG,kBAAkB,CAAA"}
|
|
@@ -8,7 +8,7 @@ export default class SphereScissorsTool extends BaseTool {
|
|
|
8
8
|
segmentation: any;
|
|
9
9
|
segmentIndex: number;
|
|
10
10
|
segmentsLocked: number[];
|
|
11
|
-
|
|
11
|
+
segmentationId: string;
|
|
12
12
|
toolGroupId: string;
|
|
13
13
|
segmentColor: [number, number, number, number];
|
|
14
14
|
viewportIdsToRender: string[];
|
|
@@ -6,6 +6,7 @@ import { drawCircle as drawCircleSvg } from '../../drawingSvg';
|
|
|
6
6
|
import { resetElementCursor, hideElementCursor, } from '../../cursors/elementCursor';
|
|
7
7
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
8
8
|
import { segmentationColor, segmentLocking, segmentIndex as segmentIndexController, activeSegmentation, } from '../../stateManagement/segmentation';
|
|
9
|
+
import { getSegmentation } from '../../stateManagement/segmentation/segmentationState';
|
|
9
10
|
export default class SphereScissorsTool extends BaseTool {
|
|
10
11
|
constructor(toolProps = {}, defaultToolProps = {
|
|
11
12
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -29,14 +30,16 @@ export default class SphereScissorsTool extends BaseTool {
|
|
|
29
30
|
const camera = viewport.getCamera();
|
|
30
31
|
const { viewPlaneNormal, viewUp } = camera;
|
|
31
32
|
const toolGroupId = this.toolGroupId;
|
|
32
|
-
const
|
|
33
|
-
if (!
|
|
33
|
+
const activeSegmentationRepresentation = activeSegmentation.getActiveSegmentationRepresentation(toolGroupId);
|
|
34
|
+
if (!activeSegmentationRepresentation) {
|
|
34
35
|
throw new Error('No active segmentation detected, create one before using scissors tool');
|
|
35
36
|
}
|
|
36
|
-
const {
|
|
37
|
+
const { segmentationRepresentationUID, segmentationId, type } = activeSegmentationRepresentation;
|
|
37
38
|
const segmentIndex = segmentIndexController.getActiveSegmentIndex(toolGroupId);
|
|
38
|
-
const segmentsLocked = segmentLocking.getSegmentsLockedForSegmentation(
|
|
39
|
-
const segmentColor = segmentationColor.getColorForSegmentIndex(toolGroupId,
|
|
39
|
+
const segmentsLocked = segmentLocking.getSegmentsLockedForSegmentation(segmentationId);
|
|
40
|
+
const segmentColor = segmentationColor.getColorForSegmentIndex(toolGroupId, segmentationRepresentationUID, segmentIndex);
|
|
41
|
+
const { representations } = getSegmentation(segmentationId);
|
|
42
|
+
const { volumeId } = representations[type];
|
|
40
43
|
const segmentation = cache.getVolume(volumeId);
|
|
41
44
|
this.isDrawing = true;
|
|
42
45
|
const annotation = {
|
|
@@ -66,7 +69,7 @@ export default class SphereScissorsTool extends BaseTool {
|
|
|
66
69
|
segmentIndex,
|
|
67
70
|
segmentsLocked,
|
|
68
71
|
segmentColor,
|
|
69
|
-
|
|
72
|
+
segmentationId,
|
|
70
73
|
toolGroupId,
|
|
71
74
|
viewportIdsToRender,
|
|
72
75
|
handleIndex: 3,
|
|
@@ -116,7 +119,7 @@ export default class SphereScissorsTool extends BaseTool {
|
|
|
116
119
|
this._mouseUpCallback = (evt) => {
|
|
117
120
|
const eventDetail = evt.detail;
|
|
118
121
|
const { element } = eventDetail;
|
|
119
|
-
const { annotation, newAnnotation, hasMoved, segmentation, segmentIndex, segmentsLocked,
|
|
122
|
+
const { annotation, newAnnotation, hasMoved, segmentation, segmentIndex, segmentsLocked, segmentationId, } = this.editData;
|
|
120
123
|
const { data } = annotation;
|
|
121
124
|
const { viewPlaneNormal, viewUp } = annotation.metadata;
|
|
122
125
|
if (newAnnotation && !hasMoved) {
|
|
@@ -138,8 +141,7 @@ export default class SphereScissorsTool extends BaseTool {
|
|
|
138
141
|
volume: segmentation,
|
|
139
142
|
segmentIndex,
|
|
140
143
|
segmentsLocked,
|
|
141
|
-
|
|
142
|
-
toolGroupId: this.toolGroupId,
|
|
144
|
+
segmentationId,
|
|
143
145
|
viewPlaneNormal,
|
|
144
146
|
viewUp,
|
|
145
147
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SphereScissorsTool.js","sourceRoot":"","sources":["../../../../src/tools/segmentation/SphereScissorsTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAG7E,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,UAAU,IAAI,aAAa,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,GAAG,CAAA;YAG7D,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,EAAE;gBAClC,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;gBACnD,OAAM;aACP;YAED,MAAM,SAAS,GAAG,GAAG,CAAA;YACrB,aAAa,CACX,gBAAgB,EAChB,kBAAkB,CAAC,QAAQ,EAC3B,aAAa,EACb,SAAS,EACT,MAAsB,EACtB,MAAM,EACN;gBACE,KAAK;aACN,CACF,CAAA;QACH,CAAC,CAAA;IA5RD,CAAC;;AAjCM,2BAAQ,GAAG,eAAe,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ImageVolume } from '@cornerstonejs/core';
|
|
2
2
|
import type { Types } from '@cornerstonejs/core';
|
|
3
3
|
declare type EraseOperationData = {
|
|
4
|
-
|
|
5
|
-
segmentationDataUID: string;
|
|
4
|
+
segmentationId: string;
|
|
6
5
|
points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
|
|
7
6
|
volume: ImageVolume;
|
|
8
7
|
constraintFn: (x: [number, number, number]) => boolean;
|
|
@@ -3,7 +3,7 @@ import transformPhysicalToIndex from '../../../utilities/transformPhysicalToInde
|
|
|
3
3
|
import { triggerSegmentationDataModified } from '../../../stateManagement/segmentation/triggerSegmentationEvents';
|
|
4
4
|
import { pointInShapeCallback } from '../../../utilities';
|
|
5
5
|
function eraseRectangle(enabledElement, operationData, inside = true) {
|
|
6
|
-
const { volume: segmentation, points, segmentsLocked,
|
|
6
|
+
const { volume: segmentation, points, segmentsLocked, segmentationId, } = operationData;
|
|
7
7
|
const { imageData, dimensions, scalarData } = segmentation;
|
|
8
8
|
const rectangleCornersIJK = points.map((world) => {
|
|
9
9
|
return transformPhysicalToIndex(imageData, world);
|
|
@@ -20,7 +20,7 @@ function eraseRectangle(enabledElement, operationData, inside = true) {
|
|
|
20
20
|
scalarData[index] = 0;
|
|
21
21
|
};
|
|
22
22
|
pointInShapeCallback(imageData, pointInShape, callback, boundsIJK);
|
|
23
|
-
triggerSegmentationDataModified(
|
|
23
|
+
triggerSegmentationDataModified(segmentationId);
|
|
24
24
|
}
|
|
25
25
|
export function eraseInsideRectangle(enabledElement, operationData) {
|
|
26
26
|
eraseRectangle(enabledElement, operationData, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eraseRectangle.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/eraseRectangle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,wBAAwB,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAA;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"eraseRectangle.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/eraseRectangle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,wBAAwB,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAA;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAUzD,SAAS,cAAc,CACrB,cAAqC,EACrC,aAAiC,EACjC,MAAM,GAAG,IAAI;IAEb,MAAM,EACJ,MAAM,EAAE,YAAY,EACpB,MAAM,EACN,cAAc,EACd,cAAc,GACf,GAAG,aAAa,CAAA;IACjB,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,YAAY,CAAA;IAE1D,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC/C,OAAO,wBAAwB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;IACnD,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,GAAG,yBAAyB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAA;IAE5E,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE;QAChD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;KACpE;IAGD,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;IAE/B,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QACpC,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAClC,OAAM;SACP;QACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,oBAAoB,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA;IAElE,+BAA+B,CAAC,cAAc,CAAC,CAAA;AACjD,CAAC;AAQD,MAAM,UAAU,oBAAoB,CAClC,cAAqC,EACrC,aAAiC;IAEjC,cAAc,CAAC,cAAc,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA;AACrD,CAAC;AAQD,MAAM,UAAU,qBAAqB,CACnC,cAAqC,EACrC,aAAiC;IAEjC,cAAc,CAAC,cAAc,EAAE,aAAa,EAAE,KAAK,CAAC,CAAA;AACtD,CAAC"}
|
|
@@ -5,7 +5,7 @@ import transformPhysicalToIndex from '../../../utilities/transformPhysicalToInde
|
|
|
5
5
|
import { triggerSegmentationDataModified } from '../../../stateManagement/segmentation/triggerSegmentationEvents';
|
|
6
6
|
import { pointInShapeCallback } from '../../../utilities';
|
|
7
7
|
function fillCircle(enabledElement, operationData, inside = true) {
|
|
8
|
-
const { volume: segmentationVolume, points, segmentsLocked, segmentIndex,
|
|
8
|
+
const { volume: segmentationVolume, points, segmentsLocked, segmentIndex, segmentationId, } = operationData;
|
|
9
9
|
const { imageData, dimensions, scalarData } = segmentationVolume;
|
|
10
10
|
const { viewport } = enabledElement;
|
|
11
11
|
const center = vec3.fromValues(0, 0, 0);
|
|
@@ -38,7 +38,7 @@ function fillCircle(enabledElement, operationData, inside = true) {
|
|
|
38
38
|
scalarData[index] = segmentIndex;
|
|
39
39
|
};
|
|
40
40
|
pointInShapeCallback(imageData, (pointLPS, pointIJK) => pointInEllipse(ellipseObj, pointLPS), callback, boundsIJK);
|
|
41
|
-
triggerSegmentationDataModified(
|
|
41
|
+
triggerSegmentationDataModified(segmentationId);
|
|
42
42
|
}
|
|
43
43
|
export function fillInsideCircle(enabledElement, operationData) {
|
|
44
44
|
fillCircle(enabledElement, operationData, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillCircle.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/fillCircle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,OAAO,EACL,uBAAuB,EACvB,cAAc,GACf,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,wBAAwB,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAA;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"fillCircle.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/fillCircle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,OAAO,EACL,uBAAuB,EACvB,cAAc,GACf,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,wBAAwB,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAA;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAA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@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ImageVolume } from '@cornerstonejs/core';
|
|
2
2
|
import type { Types } from '@cornerstonejs/core';
|
|
3
3
|
declare type OperationData = {
|
|
4
|
-
|
|
5
|
-
segmentationDataUID: string;
|
|
4
|
+
segmentationId: string;
|
|
6
5
|
points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
|
|
7
6
|
volume: ImageVolume;
|
|
8
7
|
constraintFn: (x: [number, number, number]) => boolean;
|
|
@@ -3,7 +3,7 @@ import { pointInShapeCallback } from '../../../utilities';
|
|
|
3
3
|
import transformPhysicalToIndex from '../../../utilities/transformPhysicalToIndex';
|
|
4
4
|
import { triggerSegmentationDataModified } from '../../../stateManagement/segmentation/triggerSegmentationEvents';
|
|
5
5
|
function fillRectangle(enabledElement, operationData, inside = true) {
|
|
6
|
-
const { volume: segmentation, points, segmentsLocked, segmentIndex,
|
|
6
|
+
const { volume: segmentation, points, segmentsLocked, segmentIndex, segmentationId, constraintFn, } = operationData;
|
|
7
7
|
const { imageData, dimensions, scalarData } = segmentation;
|
|
8
8
|
let rectangleCornersIJK = points.map((world) => {
|
|
9
9
|
return transformPhysicalToIndex(imageData, world);
|
|
@@ -31,7 +31,7 @@ function fillRectangle(enabledElement, operationData, inside = true) {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
pointInShapeCallback(imageData, pointInRectangle, callback, boundsIJK);
|
|
34
|
-
triggerSegmentationDataModified(
|
|
34
|
+
triggerSegmentationDataModified(segmentationId);
|
|
35
35
|
}
|
|
36
36
|
export function fillInsideRectangle(enabledElement, operationData) {
|
|
37
37
|
fillRectangle(enabledElement, operationData, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillRectangle.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/fillRectangle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,oBAAoB,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AAC,GAAG,KAAK,GAAG,CAAC,EAAE;QAChD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;KACpE;IAGD,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;IAEnC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC9C,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAClC,OAAM;SACP;QAED,IAAI,CAAC,YAAY,EAAE;YACjB,UAAU,CAAC,KAAK,CAAC,GAAG,YAAY,CAAA;YAChC,OAAM;SACP;QAED,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE;YAC1B,UAAU,CAAC,KAAK,CAAC,GAAG,YAAY,CAAA;SACjC;IACH,CAAC,CAAA;IAED,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA;IAEtE,+BAA+B,CAAC,cAAc,CAAC,CAAA;AACjD,CAAC;AASD,MAAM,UAAU,mBAAmB,CACjC,cAAqC,EACrC,aAA4B;IAE5B,aAAa,CAAC,cAAc,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA;AACpD,CAAC;AASD,MAAM,UAAU,oBAAoB,CAClC,cAAqC,EACrC,aAA4B;IAE5B,aAAa,CAAC,cAAc,EAAE,aAAa,EAAE,KAAK,CAAC,CAAA;AACrD,CAAC"}
|
|
@@ -2,9 +2,8 @@ import type { Types } from '@cornerstonejs/core';
|
|
|
2
2
|
declare type OperationData = {
|
|
3
3
|
points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
|
|
4
4
|
volume: Types.IImageVolume;
|
|
5
|
-
toolGroupId: string;
|
|
6
5
|
segmentIndex: number;
|
|
7
|
-
|
|
6
|
+
segmentationId: string;
|
|
8
7
|
segmentsLocked: number[];
|
|
9
8
|
viewPlaneNormal: Types.Point3;
|
|
10
9
|
viewUp: Types.Point3;
|
|
@@ -2,7 +2,7 @@ import { triggerSegmentationDataModified } from '../../../stateManagement/segmen
|
|
|
2
2
|
import { pointInSurroundingSphereCallback } from '../../../utilities';
|
|
3
3
|
function fillSphere(enabledElement, operationData, _inside = true) {
|
|
4
4
|
const { viewport } = enabledElement;
|
|
5
|
-
const { volume: segmentation, segmentsLocked, segmentIndex,
|
|
5
|
+
const { volume: segmentation, segmentsLocked, segmentIndex, segmentationId, points, } = operationData;
|
|
6
6
|
const { scalarData, imageData } = segmentation;
|
|
7
7
|
const callback = ({ index, value }) => {
|
|
8
8
|
if (segmentsLocked.includes(value)) {
|
|
@@ -11,7 +11,7 @@ function fillSphere(enabledElement, operationData, _inside = true) {
|
|
|
11
11
|
scalarData[index] = segmentIndex;
|
|
12
12
|
};
|
|
13
13
|
pointInSurroundingSphereCallback(viewport, imageData, [points[0], points[1]], callback);
|
|
14
|
-
triggerSegmentationDataModified(
|
|
14
|
+
triggerSegmentationDataModified(segmentationId);
|
|
15
15
|
}
|
|
16
16
|
export function fillInsideSphere(enabledElement, operationData) {
|
|
17
17
|
fillSphere(enabledElement, operationData, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillSphere.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/fillSphere.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAA;AACjH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"fillSphere.js","sourceRoot":"","sources":["../../../../../src/tools/segmentation/strategies/fillSphere.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iEAAiE,CAAA;AACjH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAA;AAarE,SAAS,UAAU,CACjB,cAAqC,EACrC,aAA4B,EAC5B,OAAO,GAAG,IAAI;IAEd,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAA;IACnC,MAAM,EACJ,MAAM,EAAE,YAAY,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,MAAM,GACP,GAAG,aAAa,CAAA;IAEjB,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,YAAY,CAAA;IAE9C,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QACpC,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAClC,OAAM;SACP;QACD,UAAU,CAAC,KAAK,CAAC,GAAG,YAAY,CAAA;IAClC,CAAC,CAAA;IAED,gCAAgC,CAC9B,QAAiC,EACjC,SAAS,EACT,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EACtB,QAAQ,CACT,CAAA;IAED,+BAA+B,CAAC,cAAc,CAAC,CAAA;AACjD,CAAC;AAQD,MAAM,UAAU,gBAAgB,CAC9B,cAAqC,EACrC,aAA4B;IAE5B,UAAU,CAAC,cAAc,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA;AACjD,CAAC;AAQD,MAAM,UAAU,iBAAiB,CAC/B,cAAqC,EACrC,aAA4B;IAE5B,UAAU,CAAC,cAAc,EAAE,aAAa,EAAE,KAAK,CAAC,CAAA;AAClD,CAAC"}
|
|
@@ -40,18 +40,22 @@ declare type AnnotationRenderedEventDetail = {
|
|
|
40
40
|
renderingEngineId: string;
|
|
41
41
|
};
|
|
42
42
|
declare type SegmentationDataModifiedEventDetail = {
|
|
43
|
-
|
|
44
|
-
segmentationDataUID: string;
|
|
43
|
+
segmentationId: string;
|
|
45
44
|
};
|
|
46
45
|
declare type SegmentationRenderedEventDetail = {
|
|
47
46
|
viewportId: string;
|
|
48
47
|
toolGroupId: string;
|
|
49
48
|
};
|
|
50
|
-
declare type
|
|
49
|
+
declare type SegmentationRepresentationModifiedEventDetail = {
|
|
50
|
+
toolGroupId: string;
|
|
51
|
+
segmentationRepresentationUID: string;
|
|
52
|
+
};
|
|
53
|
+
declare type SegmentationRepresentationRemovedEventDetail = {
|
|
51
54
|
toolGroupId: string;
|
|
55
|
+
segmentationRepresentationUID: string;
|
|
52
56
|
};
|
|
53
|
-
declare type
|
|
54
|
-
|
|
57
|
+
declare type SegmentationModifiedEventDetail = {
|
|
58
|
+
segmentationId: string;
|
|
55
59
|
};
|
|
56
60
|
declare type KeyDownEventDetail = {
|
|
57
61
|
element: HTMLElement;
|
|
@@ -124,9 +128,10 @@ declare type AnnotationSelectionChangeEventType = Types.CustomEventType<Annotati
|
|
|
124
128
|
declare type AnnotationRenderedEventType = Types.CustomEventType<AnnotationRenderedEventDetail>;
|
|
125
129
|
declare type AnnotationLockChangeEventType = Types.CustomEventType<AnnotationLockChangeEventDetail>;
|
|
126
130
|
declare type SegmentationDataModifiedEventType = Types.CustomEventType<SegmentationDataModifiedEventDetail>;
|
|
127
|
-
declare type
|
|
131
|
+
declare type SegmentationRepresentationModifiedEventType = Types.CustomEventType<SegmentationRepresentationModifiedEventDetail>;
|
|
132
|
+
declare type SegmentationRepresentationRemovedEventType = Types.CustomEventType<SegmentationRepresentationRemovedEventDetail>;
|
|
128
133
|
declare type SegmentationRenderedEventType = Types.CustomEventType<SegmentationRenderedEventDetail>;
|
|
129
|
-
declare type
|
|
134
|
+
declare type SegmentationModifiedEventType = Types.CustomEventType<SegmentationModifiedEventDetail>;
|
|
130
135
|
declare type KeyDownEventType = Types.CustomEventType<KeyDownEventDetail>;
|
|
131
136
|
declare type KeyUpEventType = Types.CustomEventType<KeyUpEventDetail>;
|
|
132
137
|
declare type MouseDownEventType = Types.CustomEventType<MouseDownEventDetail>;
|
|
@@ -137,4 +142,4 @@ declare type MouseClickEventType = Types.CustomEventType<MouseClickEventDetail>;
|
|
|
137
142
|
declare type MouseMoveEventType = Types.CustomEventType<MouseMoveEventDetail>;
|
|
138
143
|
declare type MouseDoubleClickEventType = Types.CustomEventType<MouseDoubleClickEventDetail>;
|
|
139
144
|
declare type MouseWheelEventType = Types.CustomEventType<MouseWheelEventDetail>;
|
|
140
|
-
export { NormalizedMouseEventDetail, NormalizedMouseEventType, AnnotationAddedEventDetail, AnnotationAddedEventType, AnnotationModifiedEventDetail, AnnotationModifiedEventType, AnnotationRemovedEventDetail, AnnotationRemovedEventType, AnnotationSelectionChangeEventDetail, AnnotationSelectionChangeEventType, AnnotationRenderedEventDetail, AnnotationRenderedEventType, AnnotationLockChangeEventDetail, AnnotationLockChangeEventType, SegmentationDataModifiedEventType,
|
|
145
|
+
export { NormalizedMouseEventDetail, NormalizedMouseEventType, AnnotationAddedEventDetail, AnnotationAddedEventType, AnnotationModifiedEventDetail, AnnotationModifiedEventType, AnnotationRemovedEventDetail, AnnotationRemovedEventType, AnnotationSelectionChangeEventDetail, AnnotationSelectionChangeEventType, AnnotationRenderedEventDetail, AnnotationRenderedEventType, AnnotationLockChangeEventDetail, AnnotationLockChangeEventType, SegmentationDataModifiedEventType, SegmentationRepresentationModifiedEventDetail, SegmentationRepresentationModifiedEventType, SegmentationRepresentationRemovedEventDetail, SegmentationRepresentationRemovedEventType, SegmentationDataModifiedEventDetail, SegmentationRenderedEventType, SegmentationRenderedEventDetail, SegmentationModifiedEventType, SegmentationModifiedEventDetail, KeyDownEventDetail, KeyDownEventType, KeyUpEventDetail, KeyUpEventType, MouseDownEventDetail, MouseDownEventType, MouseDownActivateEventDetail, MouseDownActivateEventType, MouseDragEventDetail, MouseDragEventType, MouseUpEventDetail, MouseUpEventType, MouseClickEventDetail, MouseClickEventType, MouseMoveEventDetail, MouseMoveEventType, MouseDoubleClickEventDetail, MouseDoubleClickEventType, MouseWheelEventDetail, MouseWheelEventType, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { vtkColorTransferFunction } from 'vtk.js/Sources/Rendering/Core/ColorTransferFunction';
|
|
2
|
+
import type { vtkPiecewiseFunction } from 'vtk.js/Sources/Common/DataModel/PiecewiseFunction';
|
|
3
|
+
export declare type labelmapConfig = {
|
|
4
|
+
renderOutline?: boolean;
|
|
5
|
+
outlineWidth?: number;
|
|
6
|
+
outlineWidthActive?: number;
|
|
7
|
+
outlineWidthInactive?: number;
|
|
8
|
+
renderFill?: boolean;
|
|
9
|
+
fillAlpha?: number;
|
|
10
|
+
fillAlphaInactive?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare type LabelmapRenderingConfig = {
|
|
13
|
+
cfun?: vtkColorTransferFunction;
|
|
14
|
+
ofun?: vtkPiecewiseFunction;
|
|
15
|
+
};
|
|
16
|
+
export declare type LabelmapRepresentationData = {
|
|
17
|
+
volumeId: string;
|
|
18
|
+
referencedVolumeId?: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelmapTypes.js","sourceRoot":"","sources":["../../../src/types/LabelmapTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,51 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
1
|
+
import * as Enums from '../enums';
|
|
2
|
+
import type { labelmapConfig, LabelmapRepresentationData, LabelmapRenderingConfig } from './LabelmapTypes';
|
|
3
3
|
export declare type Color = [number, number, number, number];
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type RepresentationConfig =
|
|
6
|
-
|
|
4
|
+
export declare type ColorLut = Array<Color>;
|
|
5
|
+
export declare type RepresentationConfig = {
|
|
6
|
+
LABELMAP?: labelmapConfig;
|
|
7
|
+
};
|
|
8
|
+
export declare type SegmentationRepresentationConfig = {
|
|
7
9
|
renderInactiveSegmentations: boolean;
|
|
8
|
-
representations:
|
|
9
|
-
LABELMAP?: LabelmapConfig;
|
|
10
|
-
};
|
|
10
|
+
representations: RepresentationConfig;
|
|
11
11
|
};
|
|
12
|
-
export declare type
|
|
13
|
-
|
|
12
|
+
export declare type SegmentationRepresentationData = {
|
|
13
|
+
LABELMAP?: LabelmapRepresentationData;
|
|
14
|
+
};
|
|
15
|
+
export declare type Segmentation = {
|
|
16
|
+
segmentationId: string;
|
|
17
|
+
type: Enums.SegmentationRepresentations;
|
|
14
18
|
label: string;
|
|
15
|
-
referenceVolumeId?: string;
|
|
16
|
-
referenceImageId?: string;
|
|
17
19
|
activeSegmentIndex: number;
|
|
18
20
|
segmentsLocked: Set<number>;
|
|
19
21
|
cachedStats: {
|
|
20
22
|
[key: string]: number;
|
|
21
23
|
};
|
|
24
|
+
representations: SegmentationRepresentationData;
|
|
22
25
|
};
|
|
23
|
-
export declare type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
export declare type ToolGroupSpecificSegmentationData = {
|
|
29
|
-
volumeId: string;
|
|
30
|
-
segmentationDataUID: string;
|
|
26
|
+
export declare type ToolGroupSpecificRepresentationState = {
|
|
27
|
+
segmentationRepresentationUID: string;
|
|
28
|
+
segmentationId: string;
|
|
29
|
+
type: Enums.SegmentationRepresentations;
|
|
31
30
|
active: boolean;
|
|
32
31
|
segmentsHidden: Set<number>;
|
|
33
32
|
visibility: boolean;
|
|
34
33
|
colorLUTIndex: number;
|
|
35
|
-
representation: SegmentationRepresentation;
|
|
36
34
|
};
|
|
37
|
-
export declare type
|
|
38
|
-
|
|
39
|
-
segmentations: ToolGroupSpecificSegmentationState;
|
|
40
|
-
config: SegmentationConfig;
|
|
35
|
+
export declare type ToolGroupSpecificLabelmapRepresentation = ToolGroupSpecificRepresentationState & {
|
|
36
|
+
config: LabelmapRenderingConfig;
|
|
41
37
|
};
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
export declare type ToolGroupSpecificRepresentation = ToolGroupSpecificLabelmapRepresentation;
|
|
39
|
+
export declare type SegmentationState = {
|
|
40
|
+
colorLut: ColorLut[];
|
|
41
|
+
segmentations: Segmentation[];
|
|
42
|
+
globalConfig: SegmentationRepresentationConfig;
|
|
45
43
|
toolGroups: {
|
|
46
|
-
[key: string]:
|
|
44
|
+
[key: string]: {
|
|
45
|
+
segmentationRepresentations: ToolGroupSpecificRepresentation[];
|
|
46
|
+
config: SegmentationRepresentationConfig;
|
|
47
|
+
};
|
|
47
48
|
};
|
|
48
|
-
}
|
|
49
|
-
export declare type
|
|
50
|
-
|
|
49
|
+
};
|
|
50
|
+
export declare type SegmentationPublicInput = {
|
|
51
|
+
segmentationId: string;
|
|
52
|
+
representation: {
|
|
53
|
+
type: Enums.SegmentationRepresentations;
|
|
54
|
+
data: LabelmapRepresentationData;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare type RepresentationPublicInput = {
|
|
58
|
+
segmentationId: string;
|
|
59
|
+
type: Enums.SegmentationRepresentations;
|
|
51
60
|
};
|
|
@@ -9,6 +9,5 @@ import type { AnnotationHandle, TextBoxHandle } from './ToolHandle';
|
|
|
9
9
|
import type InteractionTypes from './InteractionTypes';
|
|
10
10
|
import type { ToolProps, PublicToolProps } from './ToolProps';
|
|
11
11
|
import type { SVGCursorDescriptor, SVGPoint } from './CursorTypes';
|
|
12
|
-
import type {
|
|
13
|
-
|
|
14
|
-
export type { Annotation, Annotations, FrameOfReferenceSpecificAnnotations, AnnotationState, PlanarBoundingBox, ToolProps, PublicToolProps, EventTypes, IPoints, IToolBinding, SetToolBindingsType, ToolOptionsType, InteractionTypes, IToolGroup, ToolHandle, AnnotationHandle, TextBoxHandle, SegmentationRepresentation, LabelmapRepresentation, Color, ColorLUT, RepresentationConfig, SegmentationConfig, GlobalSegmentationData, GlobalSegmentationState, GlobalSegmentationStateWithConfig, ToolGroupSpecificSegmentationData, ToolGroupSpecificSegmentationStateWithConfig, ToolGroupSpecificSegmentationState, SVGCursorDescriptor, SVGPoint, };
|
|
12
|
+
import type { Color, ColorLut, RepresentationConfig, SegmentationRepresentationConfig, SegmentationRepresentationData, Segmentation, ToolGroupSpecificRepresentationState, ToolGroupSpecificLabelmapRepresentation, ToolGroupSpecificRepresentation, SegmentationState } from './SegmentationStateTypes';
|
|
13
|
+
export type { Annotation, Annotations, FrameOfReferenceSpecificAnnotations, AnnotationState, PlanarBoundingBox, ToolProps, PublicToolProps, EventTypes, IPoints, IToolBinding, SetToolBindingsType, ToolOptionsType, InteractionTypes, IToolGroup, ToolHandle, AnnotationHandle, TextBoxHandle, Segmentation, SegmentationState, SegmentationRepresentationData, SegmentationRepresentationConfig, RepresentationConfig, ToolGroupSpecificRepresentationState, ToolGroupSpecificLabelmapRepresentation, ToolGroupSpecificRepresentation, Color, ColorLut, SVGCursorDescriptor, SVGPoint, };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Segmentation } from '../../types/SegmentationStateTypes';
|
|
2
|
+
export default function getDefaultRepresentationConfig(segmentation: Segmentation): import("../../types/LabelmapTypes").labelmapConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import getDefaultLabelmapConfig from '../../tools/displayTools/Labelmap/
|
|
1
|
+
import getDefaultLabelmapConfig from '../../tools/displayTools/Labelmap/labelmapConfig';
|
|
2
2
|
import SegmentationRepresentation from '../../enums/SegmentationRepresentations';
|
|
3
|
-
export default function getDefaultRepresentationConfig(
|
|
3
|
+
export default function getDefaultRepresentationConfig(segmentation) {
|
|
4
|
+
const { type: representationType } = segmentation;
|
|
4
5
|
switch (representationType) {
|
|
5
6
|
case SegmentationRepresentation.Labelmap:
|
|
6
7
|
return getDefaultLabelmapConfig();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultRepresentationConfig.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/getDefaultRepresentationConfig.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,MAAM,kDAAkD,CAAA;AACvF,OAAO,0BAA0B,MAAM,yCAAyC,CAAA;
|
|
1
|
+
{"version":3,"file":"getDefaultRepresentationConfig.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/getDefaultRepresentationConfig.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,MAAM,kDAAkD,CAAA;AACvF,OAAO,0BAA0B,MAAM,yCAAyC,CAAA;AAQhF,MAAM,CAAC,OAAO,UAAU,8BAA8B,CACpD,YAA0B;IAE1B,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,YAAY,CAAA;IACjD,QAAQ,kBAAkB,EAAE;QAC1B,KAAK,0BAA0B,CAAC,QAAQ;YACtC,OAAO,wBAAwB,EAAE,CAAA;QACnC;YACE,MAAM,IAAI,KAAK,CAAC,gCAAgC,kBAAkB,EAAE,CAAC,CAAA;KACxE;AACH,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis } from './getBoundingBoxUtils';
|
|
2
2
|
import thresholdVolumeByRange from './thresholdVolumeByRange';
|
|
3
|
-
import thresholdVolumeByRoiStats from './thresholdVolumeByRoiStats';
|
|
4
3
|
import createMergedLabelmapForIndex from './createMergedLabelmapForIndex';
|
|
5
4
|
import isValidRepresentationConfig from './isValidRepresentationConfig';
|
|
6
5
|
import getDefaultRepresentationConfig from './getDefaultRepresentationConfig';
|
|
7
|
-
export { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, thresholdVolumeByRange,
|
|
6
|
+
export { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, thresholdVolumeByRange, createMergedLabelmapForIndex, isValidRepresentationConfig, getDefaultRepresentationConfig, };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, } from './getBoundingBoxUtils';
|
|
2
2
|
import thresholdVolumeByRange from './thresholdVolumeByRange';
|
|
3
|
-
import thresholdVolumeByRoiStats from './thresholdVolumeByRoiStats';
|
|
4
3
|
import createMergedLabelmapForIndex from './createMergedLabelmapForIndex';
|
|
5
4
|
import isValidRepresentationConfig from './isValidRepresentationConfig';
|
|
6
5
|
import getDefaultRepresentationConfig from './getDefaultRepresentationConfig';
|
|
7
|
-
export { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, thresholdVolumeByRange,
|
|
6
|
+
export { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, thresholdVolumeByRange, createMergedLabelmapForIndex, isValidRepresentationConfig, getDefaultRepresentationConfig, };
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,4BAA4B,MAAM,gCAAgC,CAAA;AACzE,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AACvE,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAE7E,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAE7B,sBAAsB,EACtB,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,GAC/B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isValidLabelmapConfig } from '../../tools/displayTools/Labelmap/
|
|
1
|
+
import { isValidLabelmapConfig } from '../../tools/displayTools/Labelmap/labelmapConfig';
|
|
2
2
|
import SegmentationRepresentation from '../../enums/SegmentationRepresentations';
|
|
3
3
|
export default function isValidRepresentationConfig(representationType, config) {
|
|
4
4
|
switch (representationType) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ToolGroupSpecificRepresentation } from '../../types/SegmentationStateTypes';
|
|
3
3
|
export declare type ThresholdRangeOptions = {
|
|
4
4
|
higherThreshold: number;
|
|
5
5
|
lowerThreshold: number;
|
|
@@ -19,6 +19,6 @@ export declare type AnnotationForThresholding = {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
declare function thresholdVolumeByRange(
|
|
22
|
+
declare function thresholdVolumeByRange(annotations: AnnotationForThresholding[], referenceVolumes: Types.IImageVolume[], segmentationRepresentation: ToolGroupSpecificRepresentation, options: ThresholdRangeOptions): Types.IImageVolume;
|
|
23
23
|
export declare function extendBoundingBoxInSliceAxisIfNecessary(boundsIJK: [Types.Point2, Types.Point2, Types.Point2], numSlicesToProject: number): [Types.Point2, Types.Point2, Types.Point2];
|
|
24
24
|
export default thresholdVolumeByRange;
|