2025-07-29 23:30:18 -03:00
|
|
|
function createSEGToolGroupAndAddTools({
|
|
|
|
|
commandsManager,
|
|
|
|
|
toolGroupService,
|
|
|
|
|
customizationService,
|
|
|
|
|
toolGroupId,
|
|
|
|
|
}) {
|
2025-01-23 14:24:13 -05:00
|
|
|
const tools = customizationService.getCustomization('cornerstone.overlayViewportTools');
|
2022-11-16 14:19:52 -05:00
|
|
|
|
2025-07-29 23:30:18 -03:00
|
|
|
const updatedTools = commandsManager.run('initializeSegmentLabelTool', { tools });
|
|
|
|
|
|
|
|
|
|
return toolGroupService.createToolGroupAndAddTools(toolGroupId, updatedTools);
|
2022-11-16 14:19:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default createSEGToolGroupAndAddTools;
|