feat(window-level-region): add window level region tool (#4127)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-06-05 09:50:22 -04:00
1 parent 4761bbf0c8
commit ab1a18af5a
15 files changed
+75 -3

No files matched your search

+1
View File
@@ -100,6 +100,7 @@ function modeFactory({ modeConfiguration }) {
'Pan',
'TrackballRotate',
'WindowLevel',
'WindowLevelRegion',
'Capture',
'Layout',
'Crosshairs',
+3
View File
@@ -87,6 +87,7 @@ function initDefaultToolGroup(
{ toolName: toolNames.PlanarFreehandROI },
{ toolName: toolNames.SplineROI },
{ toolName: toolNames.LivewireContour },
{ toolName: toolNames.WindowLevelRegion },
],
enabled: [{ toolName: toolNames.ImageOverlayViewer }, { toolName: toolNames.ReferenceLines }],
disabled: [
@@ -153,6 +154,7 @@ function initSRToolGroup(extensionManager, toolGroupService) {
{ toolName: SRToolNames.SRCircleROI },
{ toolName: SRToolNames.SRPlanarFreehandROI },
{ toolName: SRToolNames.SRRectangleROI },
{ toolName: toolNames.WindowLevelRegion },
{
toolName: SRToolNames.SRPlanarFreehandContourSegmentation,
configuration: {
@@ -236,6 +238,7 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager, m
{ toolName: toolNames.CobbAngle },
{ toolName: toolNames.PlanarFreehandROI },
{ toolName: toolNames.SegmentationDisplay },
{ toolName: toolNames.WindowLevelRegion },
{
toolName: toolNames.PlanarFreehandContourSegmentation,
configuration: {
+1 -1
View File
@@ -137,7 +137,7 @@ const moreTools = [
}),
createButton({
id: 'CobbAngle',
icon: 'tool-angle',
icon: 'icon-tool-cobb-angle',
label: 'Cobb Angle',
tooltip: 'Cobb Angle',
commands: setToolActiveToolbar,
+10
View File
@@ -129,6 +129,16 @@ const toolbarButtons: Button[] = [
evaluate: 'evaluate.cornerstoneTool',
},
},
{
id: 'WindowLevelRegion',
uiType: 'ohif.radioGroup',
props: {
icon: 'icon-tool-window-region',
label: 'Window Level Region',
commands: setToolActiveToolbar,
evaluate: 'evaluate.cornerstoneTool',
},
},
// Pan...
{
id: 'Pan',