ohif-viewer/extensions/ohif-vtk-extension/src/toolbarModule.js

42 lines
935 B
JavaScript
Raw Normal View History

2019-06-17 05:11:43 +02:00
const TOOLBAR_BUTTON_TYPES = {
COMMAND: 'command',
SET_TOOL_ACTIVE: 'setToolActive'
};
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',
commandOptions: {}
// window.commandsManager.runCommand('enableCrosshairsTool', {}, 'vtk');
},
{
id: 'WWWC',
label: 'WWWC',
icon: 'level',
//
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
commandName: 'enableLevelTool',
commandOptions: {}
// window.commandsManager.runCommand('enableLevelTool', {}, 'vtk');
},
{
id: 'Rotate',
label: 'Rotate',
icon: '3d-rotate',
//
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
commandName: 'enableRotateTool',
commandOptions: {}
// window.commandsManager.runCommand('enableRotateTool', {}, 'vtk');
2019-04-16 18:00:06 +02:00
}
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 {
definitions
};