2019-10-01 10:06:56 +02:00
|
|
|
import SlabThicknessToolbarComponent from './toolbarComponents/SlabThicknessToolbarComponent';
|
|
|
|
|
|
2019-06-17 05:11:43 +02:00
|
|
|
const TOOLBAR_BUTTON_TYPES = {
|
|
|
|
|
COMMAND: 'command',
|
2019-06-21 05:17:07 +02:00
|
|
|
SET_TOOL_ACTIVE: 'setToolActive',
|
2019-06-17 05:11:43 +02:00
|
|
|
};
|
2019-04-16 18:00:06 +02:00
|
|
|
|
2019-06-17 05:11:43 +02:00
|
|
|
const definitions = [
|
|
|
|
|
{
|
|
|
|
|
id: 'Crosshairs',
|
|
|
|
|
label: 'Crosshairs',
|
|
|
|
|
icon: 'crosshairs',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'enableCrosshairsTool',
|
2019-06-21 05:17:07 +02:00
|
|
|
commandOptions: {},
|
2019-06-17 05:11:43 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'WWWC',
|
|
|
|
|
label: 'WWWC',
|
|
|
|
|
icon: 'level',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'enableLevelTool',
|
2019-06-21 05:17:07 +02:00
|
|
|
commandOptions: {},
|
2019-06-17 05:11:43 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'Rotate',
|
|
|
|
|
label: 'Rotate',
|
|
|
|
|
icon: '3d-rotate',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'enableRotateTool',
|
2019-06-21 05:17:07 +02:00
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
2019-10-01 10:06:56 +02:00
|
|
|
/*
|
2019-07-18 13:39:00 +02:00
|
|
|
{
|
|
|
|
|
id: 'setBlendModeToComposite',
|
|
|
|
|
label: 'Disable MIP',
|
|
|
|
|
icon: 'times',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
|
|
|
|
commandName: 'setBlendModeToComposite',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'setBlendModeToMaximumIntensity',
|
|
|
|
|
label: 'Enable MIP',
|
|
|
|
|
icon: 'soft-tissue',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
|
|
|
|
commandName: 'setBlendModeToMaximumIntensity',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
id: 'increaseSlabThickness',
|
|
|
|
|
label: 'Increase Slab Thickness',
|
|
|
|
|
icon: 'caret-up',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
|
|
|
|
commandName: 'increaseSlabThickness',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'decreaseSlabThickness',
|
|
|
|
|
label: 'Decrease Slab Thickness',
|
|
|
|
|
icon: 'caret-down',
|
|
|
|
|
//
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
|
|
|
|
commandName: 'decreaseSlabThickness',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
2019-10-01 10:06:56 +02:00
|
|
|
*/
|
|
|
|
|
{
|
|
|
|
|
id: 'changeSlabThickness',
|
|
|
|
|
label: 'Slab Thickness',
|
|
|
|
|
icon: 'soft-tissue',
|
|
|
|
|
CustomComponent: SlabThicknessToolbarComponent,
|
|
|
|
|
commandName: 'setSlabThickness',
|
|
|
|
|
actionButton: {
|
|
|
|
|
id: 'setSlabThickness',
|
|
|
|
|
label: 'slider',
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
|
|
|
|
commandName: 'setSlabThickness',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
deactivateButton: {
|
|
|
|
|
id: 'setBlendModeToComposite',
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'setBlendModeToComposite',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
operationButtons: [
|
|
|
|
|
{
|
|
|
|
|
id: 'setBlendModeToMaximumIntensity',
|
|
|
|
|
label: 'MIP',
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'setBlendModeToMaximumIntensity',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'setBlendModeToMinimumIntensity',
|
|
|
|
|
label: 'MinIP',
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'setBlendModeToMinimumIntensity',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'setBlendModeToAverageIntensity',
|
|
|
|
|
label: 'AvgIP',
|
|
|
|
|
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
|
|
|
commandName: 'setBlendModeToAverageIntensity',
|
|
|
|
|
commandOptions: {},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2019-06-17 05:11:43 +02:00
|
|
|
];
|
2019-04-16 18:00:06 +02:00
|
|
|
|
2019-06-17 05:11:43 +02:00
|
|
|
export default {
|
2019-06-17 20:03:04 +02:00
|
|
|
definitions,
|
2019-06-21 05:17:07 +02:00
|
|
|
defaultContext: 'ACTIVE_VIEWPORT::VTK',
|
2019-06-17 05:11:43 +02:00
|
|
|
};
|