OHIF with Cornerstone3D 2.0 (#4347)
This commit is contained in:
1 parent
8981a61b8c
commit
7ce7127d7c
803 files changed
+32760
-15893
No files matched your search
@@ -2,12 +2,11 @@ const dynamicVolume = {
|
||||
sopClassHandler:
|
||||
'@ohif/extension-cornerstone-dynamic-volume.sopClassHandlerModule.dynamic-volume',
|
||||
leftPanel: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-volume',
|
||||
toolBox: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-toolbox',
|
||||
export: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-export',
|
||||
segmentation: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-segmentation',
|
||||
};
|
||||
|
||||
const cornerstone = {
|
||||
segmentation: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentation',
|
||||
segmentation: '@ohif/extension-cornerstone.panelModule.panelSegmentationNoHeader',
|
||||
activeViewportWindowLevel: '@ohif/extension-cornerstone.panelModule.activeViewportWindowLevel',
|
||||
};
|
||||
|
||||
@@ -60,7 +59,7 @@ function getWorkflowSettings({ servicesManager }) {
|
||||
layout: {
|
||||
panels: {
|
||||
left: defaultLeftPanel,
|
||||
right: [[dynamicVolume.toolBox, cornerstone.segmentation, dynamicVolume.export]],
|
||||
right: [[dynamicVolume.segmentation]],
|
||||
},
|
||||
options: {
|
||||
leftPanelClosed: false,
|
||||
|
||||
@@ -36,7 +36,7 @@ function modeFactory({ modeConfiguration }) {
|
||||
return {
|
||||
id,
|
||||
routeName: 'dynamic-volume',
|
||||
displayName: '4D PT/CT',
|
||||
displayName: 'Preclinical 4D',
|
||||
onModeEnter: function ({ servicesManager, extensionManager, commandsManager }: withAppTypes) {
|
||||
const {
|
||||
measurementService,
|
||||
@@ -64,11 +64,31 @@ function modeFactory({ modeConfiguration }) {
|
||||
// specific to the step
|
||||
customizationService.addModeCustomizations([
|
||||
{
|
||||
id: 'segmentation.panel',
|
||||
segmentationPanelMode: 'expanded',
|
||||
addSegment: false,
|
||||
id: 'PanelSegmentation.tableMode',
|
||||
mode: 'expanded',
|
||||
},
|
||||
{
|
||||
id: 'PanelSegmentation.onSegmentationAdd',
|
||||
onSegmentationAdd: () => {
|
||||
commandsManager.run('createNewLabelmapFromPT');
|
||||
commandsManager.run('createNewLabelMapForDynamicVolume');
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'PanelSegmentation.showAddSegment',
|
||||
showAddSegment: false,
|
||||
},
|
||||
{
|
||||
id: 'PanelSegmentation.readableText',
|
||||
// remove following if you are not interested in that stats
|
||||
readableText: {
|
||||
lesionStats: 'Lesion Statistics',
|
||||
minValue: 'Minimum Value',
|
||||
maxValue: 'Maximum Value',
|
||||
meanValue: 'Mean Value',
|
||||
volume: 'Volume',
|
||||
suvPeak: 'SUV Peak',
|
||||
suvMax: 'Maximum SUV',
|
||||
suvMaxIJK: 'SUV Max IJK',
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -33,7 +33,10 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, se
|
||||
toolName: toolNames.Zoom,
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Secondary }],
|
||||
},
|
||||
{ toolName: toolNames.StackScrollMouseWheel, bindings: [] },
|
||||
{
|
||||
toolName: toolNames.StackScroll,
|
||||
bindings: [{ mouseButton: Enums.MouseBindings.Wheel }],
|
||||
},
|
||||
],
|
||||
passive: [
|
||||
{ toolName: toolNames.Length },
|
||||
@@ -100,9 +103,8 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, se
|
||||
{ toolName: toolNames.SphereScissors },
|
||||
{ toolName: toolNames.StackScroll },
|
||||
{ toolName: toolNames.Magnify },
|
||||
{ toolName: toolNames.SegmentationDisplay },
|
||||
],
|
||||
enabled: [{ toolName: toolNames.SegmentationDisplay }],
|
||||
enabled: [],
|
||||
disabled: [
|
||||
{
|
||||
toolName: toolNames.Crosshairs,
|
||||
|
||||
Reference in new issue
Block a user