feat(SM): remove SM measurements from measurement panel (#4022)
This commit is contained in:
1 parent
77693ddef4
commit
df49a653be
21 files changed
+106
-85
No files matched your search
@@ -53,6 +53,7 @@ function modeFactory({ modeConfiguration }) {
|
||||
customizationService,
|
||||
hangingProtocolService,
|
||||
displaySetService,
|
||||
viewportGridService,
|
||||
} = servicesManager.services;
|
||||
|
||||
const utilityModule = extensionManager.getModuleEntry(
|
||||
@@ -111,6 +112,19 @@ function modeFactory({ modeConfiguration }) {
|
||||
},
|
||||
]);
|
||||
|
||||
// This is a hack and we need to find a better way to enable
|
||||
// some tools that require the viewport to be ready
|
||||
const { unsubscribe: unsub1 } = viewportGridService.subscribe(
|
||||
viewportGridService.EVENTS.VIEWPORTS_READY,
|
||||
() => {
|
||||
commandsManager.run('setToolEnabled', {
|
||||
toolName: 'OrientationMarker',
|
||||
toolGroupId: 'mipToolGroup',
|
||||
});
|
||||
unsub1();
|
||||
}
|
||||
);
|
||||
|
||||
// For the hanging protocol we need to decide on the window level
|
||||
// based on whether the SUV is corrected or not, hence we can't hard
|
||||
// code the window level in the hanging protocol but we add a custom
|
||||
|
||||
@@ -102,7 +102,17 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, mo
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Primary }],
|
||||
},
|
||||
],
|
||||
enabled: [{ toolName: toolNames.SegmentationDisplay }],
|
||||
enabled: [
|
||||
{ toolName: toolNames.SegmentationDisplay },
|
||||
{
|
||||
toolName: toolNames.OrientationMarker,
|
||||
configuration: {
|
||||
orientationWidget: {
|
||||
viewportCorner: 'BOTTOM_LEFT',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
toolGroupService.createToolGroupAndAddTools(toolGroupIds.MIP, mipTools);
|
||||
|
||||
Reference in new issue
Block a user