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
@@ -83,6 +83,7 @@ function modeFactory() {
'MeasurementTools',
'Zoom',
'WindowLevel',
'WindowLevelRegion',
'Pan',
'Capture',
'Layout',
+3 -1
View File
@@ -62,7 +62,7 @@ function initDefaultToolGroup(extensionManager, toolGroupService, commandsManage
{ toolName: toolNames.Angle },
{ toolName: toolNames.Magnify },
{ toolName: toolNames.SegmentationDisplay },
{ toolName: toolNames.WindowLevelRegion },
{ toolName: toolNames.UltrasoundDirectional },
{ toolName: toolNames.PlanarFreehandROI },
{ toolName: toolNames.SplineROI },
@@ -125,6 +125,7 @@ function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
{ toolName: SRToolNames.SRBidirectional },
{ toolName: SRToolNames.SREllipticalROI },
{ toolName: SRToolNames.SRCircleROI },
{ toolName: toolNames.WindowLevelRegion },
],
enabled: [
{
@@ -193,6 +194,7 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
{ toolName: toolNames.StackScroll },
{ toolName: toolNames.Angle },
{ toolName: toolNames.SegmentationDisplay },
{ toolName: toolNames.WindowLevelRegion },
],
disabled: [
{
+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,
@@ -167,6 +167,16 @@ const toolbarButtons: Button[] = [
],
},
},
{
id: 'WindowLevelRegion',
uiType: 'ohif.radioGroup',
props: {
icon: 'icon-tool-window-region',
label: 'Window Level Region',
commands: setToolActiveToolbar,
evaluate: 'evaluate.cornerstoneTool',
},
},
// Pan...
{
id: 'Pan',